4 ms·
Where does that "5 bugs per kloc" figure come from?
by bennyg 10y ago
Where does that "5 bugs per kloc" figure come from?
- mnw21cam 10y agoGoogle "bugs per line of code", and the top result says that the industry average is 15 to 50 bugs per kloc. I'd expect (hope) people making cars do a little better than that, hence a guestimate of 5.
- bluejekyll 10y agoOff the back of my hand, that seems like a reasonable. That's a bug per 200 lines of code written. I'd expect it to be higher if written in an non-memorysafe language as well, and ones that allow for Nulls and unchecked exceptions.
- mikestew 10y agoOn most projects I've worked on, it hovers around 10 defects per kloc. On the one hand, 5 defects/kloc sounds optimistic, but I would hope automotive software to be developed more rigorously. OTOH, experience tells me otherwise.