Interview Prep/CI/CD/Metrics, Performance and Cost

How do you profile where pipeline time is going?

BeginnerProductionMetrics, Performance and Cost
Answer

Look at per-step timing in the CI UI (GitHub step durations, GitLab job timeline, Jenkins Pipeline Graph View/timestamps), export run data via API into a dashboard, identify the critical path, and measure setup overhead (runner start, checkout, dependency install, image pull) separately from useful work. Often 40% of a job is setup, which caching and prebuilt images fix.

gh run view 1234567890 --json jobs --jq '.jobs[] | {name, started: .startedAt, done: .completedAt}'
All CI/CD questions

More on Metrics, Performance and Cost