Skip to content

Instantly share code, notes, and snippets.

@jaredonline
Created February 15, 2013 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredonline/4963294 to your computer and use it in GitHub Desktop.
Save jaredonline/4963294 to your computer and use it in GitHub Desktop.
require 'benchmark'
Benchmark.bm(30) do |x|
x.report("Test One") do
# .. code for your first version here ..
end
x.report("Test Two") do
# .. code for your second version here ..
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment