Read the denominator

3 min read

Every performance number is a fraction with its bottom half left out. “Ten seconds” is ten seconds for what; “ninety percent” is ninety percent of which cases. The missing half is usually the part that decides whether the figure means anything.

I think about this more than I used to, because I now write these numbers about my own work. Beetle reads a business from its own site: the homepage, its policy pages and a few product pages, then a decision with the evidence kept. A typical run takes about ten seconds. That sentence has three choices folded into it, and each is worth unfolding.

Typical, not best

Best cases are easy to find and pleasant to quote. Run a system on a tidy site with few pages to follow and it will look quick; quote that, and every later run is a small disappointment. The figure I use is the typical run across the sites I have tried. It is slower than the best, and it is the one a buyer will actually meet.

I know the pull of the best case from the inside. While drafting a post about an onboarding system I once built, I caught myself reaching for the fast run, which happened to be on my own sparse site. The honest answer was a range, from about half a minute to several minutes depending on what the pages held. A range is a worse headline and a better figure.

One run, defined

“Ten seconds” covers a whole read: about seven pages, fetched and classified. Set that beside a vendor’s figure for fetching a single page and the two are not comparable, however alike they look. In one test of mine, a hosted service took five to six seconds for a single plain homepage; my own fetcher took a few hundred milliseconds for the same page. I do not read that as a verdict on the service, which is promising something different. I read it as a reminder that the number on a vendor’s page is the vendor’s, and the number in my log is mine. A benchmark is a claim until it has run on your own pages, timed the same way.

Failures stay in

The heaviest homepages I have tried, five or six megabytes of them, can time out. Those runs fail. Drop them from the average and the average improves; keep them and the figure is true. A run that cannot resolve a policy page is recorded as a failure and is not billed, which keeps the incentive straight: if failures are free to hide, they get hidden.

The reviewer’s question

None of this is modesty. A risk or audit reviewer asks for the worst case regardless, and an answer already written down saves a meeting. I learned that at Xoxoday, where the first year’s external audit failed mostly on operational procedure and not on code. What fixed it was records that already said what had happened, bad days included.

From here on I quote two figures together: the typical time, and how often a run fails.