Skip to content

Instantly share code, notes, and snippets.

@headius
Created April 6, 2011 18:53
Show Gist options
  • Select an option

  • Save headius/906264 to your computer and use it in GitHub Desktop.

Select an option

Save headius/906264 to your computer and use it in GitHub Desktop.
# RUBY 1.9.2
~/projects/jruby ➔ ruby1.9 -v bench/bench_fib_recursive.rb 5 35
ruby 1.9.2p160 (2011-01-16 revision 30579) [x86_64-darwin10.6.0]
9227465
2.530000 0.020000 2.550000 ( 2.680097)
9227465
2.530000 0.020000 2.550000 ( 2.582319)
9227465
2.520000 0.010000 2.530000 ( 2.567602)
9227465
2.520000 0.020000 2.540000 ( 2.576837)
9227465
2.520000 0.010000 2.530000 ( 2.557942)
# STOCK JRUBY
~/projects/jruby ➔ jruby -v --server -J-XX:MaxInlineSize=150 -J-XX:InlineSmallCode=5000 bench/bench_fib_recursive.rb 5 35
jruby 1.6.0 (ruby-1.8.7-p330) (2011-04-06 b05f4b2) (OpenJDK 64-Bit Server VM 1.7.0-internal) [darwin-amd64-java]
9227465
1.163000 0.000000 1.163000 ( 1.109000)
9227465
1.029000 0.000000 1.029000 ( 1.028000)
9227465
1.035000 0.000000 1.035000 ( 1.034000)
9227465
1.050000 0.000000 1.050000 ( 1.050000)
9227465
1.050000 0.000000 1.050000 ( 1.050000)
# JRUBY WITH INVOKEDYNAMIC
~/projects/jruby ➔ jruby -v --server -Xcompile.invokedynamic=true -J-XX:MaxInlineSize=150 -J-XX:InlineSmallCode=5000 bench/bench_fib_recursive.rb 5 35
jruby 1.6.0 (ruby-1.8.7-p330) (2011-04-06 b05f4b2) (OpenJDK 64-Bit Server VM 1.7.0-internal) [darwin-amd64-java]
9227465
0.896000 0.000000 0.896000 ( 0.841000)
9227465
0.702000 0.000000 0.702000 ( 0.702000)
9227465
0.705000 0.000000 0.705000 ( 0.705000)
9227465
0.703000 0.000000 0.703000 ( 0.703000)
9227465
0.702000 0.000000 0.702000 ( 0.702000)
# JRUBY WITH DYNOPT
~/projects/jruby ➔ jruby -v --server -Xcompile.dynopt=true -J-XX:MaxInlineSize=150 -J-XX:InlineSmallCode=5000 bench/bench_fib_recursive.rb 5 35jruby 1.6.0 (ruby-1.8.7-p330) (2011-04-06 b05f4b2) (OpenJDK 64-Bit Server VM 1.7.0-internal) [darwin-amd64-java]
9227465
1.175000 0.000000 1.175000 ( 1.067000)
9227465
0.599000 0.000000 0.599000 ( 0.599000)
9227465
0.597000 0.000000 0.597000 ( 0.597000)
9227465
0.596000 0.000000 0.596000 ( 0.596000)
9227465
0.592000 0.000000 0.592000 ( 0.592000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment