-
Overview | BenchmarkDotNet
Projects: classic and modern with PackageReferences
Runtimes: Full .NET Framework (4.6+), .NET Core (2.0+), Mono, NativeAOT
OS: Windows, Linux, MacOS
Design a benchmark
Create a new console applicatio...
-
Getting started | BenchmarkDotNet
Step 1. Create a project
Create a new console application.
Step 2. Installation
> dotnet add package BenchmarkDotNet
Step 3. Design a benchmark
Write a class with methods that you want to measure and...
-
Diagnosers | BenchmarkDotNet
Allocated native memory and
Event Pipe Profiler (
EventPipeProfiler).
It is a cross-platform profiler that allows profile .NET code on every platform - Windows, Linux, macOS.
Please see Wojciech Nagó...
-
Toolchains | BenchmarkDotNet
Table of Contents
Toolchains
To achieve process-level isolation, BenchmarkDotNet generates, builds and executes a new console app per every benchmark. A
toolchain contains generator, builder, and exe...
-
BenchmarkDotNet templates | BenchmarkDotNet
Table of Contents
BenchmarkDotNet provides project templates to setup your benchmarks easily.
The template exists for each major .NET language (C#, F# and VB) with equivalent features and structure.
...
-
How to run your benchmarks | BenchmarkDotNet
Table of Contents
There are several ways to run your benchmarks. What is important is that
BenchmarkDotNet works only with Console Apps. It does not support any other kind of application like ASP.NET...