Top Level Namespace
Defined Under Namespace
Modules: RSpec
Instance Method Summary collapse
Instance Method Details
#_benchmark(code, iter) ⇒ Object
6 7 8 |
# File 'lib/should_be_faster.rb', line 6 def _benchmark(code, iter) Benchmark.measure { iter.times { code.call } } end |