Property | Type | Description | |
---|---|---|---|
StopWatch | Stopwatch |
Property | Type | Description | |
---|---|---|---|
Builder | NBench.Sdk.BenchmarkBuilder | ||
WarmupData |
Method | Description | |
---|---|---|
AssertResults ( NBench.Reporting.BenchmarkResults result ) : NBench.Reporting.BenchmarkFinalResults | ||
Benchmark ( NBench.Sdk.BenchmarkSettings settings, IBenchmarkInvoker invoker, IBenchmarkOutput writer ) : System |
Backwards-compatible constructor for NBench 0.1.6 and earlier. Uses the DefaultBenchmarkAssertionRunner to assert benchmark data. |
|
Benchmark ( NBench.Sdk.BenchmarkSettings settings, IBenchmarkInvoker invoker, IBenchmarkOutput writer, IBenchmarkAssertionRunner benchmarkAssertions ) : System |
Backwards-compatible constructor for NBench 0.1.6 and earlier.
|
|
CompileResults ( ) : NBench.Reporting.BenchmarkResults |
Compiles all of the completed BenchmarkRuns into reports
|
|
Finish ( ) : void |
Complete the benchmark
|
|
PrepareForRun ( ) : void |
Performs any final GC needed before we start a test run
|
|
Run ( ) : void | ||
Shutdown ( ) : void |
Method | Description | |
---|---|---|
PostRun ( ) : void |
NOTE: We don't reset the Stopwatch on purpose here, so we can collect the value of it and use it for auto-tuning and reporting. It'll be started at the beginning of the next run.
|
|
PreRun ( ) : void | ||
RunBenchmark ( ) : void |
Method | Description | |
---|---|---|
Allocate ( ) : void |
Pre-allocate all of the objects we're going to need for this benchmark
|
|
Complete ( bool isEstimate = false ) : void |
Complete the current run
|
|
HandleBenchmarkRunException ( |
||
PrintWarmupOrRun ( bool isWarmup ) : string |
Helper method for printing out the correct label to trace
|
|
RunSingleBenchmark ( ) : void | ||
WarmUp ( ) : void |
Warmup phase
|
public AssertResults ( NBench.Reporting.BenchmarkResults result ) : NBench.Reporting.BenchmarkFinalResults | ||
result | NBench.Reporting.BenchmarkResults | |
return | NBench.Reporting.BenchmarkFinalResults |
public Benchmark ( NBench.Sdk.BenchmarkSettings settings, IBenchmarkInvoker invoker, IBenchmarkOutput writer ) : System | ||
settings | NBench.Sdk.BenchmarkSettings | The settings for this benchmark. |
invoker | IBenchmarkInvoker | The invoker used to execute benchmark and setup / cleanup methods. |
writer | IBenchmarkOutput | The output target this benchmark will write to. |
return | System |
public Benchmark ( NBench.Sdk.BenchmarkSettings settings, IBenchmarkInvoker invoker, IBenchmarkOutput writer, IBenchmarkAssertionRunner benchmarkAssertions ) : System | ||
settings | NBench.Sdk.BenchmarkSettings | The settings for this benchmark. |
invoker | IBenchmarkInvoker | The invoker used to execute benchmark and setup / cleanup methods. |
writer | IBenchmarkOutput | The output target this benchmark will write to. |
benchmarkAssertions | IBenchmarkAssertionRunner | The assertion engine we'll use to perform BenchmarkAssertions against benchmarks. |
return | System |
public CompileResults ( ) : NBench.Reporting.BenchmarkResults | ||
return | NBench.Reporting.BenchmarkResults |
protected BenchmarkBuilder,NBench.Sdk Builder | ||
return | NBench.Sdk.BenchmarkBuilder |