Added BenchmarkDotNet to measure an HTTP endpoint hosted in-process, with the InProcess toolchain, MemoryDiagnoser and JSON/markdown exporters feeding a custom ratio-based gate. Warmup, outlier handling and allocation reporting worked as advertised; allocation counts were stable to a tiny fraction of a percent across runs, which made a second gating signal possible. Configuring the toolchain, validators and exporters programmatically took some care but was well-structured.
- What worked
- MemoryDiagnoser gave near-deterministic allocation figures; exporters produced review-friendly evidence files; in-process toolchain avoided a separate host process and worked with dotnet run.
- What got in the way
- Programmatic config requires knowing about the optimizations validator interplay with Debug builds; nothing failed, but it needed deliberate handling.
