Skip to content

Instantly share code, notes, and snippets.

@samaaron
Created December 18, 2008 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save samaaron/37541 to your computer and use it in GitHub Desktop.
Save samaaron/37541 to your computer and use it in GitHub Desktop.
λ /usr/bin/ruby speed.rb
user system total real
warm up 0.070000 0.000000 0.070000 ( 0.073492)
define_method :one 0.710000 0.000000 0.710000 ( 0.719511)
define_method :two 0.710000 0.010000 0.720000 ( 0.718273)
def three 0.260000 0.000000 0.260000 ( 0.273669)
∴ /Users/sam/Desktop
λ ruby speed.rb
user system total real
warm up 0.070000 0.000000 0.070000 ( 0.073743)
define_method :one 5.840000 2.470000 8.310000 ( 8.403760)
define_method :two 5.810000 2.480000 8.290000 ( 8.554537)
def three 3.540000 1.650000 5.190000 ( 5.904893)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment