This project compares the performance of the managed .NET code with the corresponding Native AOT version. We use 2 types of benchmarks:
- Based on BenchmarkDotNet
- Based on hyperfine
Read the .NET Native AOT benchmarking article for more detail.
Install prerequisites required by the Native AOT compiler.
Install hyperfine to run corresponding benchmarks.
This project uses the Docotic.Pdf library for PDF to PNG conversion. You need to provide a license key in the Helper.cs. You can get a free license key here: https://bitmiracle.com/pdf-library/download.
Run the NativeAotBenchmarks project in the Release
configuration and
choose a corresponding benchmark to run.
Run the benchmark.bat script on Windows.