Review time
The time it takes from the first review to merging the PR. First review can be comments, approval or request for changes.
Computation of the metric
- Start Time: Begins when the review process is initiated (usually indicated by the first reviewer changing the PR state to “In review”).
- End Time: Ends when the PR is merged into the target branch, signifying completion of the code review.
- Review Time is calculated as the duration between the Start Time and End Time for each PR.
Industry benchmarks
- Low: 0-1d
- Medium: 1d-3d
- High: >3d
Dashboards where this metric is used
- Developer Summary
- Dev Metric Grid
- Dev Cycle Time
Use cases
- Review time helps to understand the amount of time spent in doing the first review. If the time is too high, it may indicate heavy work load with the reviewers.
- It can also indicate a lack of experienced engineers available to review PRs on time.
- Use this to identify PRs that have very high review times and engage with the submitter & reviewer to diagnose what caused the long review cycle
- For complex PRs, encourage f2f/online meetings to complete the code review instead of async reviews which increase the review cycles aka ping-pong
- Diagnose if the reviewer & submitter share the same understanding of the requirement
- Consider instituting a grooming/problem-solving session before the coding begins to reduce review time