Struct WarmupData
Used when estimating the size of the next run.
Designed to help buffer NBench from influencing any benchmarks itself.
Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: NBench.dll
Syntax
Constructors
WarmupData(Int64, Int64)
Declaration
public WarmupData(long ticks, long actualRunsMeasured)
Parameters
| Type |
Name |
Description |
| System.Int64 |
ticks |
|
| System.Int64 |
actualRunsMeasured |
|
Fields
DefaultWarmup
Declaration
public static readonly WarmupData DefaultWarmup
Field Value
PreWarmup
Declaration
public static readonly WarmupData PreWarmup
Field Value
PreWarmupSampleSize
The default sample size we use during JIT warmups
Declaration
public const int PreWarmupSampleSize = 1
Field Value
| Type |
Description |
| System.Int32 |
|
WarmupSampleSize
Declaration
public const int WarmupSampleSize = 1024
Field Value
| Type |
Description |
| System.Int32 |
|
Properties
ActualRunsMeasured
Declaration
public long ActualRunsMeasured { get; }
Property Value
| Type |
Description |
| System.Int64 |
|
ElapsedNanos
Declaration
public double ElapsedNanos { get; }
Property Value
| Type |
Description |
| System.Double |
|
ElapsedSeconds
Declaration
public double ElapsedSeconds { get; }
Property Value
| Type |
Description |
| System.Double |
|
ElapsedTicks
Declaration
public long ElapsedTicks { get; }
Property Value
| Type |
Description |
| System.Int64 |
|
EstimatedRunsPerSecond
Declaration
public long EstimatedRunsPerSecond { get; }
Property Value
| Type |
Description |
| System.Int64 |
|
NanosPerRun
Declaration
public double NanosPerRun { get; }
Property Value
| Type |
Description |
| System.Double |
|
Methods
Equals(WarmupData)
Declaration
public bool Equals(WarmupData other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Operators
Equality(WarmupData, WarmupData)
Declaration
public static bool operator ==(WarmupData left, WarmupData right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Inequality(WarmupData, WarmupData)
Declaration
public static bool operator !=(WarmupData left, WarmupData right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|