Table of Contents

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

BenchmarkSwitcher

FromAssembly(Assembly)

public static BenchmarkSwitcher FromAssembly(Assembly assembly)

Parameters

assembly Assembly

Returns

BenchmarkSwitcher

FromTypes(Type[])

public static BenchmarkSwitcher FromTypes(Type[] types)

Parameters

types Type[]

Returns

BenchmarkSwitcher

Run(string[]?, IConfig?)

public IEnumerable<Summary> Run(string[]? args = null, IConfig? config = null)

Parameters

args string[]
config IConfig

Returns

IEnumerable<Summary>

RunAll(IConfig?, string[]?)

Run all available benchmarks.

public IEnumerable<Summary> RunAll(IConfig? config = null, string[]? args = null)

Parameters

config IConfig
args string[]

Returns

IEnumerable<Summary>

RunAllJoined(IConfig?, string[]?)

Run all available benchmarks and join them to a single summary

public Summary RunAllJoined(IConfig? config = null, string[]? args = null)

Parameters

config IConfig
args string[]

Returns

Summary

With(Assembly)

public BenchmarkSwitcher With(Assembly assembly)

Parameters

assembly Assembly

Returns

BenchmarkSwitcher

With(Assembly[])

public BenchmarkSwitcher With(Assembly[] assemblies)

Parameters

assemblies Assembly[]

Returns

BenchmarkSwitcher

With(Type)

public BenchmarkSwitcher With(Type type)

Parameters

type Type

Returns

BenchmarkSwitcher

With(Type[])

public BenchmarkSwitcher With(Type[] types)

Parameters

types Type[]

Returns

BenchmarkSwitcher