Class: DiffBench::Bm
- Inherits:
-
Object
- Object
- DiffBench::Bm
- Defined in:
- lib/diffbench/bm.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ Bm
constructor
A new instance of Bm.
- #report(label) ⇒ Object
Constructor Details
Instance Method Details
#report(label) ⇒ Object
14 15 16 17 18 |
# File 'lib/diffbench/bm.rb', line 14 def report(label) @measures[label] = Benchmark.measure do yield end end |