Skip to content

Instantly share code, notes, and snippets.

@Narnach
Forked from samaaron/gist:37541
Created December 18, 2008 16:04
Show Gist options
  • Save Narnach/37544 to your computer and use it in GitHub Desktop.
Save Narnach/37544 to your computer and use it in GitHub Desktop.
# Ruby 1.8.6p111 (from source) vs ruby1.9.1-preview1_0 (macports) vs jruby (nicksieger's github version cc5d6648b27890c25aa50b3ebb8fb10d30b1df1f)
narnach@narnachbook ~/Development $ ruby speed.rb && ruby1.9 speed.rb && jruby speed.rb
user system total real
define_method :one 0.970000 0.000000 0.970000 ( 0.994811)
define_method :two 0.990000 0.010000 1.000000 ( 1.000196)
def three 0.420000 0.000000 0.420000 ( 0.434437)
user system total real
define_method :one 0.300000 0.000000 0.300000 ( 0.298044)
define_method :two 0.290000 0.000000 0.290000 ( 0.295531)
def three 0.190000 0.000000 0.190000 ( 0.196865)
user system total real
define_method :one 0.712192 0.009684 0.721876 ( 0.874236)
define_method :two 0.705598 0.008178 0.713776 ( 0.845511)
def three 0.285935 0.002162 0.288097 ( 0.314561)
narnach@narnachbook ~/Development $ rbx speed.rb
user system total real
define_method :one 7.768741 0.000000 7.768741 ( 7.768753)
define_method :two 8.187536 0.000000 8.187536 ( 8.187590)
def three 0.476949 0.000000 0.476949 ( 0.477018)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment