Skip to content

Instantly share code, notes, and snippets.

@jruby
Created December 23, 2009 01:11
Show Gist options
  • Select an option

  • Save jruby/262237 to your computer and use it in GitHub Desktop.

Select an option

Save jruby/262237 to your computer and use it in GitHub Desktop.
BEFORE
user system total real
1m x10 yield 1 to { } 2.648000 0.000000 2.648000 ( 2.647000)
1m x10 yield to { } 2.539000 0.000000 2.539000 ( 2.539000)
1m x10 yield 1 to {|j| j} 3.168000 0.000000 3.168000 ( 3.168000)
1m x10 yield 1,2 to {|j,k| k} 3.643000 0.000000 3.643000 ( 3.643000)
1m x10 yield 1,2,3 to {|j,k,l| k} 4.062000 0.000000 4.062000 ( 4.063000)
1m x10 yield to {|j,k,l| k} 3.776000 0.000000 3.776000 ( 3.776000)
1m x10 yield 1,2,3 to {|*j| j} 4.730000 0.000000 4.730000 ( 4.730000)
1m x10 yield to {1} 2.955000 0.000000 2.955000 ( 2.955000)
1m x10 call() to a_method(p); p; end 3.088000 0.000000 3.088000 ( 3.088000)
AFTER
user system total real
1m x10 yield 1 to { } 2.474000 0.000000 2.474000 ( 2.474000)
1m x10 yield to { } 2.382000 0.000000 2.382000 ( 2.382000)
1m x10 yield 1 to {|j| j} 2.477000 0.000000 2.477000 ( 2.477000)
1m x10 yield 1,2 to {|j,k| k} 4.016000 0.000000 4.016000 ( 4.016000)
1m x10 yield 1,2,3 to {|j,k,l| k} 4.247000 0.000000 4.247000 ( 4.247000)
1m x10 yield to {|j,k,l| k} 3.454000 0.000000 3.454000 ( 3.454000)
1m x10 yield 1,2,3 to {|*j| j} 5.188000 0.000000 5.188000 ( 5.188000)
1m x10 yield to {1} 2.411000 0.000000 2.411000 ( 2.411000)
1m x10 call() to a_method(p); p; end 2.969000 0.000000 2.969000 ( 2.969000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment