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?