Latest / The Product Engineering Podcast / Output Metrics vs Outcome Metrics
Transcript
- 21:59In 1961, a guy called Robert McNamara
- 22:02entered the US Department of Defense,
- 22:04rich in his belief in
- 22:05quantitative analysis.
- 22:07Robert McNamara previously worked at the
- 22:09Ford factory and while he was there he
- 22:12really pioneered the use of data and
- 22:14systems analysis to drive efficiency in
- 22:17the production of cars.
- 22:19And he took that belief in data and
- 22:22analysis to his new job in the Department
- 22:24of Defense in the 1960s and
- 22:26he joined the Vietnam War.
- 22:28Now when he was put in the charge of the
- 22:29war he applied the same approach that he
- 22:31had learned at Ford.
- 22:33So he turned up to Vietnam and he started
- 22:34measuring things like logistics networks,
- 22:36which areas of the map were under US
- 22:38control, troop numbers,
- 22:39all that kind of stuff.
- 22:41Robert McNamara declared quite
- 22:42confidently that the war was going well
- 22:45and that we were going to win.
- 22:47Now spoiler alert, the US did not win the
- 22:49Vietnam War and one of the reasons was
- 22:51that the data that McNamara had available
- 22:54was basically just that, it was the data
- 22:56that he had available and what he ended
- 22:58up doing is ignoring all of the more
- 23:00important stuff like the morale, the
- 23:02sentiment of the Vietnamese people, all
- 23:04the kind of stuff that you can't really
- 23:06measure and that gave rise to something
- 23:08called the McNamara fallacy.
- 23:10The McNamara fallacy is something that a
- 23:12lot of organizations can fall into where
- 23:14if you over index on things that are easy
- 23:16to measure then you end up ignoring the
- 23:19things that are difficult to measure just
- 23:21because they're difficult to measure.
- 23:22(Music)
- 23:31Hi, my name is James Charlesworth and
- 23:32this is the Product Engineering podcast
- 23:34where we talk about the intersection
- 23:36between product management and
- 23:37engineering and today we're
- 23:38going to talk about measuring.
- 23:40How do you measure a
- 23:41product engineering team?
- 23:43Because there's different metrics that
- 23:44you can use and they're often split into
- 23:47output metrics and outcome metrics and as
- 23:50the McNamara fallacy shows us, output
- 23:52metrics are often easier to measure but
- 23:55they don't always tell the full story and
- 23:57if you only measure the things that are
- 23:59easy to measure then you will miss the
- 24:01bigger picture and you'll miss what's
- 24:02actually more difficult which is the
- 24:04outcome, the product outcomes you're
- 24:05trying to drive or the business outcomes
- 24:07that you're trying to drive and we fall
- 24:10into this trap because output metrics
- 24:12often feel good and they're often very
- 24:14very available in the
- 24:15tools that we already use.
- 24:17So if you're an engineer or an engineer
- 24:19manager then the tools you use every day
- 24:21can give you data and they can give you
- 24:23data that can cause you to
- 24:25fall into the McNamara fallacy.
- 24:27So for example, let's say you're using
- 24:29Jira as your project management tool.
- 24:32Jira can tell you things like cycle time,
- 24:34it can tell you burn down, velocity,
- 24:35story points, all that kind of stuff.
- 24:38GitHub can tell you how many pull
- 24:40requests are going in, how long they're
- 24:41staying in review how many lines of code,
- 24:44people love that when
- 24:45you measure lines of code.
- 24:47Those kinds of metrics are very very
- 24:49easily available to engineering leaders
- 24:51and they can lead you into the trap of
- 24:53thinking that just because those things
- 24:55are easy to measure that's what you
- 24:56should be indexing yourself on and it's
- 24:58often ignoring things that are more
- 25:00difficult to measure.
- 25:05So let's quickly talk about the
- 25:06difference between output
- 25:07metric and an outcome metric.
- 25:09An output metric is measuring how
- 25:11efficiently or how well
- 25:13you're producing things.
- 25:15So you know lines of code even though
- 25:17people hate that as a metric it is a
- 25:19fairly pure output metric because lines
- 25:21of code will tell you like how much code
- 25:24is being shipped to production.
- 25:26Door metrics will tell you how successful
- 25:28your changes are, how regularly they're
- 25:30going out and how often
- 25:31they need to be rolled back.
- 25:32Story points will tell you how
- 25:34effectively you're capturing those
- 25:36features into stories and
- 25:37pushing them through the board.
- 25:38Sprint metrics will tell you how
- 25:40effective your sprints are being and how
- 25:42accurately you're predicting the amount
- 25:44of work that will be shipped.
- 25:45These things are all output metrics
- 25:47because they're taking something from a
- 25:49feature definition into some working code
- 25:51and then measuring how
- 25:52efficient that process is.
- 25:54So that's a little bit
- 25:55like a production line.
- 25:56Take the example of
- 25:57the Ford production line.
- 25:58On a production line you've got lots of
- 26:00stages and they're similar to the stages
- 26:02in software So a production line you
- 26:04might have like assembling the chassis
- 26:06and then adding the
- 26:07engine and that sort of stuff.
- 26:08I don't really know how cars are made but
- 26:10I imagine it's a several step process
- 26:12like that and so by looking at all of
- 26:14those individual steps and how they all
- 26:16fit together you can measure how
- 26:18efficiently you're building cars in a
- 26:20factory and you can tweak various parts
- 26:22of that process to
- 26:23make it more efficient.
- 26:25So output metrics are very very useful in
- 26:27manufacturing but they're not as useful
- 26:29in product engineering and the big
- 26:31difference is that when a Ford makes a
- 26:34car they know what
- 26:36that car is going to be.
- 26:38The design has already been put in place.
- 26:39It's already been tested.
- 26:41All they need to do is make more cars
- 26:44more efficiently and at a higher rate but
- 26:46in products engineering you often don't
- 26:48know what features
- 26:49you should be building.
- 26:51So with all of the validation and
- 26:52discovery in the world you can never 100%
- 26:55know if the thing is going to drive the
- 26:57business outcomes that
- 26:58you want in your company.
- 27:00So you can't treat software engineering
- 27:01purely as a kind of
- 27:03production line system.
- 27:04Now that's not true for all projects.
- 27:06Some projects are incredibly predictable.
- 27:09Some projects like maybe a migration
- 27:11project if you're migrating a database
- 27:13from one technology to
- 27:14another that's fairly predictable.
- 27:15You know what the end
- 27:16state should look like.
- 27:18You know you know if you're
- 27:19re-platforming a product or something you
- 27:21know that the thing you're going to
- 27:22should look in a certain way because
- 27:24you've got a reference to
- 27:25what it should look like.
- 27:26So if you're doing a migration or
- 27:27re-platforming then fine treat it as a
- 27:30production line and measure how
- 27:31effectively you're doing it.
- 27:33But most products
- 27:34development is not like that.
- 27:36Most product development has got a lot of
- 27:38unknowns in it and it's not simply a case
- 27:41of going from A to B
- 27:42extremely efficiently.
- 27:43So you also need to
- 27:44consider outcome metrics.
- 27:46Now outcome metrics are basically derived
- 27:48from the business value that you're
- 27:50trying to get from a product.
- 27:52So that could be if you're a SaaS company
- 27:53your outcome metrics could just be your
- 27:55SaaS metrics like you know churn, net
- 27:58retention revenue, net revenue
- 27:59retention that sort of thing.
- 28:01Or they could be product metrics so
- 28:03product adoption, net promoter score,
- 28:06customer feedback metrics, feature usage,
- 28:09activation rate all those kinds of things
- 28:12that product managers are
- 28:12much more familiar with.
- 28:14They tend to be outcome metrics because
- 28:16if your product activation rate goes up
- 28:19that's probably the
- 28:19outcome that you want.
- 28:20You want more people to use your product.
- 28:23If you can get more people to create like
- 28:25stickiness inside your product so they
- 28:27don't want to leave it, they've got very
- 28:28high net promoter score
- 28:30that will reduce churn.
- 28:31So those kinds of outcome metrics do tie
- 28:34into the business metrics that ultimately
- 28:36keep businesses alive.
- 28:37But they are measured in a very very
- 28:39different way to how
- 28:40output metrics are measured.
- 28:41You can't measure churn by
- 28:43looking at nine lines of code.
- 28:44So you need to have both of them.
- 28:46It's horses for courses basically.
- 28:48You need both output metrics and outcome
- 28:50metrics and a lot of engineers fall into
- 28:52the trap of over indexing on the output
- 28:55metrics just because
- 28:56they're easier to measure.
- 28:58They're not just easier to measure,
- 28:59they're also easier to attribute as well.
- 29:01Because an outcome metric something like
- 29:03the product activation rate you know how
- 29:05many people are using a feature, that
- 29:08feature could have been built by many
- 29:09many teams at your organization.
- 29:11And so if your output like your
- 29:13activation rate goes up that could have
- 29:15been because the customer enable team did
- 29:18a really good job or it could be because
- 29:20the product team designed a really good
- 29:22feature or it could be because the
- 29:24engineering team
- 29:24asked the right questions.
- 29:26There's lots of ways that
- 29:27those outcomes can go up.
- 29:29Whereas output metrics you can break it
- 29:30down very very easily.
- 29:32So if you are looking at something like
- 29:34the number of pull requests that are
- 29:35going in or the number of story points
- 29:37that are happening, you can break that
- 29:38down to an individual team
- 29:40level very very effectively.
- 29:41You can look at a group of five or six
- 29:43engineers and you can compare their
- 29:45sprint metrics to another team sprint
- 29:47metrics and you can just decide that this
- 29:49team needs a little bit of help or this
- 29:51team maybe could help this other team.
- 29:53That's much much harder
- 29:54to do with outcome metrics.
- 29:56It's very difficult if customer feedback
- 29:58comes in and says we find
- 30:00this feature difficult to use.
- 30:02It's very very difficult to pin that to
- 30:04one individual area of your teams and say
- 30:07okay that feature was difficult to use we
- 30:09just need to go and
- 30:09make a tweak over here.
- 30:11So it's very very difficult and it's also
- 30:12very difficult to
- 30:13attribute outcome metrics.
- 30:14But again don't fall into the magnum r
- 30:16fallacy of assuming that just because
- 30:18they're difficult to measure and
- 30:20difficult to attribute that you shouldn't
- 30:22be measuring them
- 30:22because you absolutely should.
- 30:24Both of these metrics are important and
- 30:26you need to take both of them together.
- 30:28And product engineering really is about
- 30:30combining output
- 30:31metrics and outcome metrics.
- 30:33So you still have an efficient system.
- 30:35It still is important to measure how
- 30:37efficiently you're putting product out
- 30:39but you also need to combine that with
- 30:41how well are we achieving the outcomes
- 30:43that we want to in our product.
- 30:47I'll give you an
- 30:48example from my experience.
- 30:50I was once managing two engineering teams
- 30:52that were working on two
- 30:53very different projects.
- 30:55One of the engineering teams was working
- 30:56on a framework update.
- 30:58So if I remember right they were
- 31:00upgrading the version of React.
- 31:02So it was using the component if you know
- 31:04much about React like they used to be
- 31:05this old way of creating React components
- 31:08which would use like a
- 31:09component class-based syntax.
- 31:11They were migrating the
- 31:12code base to use hooks.
- 31:14So that was a massive migration project
- 31:16that took them about a sprint or two.
- 31:18I had another engineering team that were
- 31:20changing the navigation
- 31:21inside the user interface.
- 31:23So both of these engineering teams had a
- 31:25piece of work that was taking them about
- 31:27two weeks and they both did a fairly good
- 31:29job of delivering it.
- 31:31So the migration team that were moving
- 31:32this version of React, they did, they
- 31:35estimated it pretty correctly and I could
- 31:37track how efficiently the pull requests
- 31:40were going in, how much refactoring was
- 31:42happening, how much code was changing and
- 31:45I could track the number of bugs that
- 31:46were coming in as a
- 31:47result of that migration.
- 31:48So the doorware metrics for
- 31:49that team were easy to track.
- 31:51They weren't all perfect
- 31:52but they were easy to track.
- 31:53The team that was changing the navigation
- 31:55on the other hand, again I did have all
- 31:57the output metrics for them.
- 31:58I could see that they were doing their
- 32:00work but what happened is we put the
- 32:02navigation changes in and users
- 32:04absolutely hated it.
- 32:05It caused a lot of
- 32:06resentment from a lot of people.
- 32:08Whenever you change navigation that
- 32:10people have built up muscle memory
- 32:12around, then you can initially at least
- 32:15achieve a negative product outcome.
- 32:17So the team that were changing the
- 32:18navigation achieved a negative product
- 32:20outcome even though they had actually
- 32:22delivered that project on time.
- 32:25And that's difficult to console yourself
- 32:27with basically because we wanted to
- 32:29celebrate the success of both of these
- 32:31teams and the one that had done the
- 32:32migration project, that was very easy to
- 32:34celebrate the success of.
- 32:35We knew what we were trying to do, we got
- 32:37there, we tested it, it was working,
- 32:39congratulations, you've done that
- 32:40migration, you can
- 32:41move on to something else.
- 32:43The team that were changing the
- 32:44navigation, again they did everything
- 32:46they were asked to do
- 32:47but people hated it.
- 32:48And so they can't move
- 32:49on to something else.
- 32:50They then need to go back through another
- 32:52cycle and iterate on that navigation and
- 32:54fix a bunch of stuff
- 32:56because people didn't like it.
- 32:57And so that's difficult because
- 32:59ultimately one of those teams did exactly
- 33:02what you were supposed to do in terms of
- 33:03outcomes and the other one didn't.
- 33:05The other one, even though they did
- 33:07exactly what they were asked to do, they
- 33:09didn't drive the correct outcome, they
- 33:10were trying to make the navigation easier
- 33:12to use and they ended up making it harder
- 33:14for a lot of people.
- 33:15And so measuring these two teams and
- 33:17celebrating their success, it was
- 33:19incorrect to do that just based on how
- 33:21like efficiently they
- 33:22delivered their work.
- 33:26And that's the important thing about all
- 33:28kinds of delivery metrics or output
- 33:30metrics is they tell you how efficiently
- 33:32you're building things but they don't
- 33:34tell you anything about whether that's
- 33:35the right thing to be building.
- 33:37And so if you just celebrate like the
- 33:38efficiency, then you're not going to
- 33:40celebrate the actual changes
- 33:41that matter to the business.
- 33:43And this is how you end
- 33:44up with feature factories.
- 33:45So I said before that product engineering
- 33:48is not like building a car in a Ford
- 33:50factory and ultimately that's incredibly
- 33:52true and you can't treat a team as if
- 33:55they are a production line because then
- 33:57you will end up
- 33:57celebrating the wrong things.
- 33:59You will end up celebrating a production
- 34:01line being super efficient and they've
- 34:02built all their cars by 5pm and so
- 34:04everyone can go home happy.
- 34:06You can't do that with a team.
- 34:07If you do that, you end up with a feature
- 34:09factory model where your team is only
- 34:11there to turn
- 34:12requirements into working code.
- 34:14And particularly in the world of AI, AI
- 34:17can now turn requirements into working
- 34:19code extremely efficiently.
- 34:21So if you're judging your ability of your
- 34:23engineering team to turn some
- 34:25requirements into code and then AI comes
- 34:27along, you might think well why do I even
- 34:29need this engineering team?
- 34:31And a lot of software engineers at the
- 34:32minute are getting extremely nervous
- 34:34about that very thing because they've
- 34:35tied their entire purpose into the
- 34:38ability to move code through a factory
- 34:40and that factory is now automated.
- 34:42Robots have come in and they've started
- 34:44doing all those individual pieces.
- 34:45So it's more important now than ever to
- 34:48change the model about how we celebrate
- 34:50success and how we measure engineering
- 34:52teams so that we're not
- 34:53treating them as feature factories.
- 34:55We're treating them as teams combined,
- 34:58products and engineering teams that are
- 35:00driving towards an outcome and we're
- 35:01judging them based on the outcome that
- 35:03we've asked them to achieve.
- 35:05So the mistake I made with that team that
- 35:07I'd asked to change the navigation was
- 35:09that I was holding them accountable to
- 35:10how quickly they could do that project,
- 35:12should have been holding them accountable
- 35:14to how easily users can
- 35:16find the new navigation.
- 35:17That was the correct thing to hold them
- 35:18accountable for and I would have just
- 35:20given them as much time as possible until
- 35:22we've seen signals that they've actually
- 35:24meaningfully improved the product.
- 35:26And if it took them three times as long
- 35:28that's basically okay because if you say
- 35:30to teams it can take you a bit longer but
- 35:31as long as you achieve that outcome then
- 35:33they will naturally try and make it take
- 35:35a little bit quicker because they will
- 35:37iterate more, they'll do more
- 35:38experiments, they'll try and find out
- 35:40more before they commit too much time
- 35:42into things because you told them that
- 35:43I'm not measuring on your cycle time or
- 35:46the number of code like lines of code you
- 35:48write, I'm measuring you on when people
- 35:51can find this more easy to use.
- 35:56And that brings me on to my next point
- 35:58about measurement because when you are
- 36:00measuring outcomes it's extremely
- 36:02important to work out how you're going to
- 36:03measure them before
- 36:04you start doing the work.
- 36:06Output is fairly easy because you know
- 36:08that, you know you've already got the
- 36:10tools in place to measure things like
- 36:11cycle time or pull request throughput so
- 36:14you don't need to decide that you can
- 36:15just know that you've got those metrics
- 36:17there but outcomes you need to decide
- 36:20before you start investing time into
- 36:21something how are we going to measure
- 36:23this outcome because they are more
- 36:25difficult to measure and again just
- 36:27because they're more difficult to measure
- 36:28does not mean they can be ignored they
- 36:30just need a little bit more thought they
- 36:32need a little bit more time spent up
- 36:34front working out how are we going to
- 36:36measure the success of this project how
- 36:38are we going to measure the impact of
- 36:39this feature and then as they start
- 36:41working you can bring that measurement in
- 36:43and you can try and get the team to
- 36:44iterate earlier and more quickly so that
- 36:47they have a higher chance of achieving
- 36:48that outcome because after all measuring
- 36:51things only really matters when those
- 36:53measurements can change a decision.
- 36:55Measuring things after the fact is okay
- 36:58if you want to look back and do a
- 36:59retrospective on some work but you really
- 37:01want to be measuring things from day one
- 37:03because if you're not measuring
- 37:05constantly through the entire process
- 37:07then you're not going to be able to
- 37:08respond to those measurements and outcome
- 37:10metrics particularly are often lagging
- 37:13indicators so often it takes a long time
- 37:16for changes to show up in outcome metrics
- 37:18particularly around things like user
- 37:20feedback or net promoter score surveys
- 37:22and things like that user feedback won't
- 37:24come in until you've shipped and people
- 37:26have had enough time to play with the
- 37:27thing that you've built so they're
- 37:29lagging indicators or they can be lagging
- 37:32indicators so it's even more important to
- 37:34get those lagging indicators brought
- 37:36forward and get some of that user
- 37:38feedback earlier in the cycle.
- 37:40Output metrics are often leading
- 37:42indicators so you can tell every single
- 37:44day how much code was shipped that day
- 37:46you need to be able to try to get it so
- 37:48that every single day you can tell how
- 37:50far we towards the outcome that day.
- 37:54So I want to close out this episode by
- 37:55giving you a question that you should ask
- 37:57of your engineering team your product and
- 37:59engineering team and that question is did
- 38:01the product get better because most
- 38:04outcome metrics are trying to answer that
- 38:06question we all want to build great
- 38:08products and we all want those great
- 38:09products to be used by lots of people who
- 38:11stick around and stay in our product and
- 38:14potentially drive business revenue as
- 38:16well and so in order to do that we need
- 38:18the products to constantly be getting
- 38:20better and you can't tell that just by
- 38:23measuring how efficiently you're changing
- 38:25that you also need to be able to measure
- 38:27actually how well it is improving.
- 38:29So ask yourself that question do you have
- 38:31a way of measuring outcomes and if you
- 38:33don't what are those things you can do
- 38:35what things can you put in place that
- 38:37will help you measure the impact of the
- 38:39work you're putting out.
- 38:40So I'll leave you with that question I
- 38:42hope you're enjoying the podcast so far
- 38:43these first few episodes are just solo
- 38:45episodes with me so I can get a bit of
- 38:47rhythm into this but we will be having
- 38:49guests on and exploring some other
- 38:50people's opinions in the future as well
- 38:52so stick around pepodcast.com you can
- 38:55find it on all of the common streaming
- 38:56services my name is James Charles Wirth
- 38:59and I'll see you in the next one.