Cost-per-element is the metric, not throughput

source: Routing documents between GPU and CPU OCR

Throughput answers "how fast does this machine go when it is busy". Nobody downstream is asking that. They are asking what one page costs and how long one document waits.

When I benchmarked GPU and CPU OCR services, the pages-per-second numbers were not even close; the GPU won by a wide margin. The cost-per-page numbers told the opposite story for most of our traffic, because the GPU was idle a lot of the time, the fully loaded price of an idle GPU is still a GPU, and a large share of pages did not need the better model at all.

Three things make cost-per-element the better axis:

  1. It includes idle time. A service that is fast but under-used is expensive per unit of work. Throughput hides that.
  2. It includes retries and fallbacks. If a cheap path is wrong 5% of the time and the fix is an expensive retry, the cheap path's real cost includes that 5%.
  3. It composes. Cost per page times pages per document is a number you can put next to the turnaround SLA and reason about. Pages per second per machine is not.

Pair it with turnaround at the p95 at the real arrival pattern, not latency per item on a quiet system, and you have the two numbers that actually decide the design.