Skip to content

Instantly share code, notes, and snippets.

@ianbishop
Created May 10, 2012 22:59
Show Gist options
  • Select an option

  • Save ianbishop/2656455 to your computer and use it in GitHub Desktop.

Select an option

Save ianbishop/2656455 to your computer and use it in GitHub Desktop.
Symbol#to_proc benchmark
$ ruby toproc.rb
Rehearsal --------------------------------------------------
Method invoke 1.240000 0.000000 1.240000 ( 1.246622)
Symbol.to_proc 1.550000 0.000000 1.550000 ( 1.553462)
----------------------------------------- total: 2.790000sec
user system total real
Method invoke 1.260000 0.000000 1.260000 ( 1.262633)
Symbol.to_proc 1.420000 0.000000 1.420000 ( 1.424335)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment