- Install the .NET 8 SDK
- Clone this repository:
git clone https://github.com/mgnsm/ZLibDotNet.git
- Run the dotnet run command:
dotnet run --project tests/ZLibDotNet.Benchmarks -c Release -f net8.0 -- -f *
If you don't want to run all benchmarks, you can filter some of them by replacing the *
with a string that matches a specific class or method.
For example, the following command runs the benchmarks defined in the InflateBenchmarks class only:
dotnet run --project tests/ZLibDotNet.Benchmarks -c Release -f net8.0 -- -f *.Inflate*
Please refer to BenchmarkDotNet.org to learn more about how to configure and run the benchmarks.
The results of running the deflate (compression) and inflate (uncompression) benchmarks on a development machine can be found here and here respectively.