Created
June 29, 2012 17:06
-
-
Save headius/3019255 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment