performance-benchmark
Installation
SKILL.md
Ad Hoc Performance Benchmarking Locally (or with @EgorBot)
When you need to validate the performance impact of a code change, follow this process to write a BenchmarkDotNet benchmark and compare local baseline and changed builds.
Step 1: Write the Benchmark
Create a BenchmarkDotNet benchmark that tests the specific operation being changed. Follow these guidelines:
Benchmark Structure
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
BenchmarkSwitcher.FromAssembly(typeof(Bench).Assembly).Run(args);