Coding time
Coding Time is the span of elapsed time from the first commit on a branch until a pull request is ready for review. For draft PRs, Coding Time includes the entire period the PR remains in draft status. This metric is computed for all branches, regardless of the source branch.
Computation of the metric
- Computed using the commit and pull request activity.
- GIT/VCS tools provide the data used to analyse the commit activity, i.e., first commit timestamp to PR creation time. GIT/VCS tools provide the data used to analyze the commit activity, measuring from the first commit timestamp to the time when the PR is moved from draft to ready-for-review.
Industry benchmarks
- For most high-performing teams, coding time <2 days.
Dashboards where this metric is used
- Dev Metric Grid
- Dev Cycle time
Use cases of this metric
- Coding time metrics highlight areas of the codebase that require frequent changes due to low quality, enabling targeted improvements.
- Longer coding times for unfamiliar contributors indicate the need for additional support or training to reduce learning curves.
- Monitoring coding time helps track the impact of poorly specced tasks and changing requirements, prompting clearer task definitions to streamline coding processes.