DevOps Metrics #3: Change Lead Time

House icon

Published December 07, 2017

<p><span style="font-size: 12pt;">When looking to start <a href="http://solidify.se/devops-software-development/">working with DevOps</a>, you&#8217;ll sometimes find that you don&#8217;t know whether or not your efforts has been effective. Since you put down all that time and energy towards something, you need to know if you&#8217;ve succeeded or just wasted your time, right? This is where metrics come in. DevOps metrics are measurable numbers that determine how successful your DevOps efforts are. In this third blog post in the DevOps Metrics series, we&#8217;ll take a closer look at <strong><em>Change Lead Time</em></strong>.</span></p> <p><span style="font-size: 12pt;"><a href="https://puppet.com/">Puppet</a> specifies change lead time as one of the main differentiators between high and low performers. With high performing companies having change lead times as short as an hour, it&#8217;s easy to see why it&#8217;s worth taking a look at.</span></p> <h2><strong>Change Lead Time</strong></h2> <p><span style="font-size: 12pt;">Change Lead Time, also known as just lead time or <em>Mean Time To Change</em>, is defined as follows:</span></p> <blockquote><p><span style="font-size: 12pt;"><strong>The time it takes for a bug fix, new feature or any other change to go from idea to deployment to production. </strong></span></p></blockquote> <p><span style="font-size: 12pt;">The metric itself speaks of how efficient your development process is. This metric depends on your existing code complexity, <a href="http://solidify.se/avoiding-technical-debt/">technical debt</a>, architecture as well as team and individual capabilities. If the change lead time is very long, it might be a sign that something in the development chain isn&#8217;t as efficient as it could be. Another useful way to improve on this is to find bottlenecks and work to remove them.</span></p> <p><span style="font-size: 12pt;">On the other hand, a short change lead time enables you to quickly react to feedback or market incidents. Your CIO and CTO most certainly appreciates that. Paired with better feedback loops and a <a href="http://solidify.se/devops-release-frequency-metric/">higher release frequency</a>, this creates better opportunities to deliver value to your end users.</span></p> <h2><strong>How to measure</strong></h2> <p><span style="font-size: 12pt;">Unfortunately, not many measure this metric yet. Change lead time can be separated into two different metrics:</span></p> <ul> <li><span style="font-size: 12pt;">The time from idea to deployment to production</span></li> <li><span style="font-size: 12pt;">The time from when actual coding starts to deployment to production</span></li> </ul> <p><span style="font-size: 12pt;">The difference between these two is that the first version includes everything leading up to development. In addition to meetings and discussions, this can be design reviews, scheduling, planning and more. If some obstacle causes coding to be delayed, this takes that into account as well.</span></p> <p><span style="font-size: 12pt;">Both are measured by simply start counting from the moment somebody comes up with the idea for a change (or when the actual development starts, if you go by the second version), and stop counting when the change has been successfully deployed to production. The idea is that with time, this metric should become shorter and shorter.</span></p> <h2><strong>Summary</strong></h2> <p><span style="font-size: 12pt;">The change lead time could be one of the most valuable metrics to measure in your DevOps initiative. It&#8217;s one of the most holistic measures out there and takes variables from many different areas into consideration.</span></p> <p><span style="font-size: 12pt;">While other metrics such as <a href="http://solidify.se/devops-metrics-mean-time-to-recovery-mttr/"><em>Mean Time To Recovery </em>(MTTR)</a> showcases the ability to fix acute problems, change lead time shows you how well you can meet changing demands. Overall, it&#8217;s a great way to keep track of how your DevOps transformation is going.</span></p> <p>&nbsp;</p> <p><em>Have you started measuring your change lead times? What other metrics do you measure? Leave a comment in the section below!</em></p>