Skip to content

Instantly share code, notes, and snippets.

@wcc526
Created September 26, 2015 06:56
Show Gist options
  • Save wcc526/6f09c4124f0b02a35161 to your computer and use it in GitHub Desktop.
Save wcc526/6f09c4124f0b02a35161 to your computer and use it in GitHub Desktop.
ruby_base
require 'benchmark'
puts Benchmark.measure { 10000.times { print "." } }
Benchmark.bm do |x|
x.report('some test') {
N.times { some_test }
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment