How to measure Deployment frequency?
Tags: deployment, datascience, productivity
Published: 2022-03-21 18:53:02

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Deployment frequency is one of the most interesting metrics you should use to evaluate your team’s productivity and the overall efficiency of your Engineering performance.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">There are four key <a href="https://blog.codacy.com/a-tale-of-four-metrics/" target="_blank" rel="noreferrer noopener">Accelerate metrics</a> that we will cover in detail:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><a href="https://blog.codacy.com/how-to-measure-lead-time-for-changes/" target="_blank" rel="noreferrer noopener">Lead time for changes</a>;</li><li><strong>Deployment frequency</strong>;</li><li>Time to recover; and</li><li>Change failure rate</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">In this article, we are focusing on <strong>Deployment frequency</strong>. So keep on reading to know what Deployment frequency is, how we measure it in <a href="https://www.pulse.codacy.com/?utm_source=blog&amp;utm_medium=post&amp;utm_campaign=deployment-frequency" target="_blank" rel="noreferrer noopener">Pulse</a>, and how your team can start using it to achieve elite engineering performance.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":1} -->
<h1 id="h-what-is-deployment-frequency"><strong>What is Deployment frequency?</strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">In a nutshell, Deployment frequency measures how often code is deployed to production. This metric is correlated with both the speed and the quality of your engineering team.</p>
<!-- /wp:paragraph -->

<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>“<em>Reducing batch size is another central element of the Lean paradigm—indeed, it was one of the keys to the success of the Toyota production system. Reducing batch sizes reduces cycle times and variability in flow, accelerates feedback, reduces risk and overhead, improves efficiency, increases motivation and urgency, and reduces costs and schedule growth. However, in software, batch size is hard to measure and communicate across contexts as there is no visible inventory. Therefore, we settled on deployment frequency as a proxy for batch size, since it is easy to measure and typically has low variability</em>.”</p><cite>Accelerate: The science of lean software and DevOps: Building and scaling high performing technology organizations</cite></blockquote>
<!-- /wp:quote -->

<!-- wp:heading -->
<h2><strong>What does <strong>Deployment frequency</strong> measure?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Deployment frequency is a good indicator of teams’ response time, cohesiveness, capabilities, and overall efficiency. It is one of the most interesting speed metrics for an organization to work on to ensure that software is delivered early and often.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">This metric analyzes how much value gets delivered to end-users and customers and how quickly your team can provide that value (in the form of bug fixes, new functionality, or other code changes).</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>How to read <strong>Deployment frequency</strong>?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">On the one hand, a Deployment frequency that is too low indicates that there may be broader issues, like inefficient processes, lack of people, or inadequate team structure. On the other hand, a high deployment frequency shows that your team can quickly provide value and react to feedback or changes.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Your teams’ goal should be to increase your deployment frequency because it means that you are incentivizing your team to deploy more regularly and with smaller changes. Smaller and regular release sizes are easier to understand, and it’s faster to test, deploy and fix issues. More frequent deployments also mean shorter and more effective feedback loops, allowing for faster product iterations.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":1} -->
<h1><strong><strong>Deployment frequency</strong> in Pulse</strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Products like Pulse make it easy for your team to know how your Deployment frequency looks like. Pulse connects seamlessly with your GitHub and Jira to give you Deployment frequency and other Engineering metrics out-of-the-box. Your team only needs to focus on making informed decisions to improve results.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>How is Pulse measuring <strong>Deployment frequency</strong>?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Pulse measures Deployment frequency by calculating how often your organization completes a deployment to production or releases code to end-users:</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><code>number of deployments per day</code></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Pulse can automatically detect your deployments by picking signals from GitHub, like your Pull Request flow, or by interpreting semantic version tags. If you have a more complex deployment workflow, you can also instrument it yourself and signal a deployment by pushing an event to Pulse’s API.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"center","id":5298,"sizeSlug":"large","linkDestination":"none","tdCaptionAlign":"https://blog.codacy.com/wp-content/uploads/2022/03/Deployment-frequency-inside-Pulse.png"} -->
<figure class="wp-block-image aligncenter size-large td-caption-align-https://blog.codacy.com/wp-content/uploads/2022/03/Deployment-frequency-inside-Pulse.png"><img src="https://blog.codacy.com/wp-content/uploads/2022/03/Deployment-frequency-inside-Pulse-1024x563.png" alt="Deployment frequency inside Pulse" class="wp-image-5298"/><figcaption>Deployment frequency in Pulse</figcaption></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Pulse takes care of all the details to ensure your metrics are accurate and reliable. For example, Pulse correctly tracks your deployments’ changes even if you squash or rebase the commits when merging a pull request; and it even associates all GitHub teams with the person that commits a certain change, enabling you to explore Deployment frequency and the other metrics per team.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>What <strong><strong>Deployment frequency</strong></strong> should a team have?</strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">The best practice performance level for this metric, published every year on the <a href="https://services.google.com/fh/files/misc/state-of-devops-2021.pdf" target="_blank" rel="noreferrer noopener">Accelerate State of DevOps 2021 report</a>:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>Elite:</strong> More than 50% of days have one or more deployments</li><li><strong>High:</strong> More than 50% of months have at least one deployment</li><li><strong>Medium: </strong>More than 50% of semesters have at least one deployment</li><li><strong>Low:</strong> Less than 50% of semesters have at least one deployment</li></ul>
<!-- /wp:list -->

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"style":{"color":{}},"className":"pulse-brand__button"} -->
<div class="wp-block-button pulse-brand__button"><a class="wp-block-button__link" href="https://www.pulse.codacy.com/?utm_source=blog&amp;utm_medium=website&amp;utm_campaign=deployment-frequency" target="_blank" rel="noreferrer noopener">See what's your Deployment frequency</a></div>

<!-- wp:heading {"level":1} -->
<h1><strong>How to use <strong><strong>Deployment frequency</strong></strong>&nbsp;</strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Over time, Deployment frequency should be getting higher, while your team increases the performance level until reaching best practice levels.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Having a high Deployment frequency allows your team to continually receive valuable and actionable feedback and quickly deliver high-quality software.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2><strong>Causes of a low <strong><strong>Deployment frequency</strong></strong></strong></h2>
<!-- /wp:heading -->

<!-- wp:list -->
<ul><li>Very large changes to be introduced in the code;</li><li>Shortage of people or a change in the organizational structure (e.g., a senior engineer who left and was not replaced yet);</li><li>Inefficiencies in the development process (e.g., blocks, dependencies, not using the right tools);</li><li>Bottlenecks and unnecessary complex routes to production.</li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2><strong>How to increase <strong><strong>Deployment frequency</strong></strong></strong></h2>
<!-- /wp:heading -->

<!-- wp:list -->
<ul><li>Implement CI/CD best practices: continuous integration and continuous delivery allow you to increase your software delivery speed.</li><li>Work on small and self-contained changes: working with smaller versions of changes makes it easier for developers to get feedback faster and resolve issues sooner.</li><li>Work on reducing your technical debt: an effort to reduce technical debt and remove bugs can help you increase subsequent deployments.</li><li>Use test automation: incorporating automated tests at every stage of the CI/CD pipeline can help you reduce delivery times since it helps catch issues earlier.</li><li>Automate code reviews: using <a href="https://www.codacy.com/?utm_source=blog&amp;utm_medium=post&amp;utm_campaign=deployment-frequency" target="_blank" rel="noreferrer noopener">automated code review tools like Codacy</a> can help you improve your code quality and save your team valuable time.</li><li>Use release trains if you are working on larger monoliths: multiple changes are batched together, coordinating changes to be released at the same time.</li></ul>
<!-- /wp:list -->

<!-- wp:heading {"level":1} -->
<h1><strong>Conclusion</strong></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Deployment frequency is a fundamental metric to analyze and improve the efficiency of your engineering team. In addition, it is a valuable metric to understand the capabilities of your team and how quickly they can provide value to your customers.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Together with Lead time for changes, Time to recover, and Change failure rate, this metric provides valuable insights for your team to achieve full engineering performance.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">With Pulse, you can easily measure and analyze the Deployment frequency in your projects and make better decisions.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">We also suggest you keep reading about selecting the best metrics with this article: <a href="https://blog.codacy.com/how-to-determine-your-goals" target="_blank" rel="noreferrer noopener">How to determine your goals and metrics to adopt a data-informed culture</a>. After all, there is no single set of metrics that works for all teams, and we’ve crafted a framework to help you find the right metrics for your organization.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2><strong>Webinar: How to boost your Engineering Speed &amp; Quality with the right Metrics. </strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Are you looking for ways to deploy faster and more efficiently without compromising code quality?&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify">Our team leads at Codacy and Pulse will show how you can make the most out of the engineering data already available to you, and empower you to measure all your engineering performance.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"center","id":5028,"sizeSlug":"large","linkDestination":"custom","tdCaptionAlign":"https://blog.codacy.com/wp-content/uploads/2022/03/Webinar-Pulse-March-2022.png"} -->
<figure class="wp-block-image aligncenter size-large td-caption-align-https://blog.codacy.com/wp-content/uploads/2022/03/Webinar-Pulse-March-2022.png"><a href="https://us02web.zoom.us/webinar/register/2016462402904/WN_JwKvdnlQQZGSHimsDdWeKg" target="_blank" rel="noopener"><img src="https://blog.codacy.com/wp-content/uploads/2022/03/Webinar-Pulse-March-2022-1024x576.png" alt="Webinar Pulse March 2022" class="wp-image-5028"/></a></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"justify"} -->
<p class="has-text-align-justify"><strong>Join us in our Webinar: How to boost your Engineering Speed &amp; Quality with the right Metrics. See you there!</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><strong>👉 When: March 24th 2022, 11 am CST</strong><br><strong>👉 Where: <a href="https://bit.ly/codacywebinar_" target="_blank" rel="noreferrer noopener">https://bit.ly/codacywebinar_</a></strong></p>
<!-- /wp:paragraph -->

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"className":"pulse-brand__button"} -->
<div class="wp-block-button pulse-brand__button"><a class="wp-block-button__link" href="https://us02web.zoom.us/webinar/register/2016462402904/WN_JwKvdnlQQZGSHimsDdWeKg" target="_blank" rel="noreferrer noopener">Save me a seat</a></div>