Class: Benchmark::Driver::BenchmarkResult
- Inherits:
-
Struct
- Object
- Struct
- Benchmark::Driver::BenchmarkResult
- Defined in:
- lib/benchmark/driver/benchmark_result.rb
Overview
Instance Attribute Summary collapse
-
#iterations ⇒ Object
Returns the value of attribute iterations.
-
#job ⇒ Object
Returns the value of attribute job.
-
#max_rss ⇒ Object
Returns the value of attribute max_rss.
-
#real ⇒ Object
(also: #duration)
Returns the value of attribute real.
Instance Method Summary collapse
Instance Attribute Details
#iterations ⇒ Object
Returns the value of attribute iterations
5 6 7 |
# File 'lib/benchmark/driver/benchmark_result.rb', line 5 def iterations @iterations end |
#job ⇒ Object
Returns the value of attribute job
5 6 7 |
# File 'lib/benchmark/driver/benchmark_result.rb', line 5 def job @job end |
#max_rss ⇒ Object
Returns the value of attribute max_rss
5 6 7 |
# File 'lib/benchmark/driver/benchmark_result.rb', line 5 def max_rss @max_rss end |
#real ⇒ Object Also known as: duration
Returns the value of attribute real
5 6 7 |
# File 'lib/benchmark/driver/benchmark_result.rb', line 5 def real @real end |
Instance Method Details
#ip100ms ⇒ Object
12 13 14 |
# File 'lib/benchmark/driver/benchmark_result.rb', line 12 def ip100ms ips / 10 end |
#ips ⇒ Object
8 9 10 |
# File 'lib/benchmark/driver/benchmark_result.rb', line 8 def ips iterations / real end |