Module: Gravitext::PerfTest::CalcUtil
- Included in:
- Harness, PrintListener
- Defined in:
- lib/gravitext-util/perftest.rb
Overview
:nodoc: all
Constant Summary collapse
- NaN =
Java::java.lang.Double::NaN
Instance Method Summary collapse
Instance Method Details
#latency_change(exec, prior = nil) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/gravitext-util/perftest.rb', line 40 def latency_change( exec, prior = nil ) if prior p = prior.mean_latency.seconds ( exec.mean_latency.seconds - p ) / p else NaN end end |
#throughput_change(exec, prior = nil) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/gravitext-util/perftest.rb', line 31 def throughput_change( exec, prior = nil ) if prior p = prior.mean_throughput ( exec.mean_throughput - p ) / p else NaN end end |