docs: correct the observability cost, and record why three earlier numbers were wrong
The published figure was -3.9%. It was measured sequentially rather than interleaved, and the machine drifts 12% across a session as it warms, so run order was indistinguishable from effect. Two later attempts to correct it were also wrong: 0.8% had the same flaw, and -6.8% compared7bd11bfagainst HEAD, which differ by observability *and* three performance fixes pulling the other way, then reported their net as if it were one of them. Measured properly, alternating round by round between7bd11bfand523e318(the last commit before those fixes): +7.0% of the framework's own per-request work, about 0.29us, roughly 2% of a request over a real socket. Ranges do not overlap. The guide no longer quotes absolute throughput from this laptop. The reference numbers come from a two-box setup, and single-box loopback figures invite a comparison that is not valid. D7's shape survives: the cost is fixed per request, not per step, because per-step work is skipped when nothing subscribes. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
3 files changed
+23
-15
No files matched your search
@@ -149,7 +149,9 @@ Two things follow. `Date.now()` loses on both axes — slower *and* coarser —
|
||||
|
||||
At 0.25% per step the overhead sits **below the 0.3% run-to-run CV of the project's own benchmark**, so it is not measurable in the harness that would have to justify a flag. Making it opt-in would buy two code paths and a configuration surface in exchange for something nobody can observe. Always on.
|
||||
|
||||
> **Correction, after implementation.** This decision survived; its reasoning did not. Measured over a real socket the cost is **−3.9% on JSON hello and −2.1% on a three-step pipeline** — the shallower route loses *more*, which is the opposite of a per-step model. Per-step work is skipped entirely when nothing subscribes; what is left is a fixed per-request cost. "Always on" is still right, and for a better reason: there is nothing per-step left to make optional. See Task 7 in the implementation plan.
|
||||
> **Correction, after implementation.** This decision survived; its reasoning did not. The measured cost is **+7.0% of the framework's own per-request work** (~0.29 µs, ~2% over a real socket), and it is *fixed per request* rather than per step — per-step work is skipped entirely when nothing subscribes. "Always on" is still right, and for a better reason: there is nothing per-step left to make optional.
|
||||
>
|
||||
> Three earlier figures for this were published before that one and all three were wrong, each from a comparison with more than one variable moving. See Task 7 in the implementation plan for what went wrong and why interleaving is not optional here.
|
||||
|
||||
### D8 — Request logging is a `Bus` subscriber, wrapped so a failing logger cannot go silent
|
||||
|
||||
|
||||
Reference in new issue
Block a user