32 / 48 · 16 CI/CD Pipelines · Pipeline Optimization← prev⊞ allnext →☰ Read as one page
5.7Measuring Pipeline Performance
Track these metrics to identify optimization opportunities:
| Metric | How to Measure | Target |
|---|---|---|
| PR feedback time | Time from push to unit test results | < 5 minutes |
| Full pipeline time | Time from push to all checks complete | < 20 minutes |
| Cache hit rate | Check cache action logs | > 90% |
| Flaky test rate | Tests that pass on retry | < 2% |
| Queue time | Time jobs spend waiting for a runner | < 1 minute |
If queue time is high, you need more runners or better scheduling. If cache hit rate is low, your cache keys are too specific.