Table of Contents

Class GcForceAttribute

Namespace
BenchmarkDotNet.Attributes
Assembly
BenchmarkDotNet.dll

Specifies whether the BenchmarkDotNet's benchmark runner forces full garbage collection after each benchmark invocation false: Does not force garbage collection. true: Forces full garbage collection after each benchmark invocation. This is the default.

public class GcForceAttribute : JobMutatorConfigBaseAttribute, IConfigSource
Inheritance
GcForceAttribute
Implements
Inherited Members

Constructors

GcForceAttribute(bool)

public GcForceAttribute(bool value = true)

Parameters

value bool
Specifies whether the BenchmarkDotNet's benchmark runner forces full garbage collection after each benchmark invocation false: Does not force garbage collection. true: Forces full garbage collection after each benchmark invocation. This is the default.