DevOps.com

Where the world meets DevOps

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
    • IT as Code
  • DevOps Chats
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • CloudBees
    • IT as Code
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Media Kit
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • Better CX with AIOps

      Build Better CX Across the Entire User Journey with AIOps

      Putting Customer Communication at the Core of New Apps

      Putting Customer Communication at the Core of New Apps

      AIoT and Intelligence on the Edge

      AIoT and Intelligence on the Edge

      Threading the Needle on Kubernetes Complexity with AI-Powered Observability

      Threading the Needle on Kubernetes Complexity with AI-Powered Observability

      Enterprise AI Books to Read This Spring

      Enterprise AI Books to Read This Spring

  • Cloud
    • Scalyr

      Scalyr Alters Log Analytics Economics

      APM and Application Stability: Where Two Monitoring Roads Merge and Diverge

      APM and Application Stability: Where Two Monitoring Roads Merge and Diverge

      Google CloudBees

      Google Names CloudBees App Dev Partner of the Year

      Scalyr

      Sysdig Extends Cloud Monitoring Alliance With IBM

      Palo Alto Networks

      Palo Alto Networks Advances DevSecOps in the Cloud

  • Continuous Delivery
    • CD Foundation

      CD Foundation Serves Up Tekton Pipelines Beta

      GitLab open source

      GitLab Shifts 18 Features Into Core Open Source Platform

      CircleCI DevOps

      CircleCI Surfaces More DevOps Insights

      SignalFX

      OverOps Allies With SonarQube To Improve Application Quality

      managed DevOps

      2nd Watch Allies With GitLab for Managed DevOps Service

  • Continuous Testing
    • Shift-Right Testing: The Emergence of TestOps

      Shift-Right Testing: The Emergence of TestOps

      What Developers Should Take Away from the Iowa Caucus App Debacle

      What Developers Should Take Away from the Iowa Caucus App Debacle

      survey testing

      Survey Sees Little Progress in Drive to Shift Testing Left

      DevOps Software Testing

      DevOps Places Software Testing in the Crosshairs

      testing

      DevOps Chats: Enterprise Continuous Testing With a Shift-Right Mindset

  • DevSecOps
    • 2020 DevSecOps Community Survey: Of 5,045 Developers, Guess How Many Are Happy?

      2020 DevSecOps Community Survey: Of 5,045 Developers, Guess How Many Are Happy?

      vault

      HashiCorp Strengthens Vault Secrets Management

      Palo Alto Networks

      Palo Alto Networks Advances DevSecOps in the Cloud

      Filling the Skills Gap for Effective DevSecOps

      Filling the Skills Gap for Effective DevSecOps

      Linux Foundation

      Six Steps Every Business Should Take to Protect Its Data

  • Leadership Suite
    • Software delivery metrics

      Is It Time to End the Software Metric Madness?

      DevOps Institute

      DevOps Institute Cert Exams Now Available for Open Testing

      Coronavirus Economic Shutdown: Analysts Hit the Brakes on Global IT Spending Estimates

      Coronavirus Economic Shutdown: Analysts Hit the Brakes on Global IT Spending Estimates

      Digital Transformation Efforts Hindered by Lack of Upskilling

      Digital Transformation Efforts Hindered by Lack of Upskilling

      Enterprise AI Books to Read This Spring

      Enterprise AI Books to Read This Spring

  • Practices
    • video

      Twilio Provides 90-Day Free Developer Access to Video Service

      Software delivery metrics

      Is It Time to End the Software Metric Madness?

      Embracing DevOps _ A Real-Time Roadmap

      The Key to Embracing DevOps: A Real-Time Roadmap

      Better CX with AIOps

      Build Better CX Across the Entire User Journey with AIOps

      Practical Advice on How to Use Lead Time

      Practical Advice on How to Use Lead Time

  • ROELBOB
    • scales

      Scales

      seo-optimization

      SEO Optimization

      figments-of-imagination

      Figments of Imagination

      fundamentals-of-recruiting

      The Fundamentals of Recruiting

      devops-lifecycle

      The DevOps Life Cycle

  • Toolbox
    • GitHub private repositories

      GitHub Makes Private Repositories Free for Unlimited Users

      GitLab GitHub

      GitLab Responds To GitHub Making Teams Free – We All Win

      Copado

      Copado Launches DevOps COVID-19 Initiative

      CircleCI DevOps

      CircleCI Surfaces More DevOps Insights

      compuware mainframe

      Compuware Shifts Mainframe App Testing Left

  • IT as Code
  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » DevOps Practice » Practical Advice on How to Use Lead Time

Practical Advice on How to Use Lead Time

Practical Advice on How to Use Lead Time

Andrew FuquaBy Andrew Fuqua on April 16, 2020 Leave a Comment

Many ALM tools and Value Stream Management platforms graph lead time, but few really tell you what to do about it, how to use it and why you shouldn’t use the average. In fact, so much of what is written on this subject is rather vague and hand wavy. Part of the reason is that Value Stream Management is a big job, and it isn’t something a tool can provide. Rather, it’s a human endeavor. Another driver for the hand waving may be that the writers really don’t know much about lead time because they’ve never actually used it.

Related Posts
  • The Human Touch: The Key to Optimizing Your Software Value Stream Network
  • DevOps Chat: Value Stream Management With HCL UrbanCode
  • The Power of a Game: What I Learned from Facilitating The Phoenix Project Simulation
    Related Categories
  • Blogs
  • DevOps Practice
  • Doin' DevOps
    Related Topics
  • lead time
  • value stream management
  • WIP
Show more
Show less

Improving the value stream is a big topic but there are definitely things we can cover in this space: how to use lead time, how to get it, prerequisites to using it well, techniques or approaches and references for further study. I’ll start with the simplest, most mechanical topic, and move to the harder topics last.

What Is Lead Time?

Lead time is how long it takes a work item to get through a system, such as your IT development value stream. If your system is under control, recently measured lead times can be a good predictor for lead time in the future. People want to know when stuff will be done so they can make plans.

Lead time is also a lagging indicator for many of the actions used to improve, well, lead time and flow. It’s what some people call an output metric—you make a bunch of improvements to the system and improved lead time is what you get out of your efforts. 

Where to Start

Measure lead time separately for the few types of work where it really matters, such as production defects and epics or initiatives. For every work item, record the start and end dates. But first you have to define what you consider the start and end. If you are using the measure to communicate with a customer, use dates from the customer’s perspective. If you are trying to improve the development part of the pipeline, post planning, then start the clock when it’s scheduled for dev. In that way, some people distinguish flow time from lead time. Cycle time is sometimes used for an even smaller slice of the value stream, usually just one step—I’m not going to debate here whether that’s a proper or official use of that term.

Whatever you do, for heaven’s sake, don’t use the average lead time. Instead, use a percentile. I use the 80th percentile. For illustration, the 25th percentile is the point at which 25% of the observations fall below that point. The 80th percentile of your lead time observations (measures) is the point at which 80% of your historical lead time observations fall below that point. The 50th percentile is not always the median, but for the sake of this article we can say it’s close.

Average, however, could be materially off. It’s worse to use the average than the median because the average can be thrown off by outliers more than the median and 80th percentile. If you are good enough with statistics to correctly identify and remove outliers, that’s great, but few people do that at all (much less with statistical precision) and it’s really not necessary for most IT work.

The only thing I’d use the median for is to monitor the trend—to see if the median is improving. But using it for forecasting or expectation setting would be bad. You see, when using median, 50% of observations took less time, but 50% took longer. You wouldn’t want to tell a customer that he has a 50/50 chance of getting a fix in two weeks. Telling them they have an 80% probability of getting a fix in three weeks, in my experience, is more palatable.

You want to be able to tell your customers (or marketing, management, support or program management) that 80% of the time you resolve this kind of issue in “n” weeks. Most people are happy with those odds. Anything higher takes in so much of the long tail of the distribution that it makes forecasts not terribly useful for planning.

How to Get the Graph

Use the lead time graph in your existing tooling if you can; get the data into a data warehouse and use a BI tool if you must; or use Excel only as a proof of concept or if your organization is small. More on this below. Compute your 80th percentile lead time expectation every sprint or month, and graph it in a bar chart so you have a new bar every period.

How to Get the Data

It’s easy to find the 80th percentile in your dataset. If your tooling can give you your choice of percentiles for lead time, that’s fantastic. If not, you’ll need to gather all of your lead time observations. You can do it in Excel, but then you’ll be forever updating Excel with fresh data or re-importing the data. That’s workable if you have a small number of teams and observations to input each sprint. Otherwise, you’ll want to get it into a database and make a BI dashboard. 

How Much Data to Get

You don’t need a whole lot of data.

“Data beyond 24 weeks is most likely out of date,” said agile data and probabilistic forecasting guru, Troy Magennis. 

How to Compute It

In Excel, use the percentile.inc function. Generally, order your lead time data from smallest to largest, multiply your number of observations by 0.8, round up to an integer, then identify the observation at that location. Technically, you should average the two observations at that point if you didn’t have to round, but I’ve not found that materially significant in any of my data for these purposes so I don’t do it.

What to Do with It

I publish my 80% lead time expectation. I talk about it with the people who are anxiously waiting for the delivery. I talk about it with my engineering team. I talk about it with my management team, PMO, project managers and program managers. I talk about it with my lean and agile coaches and consultants and scrum masters. I talk about it with my team leads. I want everyone in the loop and on board with the improvement goal. I use it to explain how certain behavior, such as expedites and high work-in-progress (WIP), work against improving the lead time expectation.

Look at your bar chart showing the changes in your lead time expectation over time. See if it’s moving in the right direction. Use A3s, Toyota Kata, lean principles and systems thinking to improve the system. Engage your upstream and downstream neighbors in the improvement process and in making process policies explicit.

What if the Data Isn’t in One Tool?

Change your process before you change your tooling, and don’t tool up a bad process. A common problem is when an organization doesn’t have the beginning and ending lifecycle states of a given class of work in a single tool. I didn’t say value stream here because you don’t need the whole value stream mapped for every class of work in order to get lead time. You can combine data from multiple tools in order to get the end-to-end, but the simplest thing that could possibly work is to have your top-level item reflect or approximate that end-to-end flow.

Before deciding you need a new tool, there are a couple of easier approaches to try first:

  • Add the starting or ending date to the items of interest, whichever of those is missing. Sometimes I see those planning an initiative only track the item until it’s approved and released to engineering. It may be easier to add another date to that item and track it to delivery to production than to change tooling.
  • Add more steps to an existing kanban. Likewise, it may be easier to add additional columns to a kanban and keep the items on the board until they are in production. Or get them on the board earlier in their lifecycle.
  • Add another kanban. It may be that you don’t have a kanban. Your initiatives or your production requests aren’t tracked well. Get them in a kanban. This is not the same as changing tooling. You probably already have a tool that can give you a kanban. Use it. Every organization should have an epic kanban.

Prerequisites

You can use lead time as a lagging indicator of your process improvement efforts without any of these prerequisites. However, if you are using lead time to set completion date expectations, you should attend to these matters first: stable teams, predictable teams (stable throughput), a stable system (few process changes) and low WIP.

If you are trying to make predictions, being predictable is helpful. A leading indicator for predictability is velocity variance or throughput variance. I compute that as the standard deviation divided by the average, and I want that to be 0.2 or lower. That 0.2 is the point at which the numbers are more reliable, in my experience with many organizations’ data.

You need to have stable teams. Your organization will not be predictable if your team makeup is changing all the time, or if you are moving people around between projects or if you are allocating people to multiple projects.

You need to control your WIP at every level. Put all of these on your metrics dashboard:

  • The number of items being worked on per individual. This should be one per individual, or less. It’s usually easier to gather this data at a team level. At a team level, the number of items being worked on should be less than the number of individuals. Encourage working together. If you are pair-programming most of the time, your WIP should be less than the number of pairs. With TDD, good test coverage and good continuous integration practices, you should be able to get multiple pairs on one user story.
  • The number of epics or initiatives each team is working on. This should be on your metrics dashboard, and list teams with more than one epic in progress. But remember, it’s not the team’s fault. Fix the system. Don’t blame the team.
  • The number of open sprints. This should be 1 per team. On your dashboard, list the teams with more than 1 open sprint.
  • The number or epics or initiatives the organization is working on. Graph this measure each sprint on a bar chart so you can see the trend. Work to improve (lower) the trend.
  • The number of releases being maintained (fixed, patched, level 3 support). Graph the trend and work to lower it.
  • The number of releases being supported (help desk, service desk, level 1 and 2 support). Graph the trend and work to lower it. 

Conclusion

Lead time, if tracked and used correctly, is a great predictor for how quickly work will be completed, allowing you to more accurately forecast delivery dates. You should measure it, talk about it and review it often to see what improvements have been made, and can be made. And remember:

  • Measure lead time separately for the few types of work where it really matters.
  • Use percentiles rather than averages for more accurate forecasting and expectation setting. 
  • Adjust your process before you change your tools.

— Andrew Fuqua

Filed Under: Blogs, DevOps Practice, Doin' DevOps Tagged With: lead time, value stream management, WIP

  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • More
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)

Like this:

Like Loading...
Sponsored Content
Featured eBook
The State of Open Source Vulnerabilities 2020

The State of Open Source Vulnerabilities 2020

Open source components have become an integral part of today’s software applications — it’s impossible to keep up with the hectic pace of release cycles without them. As open source usage continues to grow, so does the number of eyes focused on open source security research, resulting in a record-breaking ... Read More
« Software Delivery Management: New Mindset
Build Better CX Across the Entire User Journey with AIOps »

TechStrong TV – Live Streaming

TechStrong TV - All Episodes

Top Stories of the Week

  • View DevOps.com Privacy Policy

Upcoming Webinars

Mon 20

Automating Security Beyond the Perimeter of Cloud Native Apps

Mon, April 20, 1:00 pm - 2:00 pm EDT
Tue 21

DevOps Patterns & Antipatterns for Continuous Software Updates

Tue, April 21, 11:00 am - 12:00 pm EDT
Tue 21

How Uber Reduced AWS Costs 15% in 30 Days

Tue, April 21, 1:00 pm - 2:00 pm EDT

More Webinars

Past Webinars

Latest from DevOps.com

VMware Makes vRealize Automation Framework Available via the...
April 16, 2020 | Mike Vizard
Twilio Provides 90-Day Free Developer Access to Video Servic...
April 16, 2020 | Mike Vizard
Is It Time to End the Software Metric Madness?
April 16, 2020 | Brendan Hayes
The Key to Embracing DevOps: A Real-Time Roadmap
April 16, 2020 | Aaron Upright
Build Better CX Across the Entire User Journey with AIOps
April 16, 2020 | Whitney Satin

Most Read on DevOps.com

In IT, Purity Is Not Necessarily a Virtue
April 14, 2020 | Don Macvittie
Debunking Five Common Automated Testing Myths
April 13, 2020 | Elysia Lock
Three Priorities for IT Operations Continuity During the COV...
April 10, 2020 | Ryan Smith
BigPanda Provides Free 90-Day Access to IT Ops Platform
April 10, 2020 | Mike Vizard
SRE (Part 2): A Practical Approach
April 10, 2020 | Anthony Caiafa

On-Demand Webinars

DevOps.com Webinar ReplaysDevOps.com Webinar Replays