Skip to content

Instantly share code, notes, and snippets.

@headius
Created December 14, 2008 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/35745 to your computer and use it in GitHub Desktop.
Save headius/35745 to your computer and use it in GitHub Desktop.
Before:
=== 10^7 ===
inject: 2.440000 0.000000 2.440000 ( 2.440096)
each: 1.504000 0.000000 1.504000 ( 1.503791)
times: 1.566000 0.000000 1.566000 ( 1.566492)
while: 0.916000 0.000000 0.916000 ( 0.915542)
◆ jruby bench/bench_fib_recursive.rb 10
0.391000 0.000000 0.391000 ( 0.391463)
0.185000 0.000000 0.185000 ( 0.184762)
0.185000 0.000000 0.185000 ( 0.184891)
0.185000 0.000000 0.185000 ( 0.185110)
0.183000 0.000000 0.183000 ( 0.183230)
0.184000 0.000000 0.184000 ( 0.183462)
0.181000 0.000000 0.181000 ( 0.181658)
0.182000 0.000000 0.182000 ( 0.181909)
0.182000 0.000000 0.182000 ( 0.182206)
0.182000 0.000000 0.182000 ( 0.181687)
◆ jruby --server bench/bench_fib_recursive.rb 10
0.410000 0.000000 0.410000 ( 0.410094)
0.186000 0.000000 0.186000 ( 0.186144)
0.182000 0.000000 0.182000 ( 0.181371)
0.197000 0.000000 0.197000 ( 0.197540)
0.179000 0.000000 0.179000 ( 0.178892)
0.179000 0.000000 0.179000 ( 0.178511)
0.180000 0.000000 0.180000 ( 0.180761)
0.180000 0.000000 0.180000 ( 0.179761)
0.179000 0.000000 0.179000 ( 0.178857)
0.179000 0.000000 0.179000 ( 0.179426)
After:
=== 10^7 ===
inject: 2.343000 0.000000 2.343000 ( 2.343585)
each: 1.390000 0.000000 1.390000 ( 1.390156)
times: 1.455000 0.000000 1.455000 ( 1.454414)
while: 0.851000 0.000000 0.851000 ( 0.851482)
◆ jruby bench/bench_fib_recursive.rb 10
0.387000 0.000000 0.387000 ( 0.386864)
0.196000 0.000000 0.196000 ( 0.196646)
0.195000 0.000000 0.195000 ( 0.194404)
0.191000 0.000000 0.191000 ( 0.191522)
0.192000 0.000000 0.192000 ( 0.192334)
0.186000 0.000000 0.186000 ( 0.185981)
0.185000 0.000000 0.185000 ( 0.184905)
0.185000 0.000000 0.185000 ( 0.184906)
0.187000 0.000000 0.187000 ( 0.186711)
0.185000 0.000000 0.185000 ( 0.185159)
◆ jruby --server bench/bench_fib_recursive.rb 10
0.374000 0.000000 0.374000 ( 0.373958)
0.191000 0.000000 0.191000 ( 0.190220)
0.181000 0.000000 0.181000 ( 0.181089)
0.180000 0.000000 0.180000 ( 0.180029)
0.179000 0.000000 0.179000 ( 0.179457)
0.195000 0.000000 0.195000 ( 0.194337)
0.177000 0.000000 0.177000 ( 0.177669)
0.177000 0.000000 0.177000 ( 0.176502)
0.175000 0.000000 0.175000 ( 0.175827)
0.175000 0.000000 0.175000 ( 0.175438)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment