BenchmarkDotNet & Benchmarking (edit)
- We use benchmarks to find code performance
- BenchmarkDotNet is a nuget package
- We use console apps to host and run benchmarks
Introduction to BenchMarkDotNet – DevSuhas
Attach a debugger from IDE
Troubleshooting | BenchmarkDotNet
Measuring performance using BenchmarkDotNet - Part 1 - DEV Community
GitHub - NewDayTechnology/benchmarking-performance-part-1: A simple demonstration of BenchmarkDotNet
Measuring performance using BenchmarkDotNet - Part 2 - DEV Community
Measuring performance using BenchmarkDotNet - Part 3 Breaking Builds - DEV Community
Benchmarking and performance optimizations in C# using BenchmarkDotNet (stebet.net) (HAY HAY HAY)
BenchmarkDotNet
dotnet/BenchmarkDotNet: Powerful .NET library for benchmarking (github.com)
BenchmarkDotNet Analyser
A tool for analysing BenchmarkDotNet results
NewDayTechnology/benchmarkdotnet.analyser: A tool for analysing BenchmarkDotNet results (github.com)
Awesome .NET Performance: Benchmarking
dotnet-reportgenerator-globaltool
NuGet Gallery | dotnet-reportgenerator-globaltool 4.8.9
Usage:
reportgenerator [options]
tools\reportgenerator.exe [options]
dotnet reportgenerator [options]
Dotnet Command Line Tools
mkdir c:\projects\scratch\tools
cd c:\
cd projects\scratch\tools
dotnet new nugetconfig
dotnet nuget add source https://nuget.pkg.github.com/NewDayTechnology/index.json --configfile ./nuget.config -n newdaytechnology -p nvmanhntq -u nvmanhntq
dotnet nuget list source
dotnet new tool-manifest
dotnet tool install bdna
dotnet tool install bdna --version 0.1.121-preview
C:\Program Files\dotnet\sdk\5.0.203\NuGet.targets
git init
git clone "https://github.com/NewDayTechnology/benchmarking-performance-part-2.git"
cd benchmarking-performance-part-2
#c:\projects\scratch\tools\benchmarking-performance-part-2
dotnet clean
dotnet restore
dotnet build -c Release
cd src\benchmarkdotnetdemo\bin\Release\net5.0
#c:\projects\scratch\tools\benchmarking-performance-part-2\src\benchmarkdotnetdemo\bin\Release\net5.0
dotnet Benchmarkdotnetdemo.dll -f *
dotnet bdna aggregate -new ".\src\benchmarkdotnetdemo\bin\Release\net5.0\BenchmarkDotNet.Artifacts\results" -aggs ".\bdna" -out ".\bdna" -runs 30
#c:\projects\scratch\tools\benchmarking-performance-part-2\src\benchmarkdotnetdemo\bin\Release\net5.0\BenchmarkDotNet.Artifacts\results
dotnet bdna analyse --aggregates ".\bdna" --tolerance 0 --maxerrors 0 --verbose