How Meta reduced diff authoring time by 40%
· Summarized
Key takeaways
- Diff Authoring Time is a metric that measures active engineering effort in creating and reviewing code diffs, offering a high-fidelity, granular view of developer activity.
- Meta uses Diff Authoring Time primarily for experimentation, tool evaluation, and organizational planning, not for individual performance assessment.
- AI has significantly decreased Diff Authoring Time—by over 40%—while increasing overall output, implying a shift of effort toward other tasks like context gathering.
- Modern telemetry allows for continuous, millisecond-level tracking of work activity, enabling more scientific evaluation of engineering processes.
- Traditional metrics like lines of code are limited; Diff Authoring Time and similar metrics provide more nuanced insights into engineering productivity.
- Examining diffs by categories (e.g., innovation vs. maintenance) helps organizations understand where efforts are focused and where improvements can be made.
- There is a recognized need to develop better measures for human collaboration, argumentation, and informal interactions, which are crucial for effective teamwork.
- Future research might involve analyzing meeting transcripts or other unstructured data to capture invisible work, especially as AI shifts work patterns.
Summary
Introduction to MetAlus' Focus on Diffs and Metrics
The episode begins with host Brian Houck discussing the centrality of code diffs at Meta, emphasizing their importance in daily engineering conversations and decision-making. The focus is on how the business wanted to understand the time spent on diffs, which led to the creation of the Diff Authoring Time metric. This metric measures the active time engineers spend creating, reviewing, or preparing diffs. Brian notes that diffs are considered the 'currency' of code development at Meta, and the metric was born from the need to quantify that activity. The conversation highlights the significance of measuring engineering activity in a company where the flow of change is continuous and critical to product development.
Understanding Diff Authoring Time and Its Measurement Challenges
Moritz Beller explains that a diff is essentially a self-contained code change, similar to a pull request, including associated summaries and test plans. He details how Diff Authoring Time captures the active work involved in creating and reviewing these diffs, providing a more precise measure than simple averages, which previously obscured variability. Moritz points out that this metric enables Meta to run controlled experiments, akin to A/B testing, which was not feasible with crude previous metrics. He shares an example where improved memoization in React reduced diff authoring time by around 30%, illustrating the metric’s potential to evaluate internal tooling.
Applications of Diff Authoring Time in Organizational and Engineering Decisions
The discussion shifts to practical uses of the metric, such as guiding engineering tool improvements and informing leadership about development efficiency. Moritz highlights that Diff Authoring Time is not used as a performance metric but helps identify large gains from specific tool changes, like AI-enhanced features, which can lead to strategic investments. The metric also helps categorize diffs, distinguishing exploratory work or technical debt from regular feature development, thereby informing project prioritization. Brian emphasizes that Diff Authoring Time contributes to understanding system efficiency and how automation and tooling influence the overall productivity and flow of work.
Measuring Developer Productivity and the Impact of AI
The conversation explores how AI-driven tools have drastically reduced Diff Authoring Time—by over 40%—while increasing the number of diffs produced, indicating greater efficiency. Moritz discusses how developer time savings are shifting to other activities, such as gathering context or planning, which are less visible but crucial. They debate whether lines of code still hold value as a productivity measure, with Moritz suggesting a relationship exists between coding activity and perceived productivity. The episode also considers how AI might affect differences across experience levels, with initial findings showing senior developers adopting these tools more effectively, though this may evolve.
Revisiting Past Studies and the Future of Developer Measurement
Moritz reflects on his earlier “Mind the Gap” study, which bridged quantitative activity data with developers' self-perceived productivity. He recalls that only a small percentage of the workday is spent actively coding, with other factors like interruptions and on-call duties influencing productivity perceptions. He discusses how modern telemetry, including sleep data from fitness trackers, could add depth to future research. The panel anticipates that new forms of workload measurement, such as analyzing collaboration and informal interactions, will become increasingly important, especially as AI changes what constitutes valuable developer work. They highlight the need for comprehensive metrics that incorporate human and interpersonal factors.
The Human Side of Software Engineering and Future Challenges
Closing the episode, Brian raises the challenge of measuring softer aspects like collaboration, argumentation, and informal communication—areas still poorly understood but vital for effective engineering. Moritz agrees and emphasizes the importance of understanding how developers interact and coordinate, especially as organizational complexities grow. They discuss potential future tools, like AI synthesizing meeting transcripts, to capture unseen effort. Both agree that understanding human dynamics and social interactions remains a frontier in developer productivity research. The episode ends with optimism about advancing measurement techniques to better support engineering teams in navigating a rapidly evolving landscape.
Sponsors
- www.getdx.com-forwardslash-reports · To read the four report, head over to www.getdx.com-forwardslash-reports
Show notes
Meta researcher Moritz Beller joins Brian Houck to discuss how Meta measures developer productivity. Moritz explains diff authoring time and how Meta uses it to evaluate tools and guide engineering decisions. They explore how AI is changing engineers’ work and revealing gaps in traditional metrics. They also revisit Moritz’s “Mind the Gap” study and discuss the promise and risks of AI agents for testing.
Where to find Moritz Beller:
• LinkedIn: https://www.linkedin.com/in/inventitech
• X: https://x.com/Inventitech
• GitHub: https://github.com/Inventitech
• Website: https://inventitech.com
Where to find Brian Houck:
• LinkedIn: https://www.linkedin.com/in/brianhouck
In this episode, we cover:
(00:00) Intro
(02:10) Moritz’s role at Meta
(04:01) Measuring diff authoring time
(08:20) Measuring A/B experiments
(12:11) What diff authoring time reveals
(14:45) Planning and leadership reporting
(18:36) Why Meta measures teams, not individuals
(22:33) Where developer time goes with AI
(26:06) AI’s impact on junior and senior developers
(27:18) Capturing invisible work with AI
(29:32) The “Mind the Gap” study
(33:40) Revisiting “Mind the Gap” in 2026
(38:32) AI agents for software testing
(41:49) What remains hard to measure
Referenced:
• State of AI Impact in Engineering Q2 Report 2026
• GitHub Copilot and Developer Productivity: An Observational Dose-Response Analysis
• From Technical Debt to Cognitive and Intent Debt
• Mind the Gap: On the Relationship Between Automatically Measured and Self-Reported Productivity
• The Impact of AI Coding Assistants on Software Engineering: A Longitudinal Study
• DORA, SPACE, and DevEx: Which framework should you use
• A Tale of Two Cities: Software Developers Working from Home During the COVID-19 Pandemic
Follow this show on AudioBrevity and new episodes get summarized for you. Create a free account