Benchmarking
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Cephalon.Benchmarks is a BenchmarkDotNet suite that covers:
- Composition (registration + ordering performance).
- Runtime lifecycle (
OnStart/OnStop). - AspNetCore REST hot path.
- Runtime host hot path.
- Scaffolding performance.
Running locally
Section titled “Running locally”dotnet run -c Release --project ./benchmarks/Cephalon.Benchmarks -- --filter "*RestHotPath*"Discipline
Section titled “Discipline”- Hot-path regressions of more than ~5% require a justified rationale in the PR.
- Memory regressions (allocations / Gen0/Gen1/Gen2) are tracked separately and called out in review.
- Baselines move forward only when intentional.