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}'
More on Metrics, Performance and Cost
How do you measure DORA metrics in practice?IntermediateWhat do the DORA performance levels look like, and how do you use them?IntermediateWhat are common ways DORA metrics get gamed or misread?AdvancedWhich pipeline metrics do you monitor for the CI platform itself?IntermediateHow do you cut CI cost without hurting developer speed?IntermediateHow do you use a remote build cache (Gradle, Bazel, Turborepo, Nx)?Advanced