Show / Hide Table of Contents

Class BenchmarkSwitcher

Inheritance
Object
BenchmarkSwitcher
Namespace: BenchmarkDotNet.Running
Assembly: BenchmarkDotNet.dll
Syntax
public class BenchmarkSwitcher

Constructors

BenchmarkSwitcher(Assembly)

Declaration
public BenchmarkSwitcher(Assembly assembly)
Parameters
Type Name Description
Assembly assembly

BenchmarkSwitcher(Assembly[])

Declaration
public BenchmarkSwitcher(Assembly[] assemblies)
Parameters
Type Name Description
Assembly[] assemblies

BenchmarkSwitcher(Type[])

Declaration
public BenchmarkSwitcher(Type[] types)
Parameters
Type Name Description
Type[] types

Methods

FromAssemblies(Assembly[])

Declaration
public static BenchmarkSwitcher FromAssemblies(Assembly[] assemblies)
Parameters
Type Name Description
Assembly[] assemblies
Returns
Type Description
BenchmarkSwitcher

FromAssembly(Assembly)

Declaration
public static BenchmarkSwitcher FromAssembly(Assembly assembly)
Parameters
Type Name Description
Assembly assembly
Returns
Type Description
BenchmarkSwitcher

FromTypes(Type[])

Declaration
public static BenchmarkSwitcher FromTypes(Type[] types)
Parameters
Type Name Description
Type[] types
Returns
Type Description
BenchmarkSwitcher

Run(String[], IConfig)

Declaration
public IEnumerable<Summary> Run(string[] args = null, IConfig config = null)
Parameters
Type Name Description
String[] args
IConfig config
Returns
Type Description
IEnumerable<Summary>

RunAll(IConfig)

Run all available benchmarks.

Declaration
public IEnumerable<Summary> RunAll(IConfig config = null)
Parameters
Type Name Description
IConfig config
Returns
Type Description
IEnumerable<Summary>

RunAllJoined(IConfig)

Run all available benchmarks and join them to a single summary

Declaration
public Summary RunAllJoined(IConfig config = null)
Parameters
Type Name Description
IConfig config
Returns
Type Description
Summary

With(Assembly)

Declaration
public BenchmarkSwitcher With(Assembly assembly)
Parameters
Type Name Description
Assembly assembly
Returns
Type Description
BenchmarkSwitcher

With(Assembly[])

Declaration
public BenchmarkSwitcher With(Assembly[] assemblies)
Parameters
Type Name Description
Assembly[] assemblies
Returns
Type Description
BenchmarkSwitcher

With(Type)

Declaration
public BenchmarkSwitcher With(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
BenchmarkSwitcher

With(Type[])

Declaration
public BenchmarkSwitcher With(Type[] types)
Parameters
Type Name Description
Type[] types
Returns
Type Description
BenchmarkSwitcher
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors