Class BenchmarkBuilder
Responsible for instrumenting all of the metrics and producing the BenchmarkContext used inside each BenchmarkRun
Inheritance
System.Object
BenchmarkBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NBench.Sdk
Assembly: NBench.dll
Syntax
public sealed class BenchmarkBuilder
Constructors
BenchmarkBuilder(BenchmarkSettings)
Creates a new benchmark builder instance.
Declaration
public BenchmarkBuilder(BenchmarkSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| BenchmarkSettings | settings | The settings compiled for this benchmark. |
Properties
Settings
Declaration
public BenchmarkSettings Settings { get; }
Property Value
| Type | Description |
|---|---|
| BenchmarkSettings |
Methods
NewRun(WarmupData)
Generates a new BenchmarkRun based on the provided settings, available system metrics, and (optionally) the duration of the last run.
Declaration
public BenchmarkRun NewRun(WarmupData warmupData)
Parameters
| Type | Name | Description |
|---|---|---|
| WarmupData | warmupData | Data collected during warm-up |
Returns
| Type | Description |
|---|---|
| BenchmarkRun | A new BenchmarkRun instance. |