Skip to content

BitMiracle/NativeAotBenchmarks

Repository files navigation

Benchmarking Native AOT code

This project compares the performance of the managed .NET code with the corresponding Native AOT version. We use 2 types of benchmarks:

Read the .NET Native AOT benchmarking article for more detail.

Prerequisites

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.

BenchmarkDotNet

Run the NativeAotBenchmarks project in the Release configuration and choose a corresponding benchmark to run.

hyperfine

Run the benchmark.bat script on Windows.