Skip to content

Instantly share code, notes, and snippets.

@miura1729
Created May 6, 2011 11:40
Show Gist options
  • Save miura1729/958801 to your computer and use it in GitHub Desktop.
Save miura1729/958801 to your computer and use it in GitHub Desktop.
benchmark Ruby 1.9.3dev(2010-11-29 trunk 29968), ytl 0.0.3 (ytljit 0.0.7)
bm_so_binary_trees.rb
time ytl bm_so_binary_trees.rb
real 1m9.088s
user 1m8.406s
sys 0m0.592s
time ytl --compile-array-as-unboxed bm_so_binary_trees.rb
real 0m24.169s
user 0m21.184s
sys 0m2.932s
time ytl --compile-only bm_so_binary_trees.rb
real 0m1.061s
user 0m0.468s
sys 0m0.530s
time ruby bm_so_binary_trees.rb
real 18m5.150s
user 18m3.005s
sys 0m0.390s
bm_so_nbody.rb
time ytl bm_so_nbody.rb
real 0m3.239s
user 0m2.558s
sys 0m0.592s
time ytl --compile-array-as-unboxed bm_so_nbody.rb
real 0m3.947s
user 0m3.307s
sys 0m0.561s
time ytl --compile-only bm_so_nbody.rb
real 0m1.492s
user 0m0.842s
sys 0m0.607s
time ruby bm_so_nbody.rb
real 0m13.247s
user 0m13.072s
sys 0m0.031s
bm_so_matrix.rb
time ytl bm_so_matrix.rb
real 0m1.234s
user 0m0.670s
sys 0m0.483s
time ytl --compile-array-as-unboxed bm_so_matrix.rb
real 0m1.222s
user 0m0.577s
sys 0m0.592s
time ytl --compile-only bm_so_matrix.rb
real 0m1.097s
user 0m0.561s
sys 0m0.467s
time ruby bm_so_matrix.rb
real 0m1.380s
user 0m1.294s
sys 0m0.015s
bm_so_object.rb
time ytl bm_so_object.rb
real 0m1.332s
user 0m0.764s
sys 0m0.498s
time ytl --compile-array-as-unboxed bm_so_object.rb
real 0m1.403s
user 0m0.795s
sys 0m0.530s
time ytl --compile-only bm_so_object.rb
real 0m0.966s
user 0m0.265s
sys 0m0.639s
time ruby bm_so_object.rb
real 0m4.798s
user 0m4.695s
sys 0m0.061s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment