Table of Contents

Class BenchmarkActionFactory

Namespace
BenchmarkDotNet.Toolchains.InProcess.NoEmit
Assembly
BenchmarkDotNet.dll

Helper class that creates BenchmarkAction instances.

public static class BenchmarkActionFactory
Inheritance
BenchmarkActionFactory

Methods

CreateDummy()

Creates a dummy benchmark action.

public static BenchmarkAction CreateDummy()

Returns

BenchmarkAction

Dummy benchmark action.

CreateGlobalCleanup(Descriptor, object)

Creates global cleanup benchmark action.

public static BenchmarkAction CreateGlobalCleanup(Descriptor descriptor, object instance)

Parameters

descriptor Descriptor

Descriptor info.

instance object

Instance of target.

Returns

BenchmarkAction

Cleanup benchmark action.

CreateGlobalSetup(Descriptor, object)

Creates global setup benchmark action.

public static BenchmarkAction CreateGlobalSetup(Descriptor descriptor, object instance)

Parameters

descriptor Descriptor

Descriptor info.

instance object

Instance of target.

Returns

BenchmarkAction

Setup benchmark action.

CreateIterationCleanup(Descriptor, object)

Creates global cleanup benchmark action.

public static BenchmarkAction CreateIterationCleanup(Descriptor descriptor, object instance)

Parameters

descriptor Descriptor

Descriptor info.

instance object

Instance of target.

Returns

BenchmarkAction

Cleanup benchmark action.

CreateIterationSetup(Descriptor, object)

Creates global setup benchmark action.

public static BenchmarkAction CreateIterationSetup(Descriptor descriptor, object instance)

Parameters

descriptor Descriptor

Descriptor info.

instance object

Instance of target.

Returns

BenchmarkAction

Setup benchmark action.

CreateOverhead(Descriptor, object, int)

Creates idle benchmark action.

public static BenchmarkAction CreateOverhead(Descriptor descriptor, object instance, int unrollFactor)

Parameters

descriptor Descriptor

Descriptor info.

instance object

Instance of target.

unrollFactor int

Unroll factor.

Returns

BenchmarkAction

Idle benchmark action.

CreateWorkload(Descriptor, object, int)

Creates run benchmark action.

public static BenchmarkAction CreateWorkload(Descriptor descriptor, object instance, int unrollFactor)

Parameters

descriptor Descriptor

Descriptor info.

instance object

Instance of target.

unrollFactor int

Unroll factor.

Returns

BenchmarkAction

Run benchmark action.