object Measurer extends Serializable
- Alphabetic
- By Inheritance
- Measurer
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait AbsoluteNoise extends Noise
A mixin measurer which adds an absolute amount of Gaussian noise to the measurement.
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
- abstract class BaseMemoryFootprint extends Measurer[Double]
- case class BoxingCount(primitives: Class[_ >: Primitive]*) extends InvocationCount with Product with Serializable
Counts autoboxed by a Scala compiler values.
Counts autoboxed by a Scala compiler values.
- primitives
primitive types whose autoboxing will be counted.
- class Default extends Timer with IterationBasedValue
A default measurer executes the test as many times as specified and returns the sequence of measured times.
- class GarbageCollectionCycles extends Measurer[Int]
- class IgnoringGC extends Timer with IterationBasedValue
A measurer that discards measurements during which it detects GC cycles.
A measurer that discards measurements during which it detects GC cycles.
Assume that
M
measurements are requested. To prevent looping forever, after the number of measurement failed due to GC exceeds the number of successful measurements by more thanM
, the subsequent measurements are accepted regardless of whether GC cycles occur. - trait IterationBasedValue extends AnyRef
Mixin for measurers whose benchmarked value is based on the current iteration.
- class MemoryFootprint extends BaseMemoryFootprint with OutlierElimination[Double]
Measures the total memory footprint of an object created by the benchmarking snippet.
Measures the total memory footprint of an object created by the benchmarking snippet.
Eliminates outliers.
- case class MethodInvocationCount(matcher: InvocationCountMatcher) extends InvocationCount with Product with Serializable
Counts invocations of arbitrary method(s) specified by org.scalameter.execution.invocation.InvocationCountMatcher.
- trait Noise extends Measurer[Double]
A measurer which adds noise to the measurement.
- trait OutlierElimination[V] extends Measurer[V]
A mixin measurer which detects outliers (due to an undetected GC or JIT) and requests additional measurements to replace them.
A mixin measurer which detects outliers (due to an undetected GC or JIT) and requests additional measurements to replace them. Outlier elimination can also eliminate some pretty bad allocation patterns in some cases. Only outliers from above are considered.
When detecting an outlier, up to
Key.exec.outliers.suspectPercent
% (with a minimum of1
) of worst times will be considered. For example, givenKey.exec.outliers.suspectPercent = 25
the times:10, 11, 10, 12, 11, 11, 10, 11, 44
times
12
and44
are considered for outlier elimination.Given the times:
10, 12, 14, 55
the time
55
will be considered for outlier elimination.A potential outlier (suffix) is removed if removing it increases the coefficient of variance by at least
Key.exec.outliers.covMultiplier
times. - trait PeriodicReinstantiation[V] extends Measurer[V] with IterationBasedValue
A mixin measurer which causes the value for the benchmark to be reinstantiated every
Key.exec.reinstantiation.frequency
measurements.A mixin measurer which causes the value for the benchmark to be reinstantiated every
Key.exec.reinstantiation.frequency
measurements. Before the new value has been instantiated, a full GC cycle is invoked ifKey.exec.reinstantiation.fullGC
istrue
. - type Primitive = Boolean with Char with Byte with Short with Int with Long with Float with Double
- trait RelativeNoise extends Noise
A mixin measurer which adds an amount of Gaussian noise to the measurement relative to its mean.
A mixin measurer which adds an amount of Gaussian noise to the measurement relative to its mean.
An observations sequence mean
m
is computed. A random Gaussian value is sampled for each measurementx
in the observations sequence. It is multiplied withm / 10.0
timesKey.noiseMagnitude
(default0.0
). Call this multiplication factorf
. The resulting value is clamped into the rangex - f, x + f
.The bottomline is - a
1.0
noise magnitude is a variation of10%
of the mean.$noise
- trait Timer extends Measurer[Double]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def None[V]: Measurer[V]
Measurer that measures nothing.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object BoxingCount extends Serializable
- object Default extends Serializable