Skip to content

Instantly share code, notes, and snippets.

@samaaron
Created December 18, 2008 16:24
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 samaaron/37547 to your computer and use it in GitHub Desktop.
Save samaaron/37547 to your computer and use it in GitHub Desktop.
λ /usr/bin/ruby speed.rb && ruby speed.rb && ruby-1-9-1-p2 speed.rb && macruby speed.rb && jruby speed.rb && rbx speed.rb
user system total real
warm up 0.070000 0.000000 0.070000 ( 0.076154)
define_method :one 0.710000 0.000000 0.710000 ( 0.729125)
define_method :two 0.710000 0.000000 0.710000 ( 0.714011)
def three 0.260000 0.000000 0.260000 ( 0.263946)
user system total real
warm up 0.070000 0.000000 0.070000 ( 0.071314)
define_method :one 5.820000 2.430000 8.250000 ( 8.348540)
define_method :two 5.800000 2.440000 8.240000 ( 8.345419)
def three 3.500000 1.620000 5.120000 ( 5.166252)
user system total real
warm up 0.110000 0.000000 0.110000 ( 0.109813)
define_method :one 0.280000 0.000000 0.280000 ( 0.283448)
define_method :two 0.280000 0.000000 0.280000 ( 0.281087)
def three 0.180000 0.000000 0.180000 ( 0.186271)
user system total real
warm up 0.100000 0.010000 0.110000 ( 0.102969)
define_method :one 0.270000 0.000000 0.270000 ( 0.275806)
define_method :two 0.260000 0.000000 0.260000 ( 0.269407)
def three 0.170000 0.000000 0.170000 ( 0.171959)
user system total real
warm up 0.207000 0.000000 0.207000 ( 0.207751)
define_method :one 0.583000 0.000000 0.583000 ( 0.583692)
define_method :two 0.396000 0.000000 0.396000 ( 0.396393)
def three 0.163000 0.000000 0.163000 ( 0.163474)
user system total real
warm up 0.190008 0.000000 0.190008 ( 0.189811)
define_method :one 4.020722 0.000000 4.020722 ( 4.020759)
define_method :two 4.118550 0.000000 4.118550 ( 4.118600)
def three 0.200051 0.000000 0.200051 ( 0.200118)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment