Skip to content

Instantly share code, notes, and snippets.

@miura1729
Created May 6, 2011 11:55
Show Gist options
  • Save miura1729/958816 to your computer and use it in GitHub Desktop.
Save miura1729/958816 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.905s
user 1m9.046s
sys 0m0.639s
time ytl --compile-array-as-unboxed bm_so_binary_trees.rb
real 0m24.281s
user 0m21.340s
sys 0m2.839s
time ytl --compile-only bm_so_binary_trees.rb
real 0m1.044s
user 0m0.374s
sys 0m0.577s
time ruby bm_so_binary_trees.rb
real 4m21.278s
user 4m20.895s
sys 0m0.078s
bm_so_nbody.rb
time ytl bm_so_nbody.rb
real 0m3.107s
user 0m2.496s
sys 0m0.530s
time ytl --compile-array-as-unboxed bm_so_nbody.rb
real 0m3.817s
user 0m3.198s
sys 0m0.530s
time ytl --compile-only bm_so_nbody.rb
real 0m1.447s
user 0m0.764s
sys 0m0.608s
time ruby bm_so_nbody.rb
real 0m5.558s
user 0m5.413s
sys 0m0.078s
bm_so_matrix.rb
time ytl bm_so_matrix.rb
real 0m1.207s
user 0m0.655s
sys 0m0.483s
time ytl --compile-array-as-unboxed bm_so_matrix.rb
real 0m1.235s
user 0m0.671s
sys 0m0.529s
time ytl --compile-only bm_so_matrix.rb
real 0m1.063s
user 0m0.374s
sys 0m0.623s
time ruby bm_so_matrix.rb
real 0m0.721s
user 0m0.577s
sys 0m0.046s
bm_so_object.rb
time ytl bm_so_object.rb
real 0m1.350s
user 0m0.702s
sys 0m0.546s
time ytl --compile-array-as-unboxed bm_so_object.rb
real 0m1.356s
user 0m0.733s
sys 0m0.576s
time ytl --compile-only bm_so_object.rb
real 0m0.971s
user 0m0.312s
sys 0m0.608s
time ruby bm_so_object.rb
real 0m1.384s
user 0m1.248s
sys 0m0.077s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment