diff --git a/Gemfile b/Gemfile index 9e96f241..f1e43a12 100644 --- a/Gemfile +++ b/Gemfile @@ -28,6 +28,7 @@ gem 'test-unit' if RUBY_PLATFORM =~ /cygwin/ || RUBY_VERSION.start_with?("2.2") gem 'rspec-mocks' if ENV['BENCHMARK'] + gem 'ruby-prof' gem 'rbtrace' gem 'stackprof' gem 'benchmark-ips' diff --git a/script/rubyprof b/script/rubyprof new file mode 100755 index 00000000..cac68ae7 --- /dev/null +++ b/script/rubyprof @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +export BENCHMARK=1 + +TEST_SCRIPT="Jekyll::Commands::Build.process({'source' => 'site', 'full_rebuild' => true})" + +RUBY=$(cat <