Class BenchmarkSwitcher
- Namespace
- BenchmarkDotNet.Running
- Assembly
- BenchmarkDotNet.dll
public class BenchmarkSwitcher
- Inheritance
-
BenchmarkSwitcher
Constructors
BenchmarkSwitcher(Assembly)
public BenchmarkSwitcher(Assembly assembly)
Parameters
assembly
Assembly
BenchmarkSwitcher(Assembly[])
public BenchmarkSwitcher(Assembly[] assemblies)
Parameters
assemblies
Assembly[]
BenchmarkSwitcher(Type[])
public BenchmarkSwitcher(Type[] types)
Parameters
types
Type[]
Methods
FromAssemblies(Assembly[])
public static BenchmarkSwitcher FromAssemblies(Assembly[] assemblies)
Parameters
assemblies
Assembly[]
Returns
FromAssembly(Assembly)
public static BenchmarkSwitcher FromAssembly(Assembly assembly)
Parameters
assembly
Assembly
Returns
FromTypes(Type[])
public static BenchmarkSwitcher FromTypes(Type[] types)
Parameters
types
Type[]
Returns
Run(string[]?, IConfig?)
public IEnumerable<Summary> Run(string[]? args = null, IConfig? config = null)
Parameters
Returns
RunAll(IConfig?, string[]?)
Run all available benchmarks.
public IEnumerable<Summary> RunAll(IConfig? config = null, string[]? args = null)
Parameters
Returns
RunAllJoined(IConfig?, string[]?)
Run all available benchmarks and join them to a single summary
public Summary RunAllJoined(IConfig? config = null, string[]? args = null)
Parameters
Returns
With(Assembly)
public BenchmarkSwitcher With(Assembly assembly)
Parameters
assembly
Assembly
Returns
With(Assembly[])
public BenchmarkSwitcher With(Assembly[] assemblies)
Parameters
assemblies
Assembly[]
Returns
With(Type)
public BenchmarkSwitcher With(Type type)
Parameters
type
Type
Returns
With(Type[])
public BenchmarkSwitcher With(Type[] types)
Parameters
types
Type[]