Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    Did you get a resolution to this? Running via tests, my Benchmark methods just say "N/A" Commented Oct 25, 2020 at 18:11
  • Also make sure you are running in Release mode. At least that is what I had to do. dotnet test -c Release. Commented Jul 7, 2021 at 13:18
  • Try to check the log file in your BenchmarkDotNet.Artifacts folder and deal with any issue there. Mine is "Assembly xx which defines benchmarks references xx; If you own this dependency, please, build it in RELEASE. If you don't, you can disable this policy by using 'config.WithOptions(ConfigOptions.DisableOptimizationsValidator)'. I ended up using the config according to their documentation. Commented Dec 8, 2021 at 22:36