Instead of calling your benchmark methods outside the context of BenchmarkDotNet to validate they all return the same value, let … Continue reading How to validate all benchmarked methods return the same value with BenchmarkDotNet
Category: BenchmarkDotNet
How to order BenchmarkDotNet results from fastest to slowest
By default BenchmarkDotNet outputs the results of benchmarks as they are coded in the benchmark class file. If you wish … Continue reading How to order BenchmarkDotNet results from fastest to slowest
How to select BenchmarkDotNet benchmark in the console at runtime
If you have a set of benchmarks and are looking to run different ones at different times you can manually … Continue reading How to select BenchmarkDotNet benchmark in the console at runtime
Remove columns in BenchmarkDotNet result table
BenchmarkDotNet v0.13.2 was released recently and one of the new features is the ability to remove columns from the results … Continue reading Remove columns in BenchmarkDotNet result table
How to set time unit in BenchmarkDotNet results
Explicitly setting the time measurement unit which BenchmarkDotNet should display results in is easy… 👇🏻
How to have multiple baselines in BenchmarkDotNet
Without doing anything else if we try to mark two or more benchmark methods as baselines BenchmarkDotNet will complain… .. … Continue reading How to have multiple baselines in BenchmarkDotNet
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 … Continue reading Group benchmarks by method when using Params in BenchmarkDotNet
How to have a GlobalSetup per benchmark in BenchmarkDotNet
If we are using BenchmarkDotNet and want to have a different setup method for each benchmark or groups of benchmarks … Continue reading How to have a GlobalSetup per benchmark in BenchmarkDotNet
How to benchmark different versions of the same library with BenchmarkDotNet
If you want to benchmark the performance of two or more versions of the same library against each other you … Continue reading How to benchmark different versions of the same library with BenchmarkDotNet
Running BenchmarkDotNet benchmarks against .NET 7
.NET 7 will be released in November 2022. If you want to run performance benchmarks against it using BenchmarkDotNet you … Continue reading Running BenchmarkDotNet benchmarks against .NET 7
How to run benchmarks against multiple versions of .NET with BenchmarkDotNet
If you’re into this sort of stuff like me it can be fun to run benchmarks against bits of code … Continue reading How to run benchmarks against multiple versions of .NET with BenchmarkDotNet
How to get started with BenchmarkDotNet using a simple example
BenchmarkDotNet has become the de facto standard for performance benchmarking on .NET. Nearly every video or blog post which Microsoft … Continue reading How to get started with BenchmarkDotNet using a simple example
How to set the Ratio column style in BenchmarkDotNet results
By default when you output the Ratio column in BenchmarkDotNet using the Baseline = true attribute it is output using … Continue reading How to set the Ratio column style in BenchmarkDotNet results
How to output the Ratio column when using BenchmarkDotNet
If you’re using BenchmarkDotNet and want to see how other methods compare against a baseline method, set the Baseline attribute … Continue reading How to output the Ratio column when using BenchmarkDotNet