Created
October 28, 2008 02:26
-
-
Save djwhitt/20281 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
MRI 1.8.6 p287 | |
============== | |
Iterations: 1000000 | |
Control: 1m loops accessing a local variable 100 times | |
2.590000 0.000000 2.590000 ( 2.592084) | |
2.560000 0.010000 2.570000 ( 2.571405) | |
Control 2: 1m loops accessing nil 100 times | |
2.110000 0.010000 2.120000 ( 2.125436) | |
2.040000 0.000000 2.040000 ( 2.055528) | |
Test fastmath: 250k loops accessing a fixnum var and calling + 1 | |
3.220000 0.010000 3.230000 ( 3.230403) | |
3.230000 0.020000 3.250000 ( 3.294052) | |
Test prim math: 250k loops accessing a fixnum var and calling plus(1) | |
3.230000 0.010000 3.240000 ( 3.237247) | |
3.240000 0.000000 3.240000 ( 3.248467) | |
Test ruby method: 250k loops calling self's foo 100 times | |
3.740000 0.010000 3.750000 ( 3.737968) | |
3.530000 0.010000 3.540000 ( 3.541626) | |
Test ruby method: 250k loops calling self's foo 100 times (with 2 args) | |
6.060000 0.010000 6.070000 ( 6.068928) | |
6.040000 0.010000 6.050000 ( 6.120770) | |
YARV r19977 | |
=========== | |
Iterations: 1000000 | |
Control: 1m loops accessing a local variable 100 times | |
0.260000 0.000000 0.260000 ( 0.260025) | |
0.200000 0.000000 0.200000 ( 0.198793) | |
Control 2: 1m loops accessing nil 100 times | |
0.030000 0.000000 0.030000 ( 0.028639) | |
0.020000 0.000000 0.020000 ( 0.028547) | |
Test fastmath: 250k loops accessing a fixnum var and calling + 1 | |
0.320000 0.000000 0.320000 ( 0.318672) | |
0.320000 0.000000 0.320000 ( 0.318971) | |
Test prim math: 250k loops accessing a fixnum var and calling plus(1) | |
1.100000 0.000000 1.100000 ( 1.109397) | |
1.100000 0.000000 1.100000 ( 1.109853) | |
Test ruby method: 250k loops calling self's foo 100 times | |
1.090000 0.010000 1.100000 ( 1.097347) | |
1.100000 0.000000 1.100000 ( 1.098619) | |
Test ruby method: 250k loops calling self's foo 100 times (with 2 args) | |
1.160000 0.010000 1.170000 ( 1.164043) | |
1.160000 0.000000 1.160000 ( 1.190939) | |
JRuby 1.1.4 | |
=========== | |
Iterations: 1000000 | |
Control: 1m loops accessing a local variable 100 times | |
0.384000 0.000000 0.384000 ( 0.383656) | |
0.087000 0.000000 0.087000 ( 0.086807) | |
Control 2: 1m loops accessing nil 100 times | |
0.896000 0.000000 0.896000 ( 0.896193) | |
0.610000 0.000000 0.610000 ( 0.609691) | |
Test fastmath: 250k loops accessing a fixnum var and calling + 1 | |
0.823000 0.000000 0.823000 ( 0.823150) | |
0.508000 0.000000 0.508000 ( 0.508095) | |
Test prim math: 250k loops accessing a fixnum var and calling plus(1) | |
0.821000 0.000000 0.821000 ( 0.820655) | |
0.607000 0.000000 0.607000 ( 0.607884) | |
Test ruby method: 250k loops calling self's foo 100 times | |
1.189000 0.000000 1.189000 ( 1.188699) | |
1.151000 0.000000 1.151000 ( 1.151006) | |
Test ruby method: 250k loops calling self's foo 100 times (with 2 args) | |
1.431000 0.000000 1.431000 ( 1.430765) | |
1.128000 0.000000 1.128000 ( 1.127628) | |
Shotgun commit 1b300ca6478de94e674e6127a63f151f4e0814e0 | |
======================================================= | |
Iterations: 1000000 | |
Control: 1m loops accessing a local variable 100 times | |
1.004019 0.000000 1.004019 ( 1.003945) | |
1.001853 0.000000 1.001853 ( 1.001845) | |
Control 2: 1m loops accessing nil 100 times | |
2.296766 0.000000 2.296766 ( 2.296777) | |
2.290450 0.000000 2.290450 ( 2.290438) | |
Test fastmath: 250k loops accessing a fixnum var and calling + 1 | |
0.527757 0.000000 0.527757 ( 0.527752) | |
0.527789 0.000000 0.527789 ( 0.527772) | |
Test prim math: 250k loops accessing a fixnum var and calling plus(1) | |
1.031382 0.000000 1.031382 ( 1.031384) | |
1.030672 0.000000 1.030672 ( 1.030668) | |
Test ruby method: 250k loops calling self's foo 100 times | |
0.834041 0.000000 0.834041 ( 0.834036) | |
0.835519 0.000000 0.835519 ( 0.835505) | |
Test ruby method: 250k loops calling self's foo 100 times (with 2 args) | |
2.971935 0.000000 2.971935 ( 2.971933) | |
2.917560 0.000000 2.917560 ( 2.917553) | |
CPP commit e9590b5d96927f06969c9d52d612299d581ae297 | |
=================================================== | |
Iterations: 1000000 | |
Control: 1m loops accessing a local variable 100 times | |
0.838125 0.000000 0.838125 ( 0.838100) | |
0.837250 0.000000 0.837250 ( 0.837246) | |
Control 2: 1m loops accessing nil 100 times | |
0.492363 0.000000 0.492363 ( 0.492369) | |
0.495692 0.000000 0.495692 ( 0.495651) | |
Test fastmath: 250k loops accessing a fixnum var and calling + 1 | |
0.398303 0.000000 0.398303 ( 0.398300) | |
0.357352 0.000000 0.357352 ( 0.357345) | |
Test prim math: 250k loops accessing a fixnum var and calling plus(1) | |
0.824028 0.000000 0.824028 ( 0.824032) | |
0.836660 0.000000 0.836660 ( 0.836654) | |
Test ruby method: 250k loops calling self's foo 100 times | |
1.884440 0.000000 1.884440 ( 1.884440) | |
1.893196 0.000000 1.893196 ( 1.893192) | |
Test ruby method: 250k loops calling self's foo 100 times (with 2 args) | |
2.129336 0.000000 2.129336 ( 2.129312) | |
2.110686 0.000000 2.110686 ( 2.110681) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment