Group benchmarks by method when using Params in BenchmarkDotNet

Using the Params attribute in BenchmarkDotNet is really useful as it allows us to get benchmark results for each combination of different Param values we have set.

When we use Params, by default BenchmarkDotNet will group results by param values like the first example below. If however we want our results grouped by benchmark method we can set the GroupBenchmarksBy attribute as shown below…

Click the image for a larger view in a new tab…

Leave a Reply

Your email address will not be published.