Class FixedStoppingCriteria
- Namespace
- BenchmarkDotNet.Engines
- Assembly
- BenchmarkDotNet.dll
Stopping criteria which require a specific amount of iterations.
public class FixedStoppingCriteria : StoppingCriteriaBase, IStoppingCriteria
- Inheritance
-
FixedStoppingCriteria
- Implements
- Inherited Members
Constructors
FixedStoppingCriteria(int)
public FixedStoppingCriteria(int iterationCount)
Parameters
iterationCount
int- Stopping criteria which require a specific amount of iterations.
Methods
Evaluate(IReadOnlyList<Measurement>)
Checks do we have enough iterations
public override StoppingResult Evaluate(IReadOnlyList<Measurement> measurements)
Parameters
measurements
IReadOnlyList<Measurement>- Stopping criteria which require a specific amount of iterations.
Returns
- StoppingResult
- Stopping criteria which require a specific amount of iterations.
GetMaxIterationCount()
protected override int GetMaxIterationCount()
Returns
- int
- Stopping criteria which require a specific amount of iterations.
GetTitle()
protected override string GetTitle()
Returns
- string
- Stopping criteria which require a specific amount of iterations.
GetWarnings()
protected override IEnumerable<string> GetWarnings()
Returns
- IEnumerable<string>
- Stopping criteria which require a specific amount of iterations.