Skip to content

Instantly share code, notes, and snippets.

@headius
Created December 15, 2012 20:07
Show Gist options
  • Save headius/82e445ba05eb8c12deab to your computer and use it in GitHub Desktop.
Save headius/82e445ba05eb8c12deab to your computer and use it in GitHub Desktop.
system ~/projects/jruby $ jruby -Xcompile.invokedynamic=true -v some_bench.rb
jruby 1.7.2.dev (1.9.3p327) 2012-12-15 714a009 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_09-b05 +indy [darwin-x86_64]
Rehearsal ------------------------------------------------------------
constant 0.800000 0.040000 0.840000 ( 0.454000)
string-literal 0.690000 0.030000 0.720000 ( 0.599000)
string-literal-in-method 0.540000 0.000000 0.540000 ( 0.515000)
symbol-literal 0.560000 0.010000 0.570000 ( 0.548000)
symbol-string-cache 0.780000 0.000000 0.780000 ( 0.712000)
--------------------------------------------------- total: 3.450000sec
user system total real
constant 0.410000 0.000000 0.410000 ( 0.415000)
string-literal 0.540000 0.020000 0.560000 ( 0.542000)
string-literal-in-method 0.550000 0.000000 0.550000 ( 0.542000)
symbol-literal 0.530000 0.000000 0.530000 ( 0.518000)
symbol-string-cache 0.760000 0.000000 0.760000 ( 0.690000)
system ~/projects/jruby $ jruby --1.8 -Xcompile.invokedynamic=true -v some_bench.rb
jruby 1.7.2.dev (ruby-1.8.7p370) 2012-12-15 714a009 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_09-b05 +indy [darwin-x86_64]
Rehearsal ------------------------------------------------------------
constant 0.420000 0.000000 0.420000 ( 0.335000)
string-literal 0.780000 0.040000 0.820000 ( 0.475000)
string-literal-in-method 0.520000 0.020000 0.540000 ( 0.468000)
symbol-literal 0.450000 0.010000 0.460000 ( 0.440000)
symbol-string-cache 0.860000 0.000000 0.860000 ( 0.745000)
--------------------------------------------------- total: 3.100000sec
user system total real
constant 0.300000 0.000000 0.300000 ( 0.303000)
string-literal 0.420000 0.000000 0.420000 ( 0.427000)
string-literal-in-method 0.450000 0.000000 0.450000 ( 0.453000)
symbol-literal 0.430000 0.010000 0.440000 ( 0.429000)
symbol-string-cache 0.650000 0.000000 0.650000 ( 0.637000)
system ~/projects/jruby $ rvm ruby-2.0.0 do ruby some_bench.rb
Rehearsal ------------------------------------------------------------
constant 0.600000 0.000000 0.600000 ( 0.595201)
string-literal 1.410000 0.000000 1.410000 ( 1.410362)
string-literal-in-method 1.830000 0.000000 1.830000 ( 1.835431)
symbol-literal 1.670000 0.000000 1.670000 ( 1.665906)
symbol-string-cache 0.780000 0.000000 0.780000 ( 0.779711)
--------------------------------------------------- total: 6.290000sec
user system total real
constant 0.560000 0.000000 0.560000 ( 0.559532)
string-literal 1.370000 0.000000 1.370000 ( 1.372285)
string-literal-in-method 1.800000 0.000000 1.800000 ( 1.799632)
symbol-literal 1.680000 0.000000 1.680000 ( 1.676188)
symbol-string-cache 0.780000 0.000000 0.780000 ( 0.784492)
system ~/projects/jruby $ ruby-1.8.7-p358 some_bench.rb
Rehearsal ------------------------------------------------------------
constant 0.970000 0.000000 0.970000 ( 0.968956)
string-literal 1.470000 0.000000 1.470000 ( 1.467271)
string-literal-in-method 3.020000 0.000000 3.020000 ( 3.022319)
symbol-literal 3.520000 0.000000 3.520000 ( 3.522044)
symbol-string-cache 1.690000 0.000000 1.690000 ( 1.688721)
-------------------------------------------------- total: 10.670000sec
user system total real
constant 0.960000 0.000000 0.960000 ( 0.956569)
string-literal 1.470000 0.000000 1.470000 ( 1.472331)
string-literal-in-method 3.020000 0.000000 3.020000 ( 3.022153)
symbol-literal 3.560000 0.010000 3.570000 ( 3.557168)
symbol-string-cache 1.690000 0.000000 1.690000 ( 1.689634)
system ~/projects/jruby $ ../rubinius/bin/rbx -X19 some_bench.rb
Rehearsal ------------------------------------------------------------
constant 0.619186 0.001932 0.621118 ( 0.614727)
string-literal 1.454125 0.002994 1.457119 ( 1.445475)
string-literal-in-method 1.185047 0.001924 1.186971 ( 1.175132)
symbol-literal 1.243537 0.001865 1.245402 ( 1.240618)
symbol-string-cache 1.206438 0.001296 1.207734 ( 1.113726)
--------------------------------------------------- total: 5.718344sec
user system total real
constant 0.309641 0.000026 0.309667 ( 0.309674)
string-literal 1.115298 0.000331 1.115629 ( 1.115650)
string-literal-in-method 1.169505 0.000261 1.169766 ( 1.169734)
symbol-literal 1.237658 0.000378 1.238036 ( 1.238024)
symbol-string-cache 1.067956 0.000139 1.068095 ( 1.068085)
system ~/projects/jruby $ rvm macruby do ruby some_bench.rb
Rehearsal ------------------------------------------------------------
constant 0.410000 0.000000 0.410000 ( 0.401266)
string-literal 9.480000 0.250000 9.730000 ( 7.542509)
string-literal-in-method 11.530000 0.250000 11.780000 ( 9.533667)
symbol-literal 12.280000 0.270000 12.550000 ( 10.292457)
symbol-string-cache 0.700000 0.000000 0.700000 ( 0.701276)
-------------------------------------------------- total: 35.170000sec
user system total real
constant 0.410000 0.000000 0.410000 ( 0.403190)
string-literal 11.020000 0.260000 11.280000 ( 9.010975)
string-literal-in-method 11.260000 0.250000 11.510000 ( 9.259475)
symbol-literal 11.990000 0.280000 12.270000 ( 9.961679)
symbol-string-cache 0.720000 0.000000 0.720000 ( 0.716108)
system ~/projects/jruby $ rvm maglev do ruby some_bench.rb
Rehearsal ------------------------------------------------------------
constant 0.620000 0.000000 0.620000 ( 0.628167)
string-literal 0.670000 0.000000 0.670000 ( 0.662282)
string-literal-in-method 0.760000 0.000000 0.760000 ( 0.763929)
symbol-literal 1.080000 0.000000 1.080000 ( 1.076426)
symbol-string-cache 2.480000 0.000000 2.480000 ( 2.480756)
--------------------------------------------------- total: 5.610000sec
user system total real
constant 0.620000 0.000000 0.620000 ( 0.622218)
string-literal 0.660000 0.000000 0.660000 ( 0.657563)
string-literal-in-method 0.760000 0.000000 0.760000 ( 0.760737)
symbol-literal 1.070000 0.000000 1.070000 ( 1.071402)
symbol-string-cache 2.490000 0.000000 2.490000 ( 2.488361)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment