dotnet / dotnet/BenchmarkDotNet

Dynamic `OperationsPerInvoke`

Open
#258 26 comments 4 reactions 0 assignees View on GitHub
Area:Attributes enhancement
Dominant language
C#
Stars
11.5k
Forks
1.1k
Avg merge
4d 11h
Merged PRs (30d)
11

Description

I load a list of strings externally as data for my benchmarks. My goal is to measure average time for me to process one string. Of course the data is loaded before benchmarking, but since it happens at runtime, I cannot supply `OperationsPerInvoke` attribute param to `BenchmarkAttribute`, which requires compile-time constant. Is there a way around?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.