Skip to content
Browse files

Modify bench_parser to take an argument for number of iterations.

git-svn-id: https://svn.codehaus.org/jruby/trunk/jruby@9229 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent 9fa7924 commit 22b1de4218c2180679eee52da9ac3f4b9821a835 headius committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 bench/bench_parser.rb
View
2 bench/bench_parser.rb
@@ -13,7 +13,7 @@
fulltime = 0
-40.times do
+(ARGV[0] || 5).to_i.times do
parsetime = Benchmark.measure { ITER_COUNT.times { JRuby.parse(src, "parse_rb.rb") } }.real
puts "time: " + parsetime.to_s

0 comments on commit 22b1de4

Please sign in to comment.
Something went wrong with that request. Please try again.