DOCS / CSHARPLOAD / THRESHOLDS & REPORTS
Thresholds & reports
Built-in thresholds
.WithThresholds(
Threshold.P95LessThan(TimeSpan.FromMilliseconds(500)),
Threshold.P99LessThan(TimeSpan.FromSeconds(1)),
Threshold.ErrorRateLessThan(0.01),
Threshold.RpsGreaterThan(80))Thresholds are evaluated for every scenario. A failed threshold makes the performance gate fail.
Reporters
.ReportJson("artifacts/load.json")
.ReportMarkdown("artifacts/load.md")
.ReportHtml("artifacts/load.html")
.ReportJUnit("artifacts/load.junit.xml")
.ReportGitHubActions()If no reporter is configured, CSharpLoad writes a console report. JSON is the versioned machine-readable contract consumed by Studio. GitHub Actions reporting emits workflow annotations for failed thresholds.