Class: WBench::Benchmark
- Inherits:
-
Object
- Object
- WBench::Benchmark
- Defined in:
- lib/wbench/benchmark.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(url, options = {}) ⇒ Benchmark
constructor
A new instance of Benchmark.
- #run(loops) ⇒ Object
Constructor Details
Class Method Details
.run(url, options = {}) ⇒ Object
3 4 5 |
# File 'lib/wbench/benchmark.rb', line 3 def self.run(url, = {}) new(url, ).run([:loops] || DEFAULT_LOOPS) end |