Show / Hide Table of Contents

Enum BenchmarkActionCodegen

How benchmark action code is generated

Namespace: BenchmarkDotNet.Toolchains.InProcess
Assembly: BenchmarkDotNet.dll
Syntax
[Obsolete("Please use BenchmarkDotNet.Toolchains.InProcess.NoEmit.* classes")]
public enum BenchmarkActionCodegen

Fields

Name Description
DelegateCombine

Fallback option: the unroll feature is implemented using Combine(Delegate, Delegate) method. Has additional overhead (+1 delegate call) but should work on all platforms.

ReflectionEmit

The unroll feature is implemented using dynamic method codegen (Reflection.Emit). Provides most accurate results but may not work as expected on some platforms (e.g. .Net Native).

In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors