public
Created

  • Download Gist
gistfile1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
system ~/projects/jruby $ jruby -rbenchmark -e "def foo; a,b,c,d,e = 1,2,3,4,5; nil; end; 10.times{puts Benchmark.measure{10000000.times{foo;foo;foo;foo;foo}}}"
1.050000 0.060000 1.110000 ( 0.572000)
0.590000 0.020000 0.610000 ( 0.473000)
0.700000 0.000000 0.700000 ( 0.614000)
0.630000 0.010000 0.640000 ( 0.596000)
0.580000 0.000000 0.580000 ( 0.575000)
0.580000 0.000000 0.580000 ( 0.577000)
0.550000 0.000000 0.550000 ( 0.536000)
0.550000 0.010000 0.560000 ( 0.541000)
0.630000 0.000000 0.630000 ( 0.607000)
0.620000 0.010000 0.630000 ( 0.583000)
 
system ~/projects/jruby $ jruby -rbenchmark -e "def foo; a,b,c,d,e = 1,2,3,4,5; end; 10.times{puts Benchmark.measure{10000000.times{foo;foo;foo;foo;foo}}}"
2.930000 0.080000 3.010000 ( 2.430000)
2.440000 0.010000 2.450000 ( 2.271000)
2.560000 0.010000 2.570000 ( 2.389000)
2.460000 0.020000 2.480000 ( 2.357000)
2.640000 0.010000 2.650000 ( 2.428000)
2.530000 0.010000 2.540000 ( 2.479000)
2.850000 0.010000 2.860000 ( 2.639000)
2.860000 0.010000 2.870000 ( 2.717000)
2.610000 0.010000 2.620000 ( 2.472000)
2.470000 0.010000 2.480000 ( 2.416000)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.