Skip to content

CICD-455 · Inference performance regression gate ​

Encyclopedia · GPU and inference infrastructure · All snippets

Previous · CICD-454 · Next · CICD-456

1. Where it fits ​

  • Placement In the candidate verification job, after both benchmark result files are available.
  • Prerequisites dedicated GPU lab, approved images and model revision, fixed benchmark profile.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
jq -es '.[0] as $base | .[1] as $cand | $base.p99_ttft_ms > 0 and $cand.completed >= 80 and $cand.p99_ttft_ms <= 1.15*$base.p99_ttft_ms and $cand.output_throughput >= 0.95*$base.output_throughput' baseline.json candidate.json

3. How it works ​

The gate compares baseline and candidate JSON reports from the same benchmark. It checks completions, caps p99 TTFT growth, and rejects throughput below the allowed baseline fraction.

Compare like-for-like baseline and candidate reports before promotion.

flowchart TD
  N1["Baseline report"]
  N2{"Completions latency and throughput pass"}
  N1 --> N2
  N3["Candidate report"]
  N3 --> N2
  N4["Allow next release stage"]
  N2 -->|Yes| N4
  N5["Fail regression gate"]
  N2 -->|No| N5

4. Verify the result ​

Use identical engine fixture, GPU model and traffic profile. Fail on low completion count, more than 15% slower p99 TTFT or more than 5% lower throughput.

Validation version-dependent (Bash parse). Status definitions.