Rakefile in pbt-0.2.0 vs Rakefile in pbt-0.3.0

- old
+ new

@@ -17,31 +17,40 @@ puts "### Benchmark success:simple" puts puts "This runs a script that does not do any IO or CPU bound work." puts ENV["RUBYOPT"] = "-W:no-experimental" + ENV["RUBY_MN_THREADS"] = "1" + puts "```" sh "ruby", "benchmark/success_simple.rb" + puts "```" puts end task :cpu_bound do puts "### Benchmark success:cpu_bound" puts puts "This runs a script that does CPU bound work." puts ENV["RUBYOPT"] = "-W:no-experimental" + ENV["RUBY_MN_THREADS"] = "1" + puts "```" sh "ruby", "benchmark/success_cpu_bound.rb" + puts "```" puts end task :io_bound do puts "### Benchmark success:io_bound" puts puts "This runs a script that does IO bound work." puts ENV["RUBYOPT"] = "-W:no-experimental" + ENV["RUBY_MN_THREADS"] = "1" + puts "```" sh "ruby", "benchmark/success_io_bound.rb" + puts "```" puts end end namespace :failure do @@ -49,10 +58,13 @@ puts "### Benchmark failure:simple" puts puts "This runs a script that fails and shrink happens." puts ENV["RUBYOPT"] = "-W:no-experimental" + ENV["RUBY_MN_THREADS"] = "1" + puts "```" sh "ruby", "benchmark/failure_simple.rb" + puts "```" puts end end end