Interface IDiscovery
Compiler responsible for generating BenchmarkSettings
Namespace: NBench.Sdk.Compiler
Assembly: NBench.dll
Syntax
public interface IDiscovery
Properties
BenchmarkAssertions
Engine used to perform BenchmarkAssertions against data collected from a Benchmark
Declaration
IBenchmarkAssertionRunner BenchmarkAssertions { get; }
Property Value
Type | Description |
---|---|
IBenchmarkAssertionRunner |
Output
Output engine used to write discovery and processing results to the log
Declaration
IBenchmarkOutput Output { get; }
Property Value
Type | Description |
---|---|
IBenchmarkOutput |
Methods
FindBenchmarks(Assembly)
Uses reflection on the target assembly to discover PerfBenchmarkAttribute instances.
Declaration
IEnumerable<Benchmark> FindBenchmarks(Assembly targetAssembly)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | targetAssembly | The assembly we're going to scan for benchmarks. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Benchmark> | A list of Benchmarks we can run based on the classes found inside |
FindBenchmarks(Type)
Uses reflection on the target assembly to discover PerfBenchmarkAttribute instances.
Declaration
IEnumerable<Benchmark> FindBenchmarks(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | targetType | The type we're going to scan for benchmarks. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Benchmark> | A list of Benchmarks we can run based on the classes found inside |