Does some final cleanup after execution of all benchmarks in a performance test.
Does some final cleanup after execution of all benchmarks in a performance test.
This method is invoked in the PerformanceTest
executeTests
method
just after execution of all benchmarks.
Most measurers do not need to do any side effects in beforeExecution, so the default implementation just does nothing.
Does some side effects before execution of all benchmarks in a performance test.
Does some side effects before execution of all benchmarks in a performance test.
This method is invoked in the PerformanceTest
executeTests
method
just before execution of any benchmarks.
Most measurers do not need add additional context keys in prepareContext, so the default implementation just does nothing.
Modifies the initial test context.
Modifies the initial test context.
This method is invoked before the PerformanceTest
object's ctor is invoked.
The key-value pairs that the org.scalameter.Measurer adds to
the org.scalameter.Context in this method are visible to all
the test snippets within the PerformanceTest
class.
Most measurers do not need to add any specific keys,
so the default implementation just returns the context
.
Indicates if a measurer uses instrumented classpath -
if true
measurer must be run using an executor that spawns separate JVMs.
Indicates if a measurer uses instrumented classpath -
if true
measurer must be run using an executor that spawns separate JVMs.
A mixin measurer which adds an absolute amount of Gaussian noise to the measurement.
A random value is sampled from a Gaussian distribution for each measurement
x
. This value is then multiplied withKey.noiseMagnitude
and added to the measurement. The default value for the noise magnitude is0.0
- it has to be set manually for tests requiring artificial noise. The resulting value is clamped into the rangex - magnitude, x + magnitude
.$noise