Productivity

How do you measure actual productivity? Most of the traditional developer metrics are easy to game and don't reflect the desired organization outcome.

Things that don't work

  1. Lines of Code
  2. Number of commits
  3. Hours worked
  4. Number of pull requests
  5. Number of emails/slack/text/LinkedIn messages sent

Things that work

Instead, you want metrics that actually demonstrate value. The DevOps Research and Assessment (DORA) metrics are a good approximation of the team delivering value within the scope that they can control.

  1. Deployment frequency: How often there is a production deployment
  2. Lead time for changes: How long it takes to get something into production
  3. Change failure rate: The percentage of production failures
  4. Time to restore service: How long it takes to recover from a production failure
DORA metrics - Google DevOps Blog

Additionally, it is important to track the value of deployments. This includes metrics for the deployment of product sponsored tickets, customer reported issues, and removal of technical debt.

  1. Deployed features/fixes/cleanup frequency: Number of improvements to the application