IterationBasedValue

Mixin for measurers whose benchmarked value is based on the current iteration.

Mixin for measurers whose benchmarked value is based on the current iteration.

class Object
trait Matchable
class Any

Value members

Concrete methods

protected def valueAt[T](context: Context, iteration: Int, regen: () => T, v: T): T

Returns the value used for the benchmark at iteration. May optionally call regen to obtain a new value for the benchmark.

Returns the value used for the benchmark at iteration. May optionally call regen to obtain a new value for the benchmark.

By default, the value v is always returned and the value for the benchmark is never regenerated.