Rakefile in benchmark_driver-0.10.0 vs Rakefile in benchmark_driver-0.10.1
- old
+ new
@@ -10,20 +10,26 @@
'memory' => 'simple',
'once' => 'markdown',
}.each do |runner, output|
Bundler.with_clean_env do
sh ['time', 'bundle', 'exec', 'exe/benchmark-driver', blank_loop, '-r', runner, '-o', output].shelljoin
+ puts
sh ['time', 'bundle', 'exec', 'exe/benchmark-driver', blank_hash, '-r', runner, '-o', output, '--run-duration', '1'].shelljoin
+ puts
end
end
end
task :test_record do
blank_loop = File.expand_path('./examples/yaml/blank_loop.yml', __dir__) # no warmup
sh ['time', 'bundle', 'exec', 'exe/benchmark-driver', blank_loop, '-r', 'ips', '-o', 'record'].shelljoin
+ puts
sh ['time', 'bundle', 'exec', 'exe/benchmark-driver', 'benchmark_driver.record.yml', '-o', 'compare'].shelljoin
+ puts
sh ['time', 'bundle', 'exec', 'exe/benchmark-driver', 'benchmark_driver.record.yml', '-o', 'record'].shelljoin
+ puts
sh ['time', 'bundle', 'exec', 'exe/benchmark-driver', 'benchmark_driver.record.yml', '-o', 'simple'].shelljoin
+ puts
end
task :test_ruby do
Dir.glob(File.expand_path('./examples/*.rb', __dir__)).sort.each do |file|
Bundler.with_clean_env do