BenchmarkDotNet
BenchmarkDotNet copied to clipboard
Powerful .NET library for benchmarking
I've noticed that having a white space in the Description of a benchmark causes additional quotes to be added to the MethodTitle (all exporters). Method | Mean | Error |...
As far as I understand it, if the `SummaryStyle.TimeUnit` is set to null/default, BDN calculates the best fitting unit, which seems to be the one that can display the smallest...
I'm confused by this description of IColumn.GetValue(): https://github.com/dotnet/BenchmarkDotNet/blob/93786511bf9b2a0e2bdae45c7248ff963a750992/src/BenchmarkDotNet/Columns/IColumn.cs#L19-L27 Now my reading would be to implement this as: ```C# public string GetValue(Summary summary, BenchmarkCase benchmarkCase) => GetValue(summary, benchmarkCase, summary.Style); public string...
Unless doing instruction level profiling, the highest precision timer on a modern computer is about `25-32 cycles` (which is, under ideal circumstances, about `6ns` on a 5GHz processor at best...
WASM support got again broken very recently: https://github.com/dotnet/runtime/issues/78575 We should consider adding automated tests for verifying that WASM just works. Our Linux CI jobs takes 20+ minutes to execute, so...
The properties marked with the ParamsSource attribute aren't set in the ExecutionValidatorBase. This causes issues when this validator calls the GlobalSetup. The property marked as this does work as expected...
```C# [DryJob(RuntimeMoniker.Net50)] //this can be changed for example to RuntimeMoniker.NetCoreApp20 public class Benchmarks { [Benchmark] public void Method() { } } ``` I waited 20 min (10min is a timeout),...
After https://github.com/dotnet/BenchmarkDotNet/pull/2227 is merged, the person working on it should remove these lines of code: https://github.com/dotnet/BenchmarkDotNet/blob/183827cb0f12906faa7df9673bdb352d22fe2558/src/BenchmarkDotNet/Engines/GcStats.cs#L138-L140 and just test it by running the benchmarks for WASM. We more or less...
This could be a great addition to this framework if energy usage measurements could be included in the benchmarks. Energy efficiency is becoming more relevant, and it is known that...
The test overhead deduction causes BDN to underreport benchmark execution times (as likely interpreted by users). The magnitude will vary depending upon hardware & the nature of test code, but...