Skip to content

Instantly share code, notes, and snippets.

@Narnach
Created December 18, 2008 16:37
Show Gist options
  • Select an option

  • Save Narnach/37550 to your computer and use it in GitHub Desktop.

Select an option

Save Narnach/37550 to your computer and use it in GitHub Desktop.
# Ruby 1.8.6p111
# ruby1.9 is 1.9.1 from macports
# jruby latest head from github
# macruby is 0.3.1 from the .zip on their website
# rubinius is latest head from github
narnach@narnachbook ~/Development $ ruby speed.rb && ruby1.9 speed.rb && jruby speed.rb && macruby speed.rb && rbx speed.rb
user system total real
define_method :one 0.990000 0.000000 0.990000 ( 1.001891)
define_method :two 0.980000 0.010000 0.990000 ( 1.000110)
def three 0.450000 0.000000 0.450000 ( 0.450500)
user system total real
define_method :one 0.300000 0.000000 0.300000 ( 0.296590)
define_method :two 0.290000 0.000000 0.290000 ( 0.298088)
def three 0.200000 0.000000 0.200000 ( 0.197337)
user system total real
define_method :one 0.714214 0.010423 0.724637 ( 0.876685)
define_method :two 0.697266 0.009315 0.706581 ( 0.834833)
def three 0.283302 0.002458 0.285760 ( 0.308245)
user system total real
define_method :one 0.270000 0.000000 0.270000 ( 0.275915)
define_method :two 0.280000 0.000000 0.280000 ( 0.278636)
def three 0.160000 0.000000 0.160000 ( 0.168656)
user system total real
define_method :one 7.799360 0.000000 7.799360 ( 7.799370)
define_method :two 8.087013 0.000000 8.087013 ( 8.087074)
def three 0.499315 0.000000 0.499315 ( 0.499405)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment