You add [MemoryDiagnoser] and [Benchmark] to a class, run dotnet run -c Release , and BenchmarkDotNet hands you back a beautifully formatted table: mean, median, standard deviation, allocated bytes per operation. It's one of the best measurement tools in any ecosystem. And then what?
Source: [Dev.to](https://dev.to/younessaamiri/benchmarkdotnet-measures-performance-but-who-enforces-the-budget-1am2)