Skip to content
Marvex

DORA metrics

Lead Time vs Cycle Time: Two Clocks, Two Different Fixes

Almost every argument about lead time is an argument about where the clock starts. Fix that first and the disagreement usually disappears.

A precise distinction between DORA lead time for changes, product lead time and engineering cycle time, including which delivery problems each measurement window can and cannot detect.

DORA MetricsMarvex EngineeringEngineering Intelligence, Shiprocket9 min read
Source code on a monitor with a version control history open

Three clocks that all get called "lead time"

The terms come from different traditions, which is why they collide. In Lean and Kanban, lead time is customer-facing: it starts when a request enters the system and ends when it is delivered. Cycle time is the working portion: it starts when work actually begins on the item and ends when it is done. Lead time includes the queue in front of the work; cycle time does not.

DORA borrows the phrase and narrows it. Lead time for changes runs from code committed to code running in production. That excludes the entire discovery and prioritisation phase, so a DORA lead time of one day is entirely compatible with an idea sitting in a backlog for two months first.

Engineering tooling adds a third convention. In most delivery analytics products, including Marvex, cycle time refers to the pull request lifecycle: from the pull request opening to it merging, decomposed into stages. That is narrower again than the Lean sense, and it is the window where most concrete, fixable delay lives.

So there are at least three defensible clocks: request-to-delivery, commit-to-production, and open-to-merge. None is wrong. What is wrong is one document using two of them without saying which, which is how a leadership team ends up believing engineering takes either two days or two months depending on whose slide is on screen.

  • Lean lead time: request accepted to delivered — includes the backlog queue
  • DORA lead time for changes: code committed to running in production
  • Engineering cycle time: pull request opened to merged, split into stages
  • Always name the window before quoting the number

What each window can actually diagnose

Request-to-delivery is the only window that catches the largest delay in most organisations, which is the backlog itself. If work waits six weeks before anyone starts it, no amount of pull request optimisation will be visible to the person who asked for it. This window is the right one for a conversation with product and with stakeholders, and it is the wrong one for a conversation about engineering practice, because engineering does not control most of it.

Commit-to-production is the right window for the delivery machinery: branching strategy, CI duration, environment queues, release cadence, approval gates. It is bounded by things an engineering organisation can change without renegotiating how prioritisation works, which is exactly why the DORA programme scoped it there.

Open-to-merge is the right window for the day-to-day. It is where review latency lives, where oversized changes announce themselves, and where rework loops become visible. It is also the window with the richest event data, because every pull request emits timestamps for opening, first comment, approval, subsequent commits and merge without anyone instrumenting anything.

The three nest. Improvements in the innermost window are real but can be invisible in the outermost one — halving review latency changes nothing a stakeholder perceives if the item then waits three weeks for a release train. That is not a reason to skip the inner measurement; it is a reason to be honest about which claim you are making.

The four stages of pull request cycle time

Marvex splits the open-to-merge window into first response or pickup, review, rework and merge. The split matters because each stage has a different cause and a different remedy, and the aggregate hides all of it.

Pickup is the wait for a first human response. It is pure queue: nobody is working, and it is usually the largest single stage in teams that have not looked at it. It is also the cheapest to fix, because the remedies are organisational — a review rota, a convention about who gets requested, a shared expectation for first response — rather than technical.

Review is the elapsed time once someone has engaged. Long review time on small changes generally means the reviewer is context-switching between too many things. Long review time on very large changes usually means the change is asking too much of the reviewer, which is a batch-size problem wearing a review-process costume.

Rework is commits pushed after review started. Some rework is the system working: that is what review is for. Repeated rework rounds — three, four, five — almost always mean the approach was not agreed before the code was written, and the fix is a design conversation upstream rather than anything in the review process.

Merge time is the gap between approval and the change actually landing. This is nearly always mechanical: slow CI, a required check that queues, a branch protection rule, a merge train, or a human who has to press a button and is asleep. It is the stage most often ignored and the one most often fixable by a platform team without touching how anyone works.

  • Pickup: fix ownership and routing first — it is queue, not work
  • Review on small diffs: reviewer attention and context switching
  • Repeated rework: missing alignment before the code was written
  • Merge after approval: CI duration, required checks, branch protection

Measure the distribution, not the average

Every one of these windows produces a right-skewed distribution. A few pathological items — the change that sat over a holiday, the one that needed a security review, the one whose author went on leave — pull the mean far above the typical experience. Reporting the mean makes the team feel gaslit, because their normal week does not look like the number.

Read the median for the typical case, and a high percentile such as the 85th or 90th for the tail. The gap between them is its own diagnostic: a small gap means a predictable system, a widening gap means an increasing number of items are falling into an exception path, and it is usually the exception path that is worth investigating rather than the median.

Watch out for survivorship as well. Cycle time computed over merged pull requests excludes everything still open, which means a queue of stale, unmerged changes actively improves the number. Look at open pull request age alongside cycle time; a healthy cycle time with a growing pile of ageing open changes is not a healthy system.

  • Median plus 85th or 90th percentile beats the mean
  • A widening median-to-tail gap means more items are hitting an exception path
  • Merged-only cycle time hides stale open work — check open PR age too

A practical convention to adopt

Pick one word per window and enforce it in writing. A convention that works: "lead time" always means the DORA definition of commit to production; "cycle time" always means pull request open to merge; anything that starts at the ticket is called "time to delivery" and is labelled with its start event. The specific choice matters far less than the consistency.

Then report them at different altitudes. Cycle time and its four stages belong to the team, reviewed weekly, because that is where the levers are. Lead time for changes belongs on the team and org dashboards next to the other DORA metrics, because it is the one that connects to deployment frequency and stability. Time to delivery belongs in the conversation with stakeholders, where the backlog queue is in scope and can actually be discussed.

In Marvex, cycle time analytics and the four-stage breakdown sit at the pull request level, DORA lead time sits with deployment frequency, change failure rate and MTTR on the team dashboard, and the org dashboard rolls teams up. Sprint data — from Jira or from SALT if Jira is not your source — is what connects a change back to the item that requested it, which is how the outer window gets closed without anyone maintaining a spreadsheet.

lead timecycle timeflow metricspull requests

Frequently asked questions

What is the difference between lead time and cycle time?

Lead time measures a longer window that includes waiting; cycle time measures the working portion inside it. In Lean terms, lead time starts when a request enters the system and cycle time starts when work actually begins on it, so lead time includes backlog queue time and cycle time does not. In software delivery specifically, DORA lead time for changes runs from code committed to code running in production, while engineering cycle time usually means pull request opened to merged. The windows nest, so the same piece of work has several valid, different numbers.

What is DORA lead time for changes?

DORA lead time for changes is the elapsed time from a change being committed to that change running in production. It is one of the two throughput metrics in the DORA research programme, alongside deployment frequency. It deliberately excludes discovery, prioritisation and backlog time, because the scope is the delivery machinery an engineering organisation controls directly: branching, review, CI duration, environment queues and release cadence. It is not idea-to-production, and reporting it as such overstates what the metric covers.

Which cycle time stage should a team improve first?

Usually first-response or pickup time, because it is pure queue — no one is working on the change while the clock runs — and the remedies are organisational rather than technical. A review rota, a convention for requesting reviewers, or an agreed first-response expectation often move it within a sprint. Review time, rework rounds and merge time all have real work or real infrastructure behind them, so they take longer to shift and usually require either a batch-size change or a platform investment.

Should cycle time be reported as an average?

No. Cycle time distributions are strongly right-skewed, so a handful of exceptional items pull the mean well above the typical experience and the reported number stops matching what the team recognises. Report the median for the typical case and a high percentile such as the 85th or 90th for the tail. The gap between the two is itself informative: a widening gap means an increasing share of work is falling into an exception path, which is usually more actionable than the median moving.

Can cycle time look good while delivery is getting worse?

Yes, in two common ways. First, cycle time computed over merged pull requests excludes everything still open, so a growing pile of stale unmerged work improves the number rather than worsening it — always read open pull request age alongside it. Second, cycle time only covers the open-to-merge window, so a team can halve review latency while items still wait weeks in a backlog or for a monthly release train, leaving the experience of the person who requested the work unchanged.

How does Marvex measure cycle time?

Marvex reads pull request events from GitHub or GitLab and splits the open-to-merge window into four stages: first response or pickup, review, rework and merge time. It reports those alongside pull request size and review depth, so a slow stage can be read against how large and how heavily reviewed the change was. DORA lead time for changes is reported separately with deployment frequency, change failure rate and MTTR on the team dashboard, and the org dashboard rolls the same measures up across teams.

Does rework time mean the developer did something wrong?

No. Rework is simply commits pushed after review has started, and some of it is the review process working as intended — a reviewer catches something and the author fixes it. What is worth investigating is the pattern rather than the presence: repeated rework rounds on the same change, three or four deep, usually indicate that the approach was not agreed before the code was written. The remedy is a design conversation earlier, not stricter review later.

Marvex

See it on your own delivery data

Connect GitHub, GitLab or Jira and Marvex builds your DORA, cycle-time and sprint views from the history you already have.