Table of Contents

Class BenchmarkAttribute

Namespace
BenchmarkDotNet.Attributes
Assembly
BenchmarkDotNet.Annotations.dll
[AttributeUsage(AttributeTargets.Method)]
public class BenchmarkAttribute : Attribute
Inheritance
BenchmarkAttribute
Inherited Members

Constructors

BenchmarkAttribute(int, string)

public BenchmarkAttribute(int sourceCodeLineNumber = 0, string sourceCodeFile = "")

Parameters

sourceCodeLineNumber int
sourceCodeFile string

Properties

Baseline

public bool Baseline { get; set; }

Property Value

bool

Description

public string? Description { get; set; }

Property Value

string

OperationsPerInvoke

public int OperationsPerInvoke { get; set; }

Property Value

int

SourceCodeFile

public string SourceCodeFile { get; }

Property Value

string

SourceCodeLineNumber

public int SourceCodeLineNumber { get; }

Property Value

int