Skip to content

Instantly share code, notes, and snippets.

@apeiros

apeiros/mbench Secret

Created December 16, 2014 09:17
Show Gist options
  • Save apeiros/0e314e090c33e6dea96a to your computer and use it in GitHub Desktop.
Save apeiros/0e314e090c33e6dea96a to your computer and use it in GitHub Desktop.
[11] pry(main)> mbench 1e6,10,add:-> { 1+1 }, mult: -> { 1*1 }
add: ø 0.000089ms (7.9%)
mult: ø 0.000101ms (3.0%)
add: 1.0, mult: 1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment