The benchmark cannot see boot time or streaming, and says nothing about it #86

Closed
opened 2026-09-02 02:28:42 +00:00 by chrnx · 0 comments
Owner

Two of this release's changes are invisible to npm run bench, and the file does not warn a reader
that it is looking at a partial picture. Two other gaps were closed this release and are recorded
here so the next one is not rediscovered the same way.

Closed in 26.9

  • Route-table width. Every matcher cost scales with candidates walked past; the tables use six
    routes. Now a bench:compare dimension — see #85.
  • Runtimes. green-tea-deno.ts and green-tea-bun.ts were written in July and referenced by
    nothing: not the runner, not a script, not CI. They existed and looked like coverage. The runner
    only knew how to launch Node. Wired now, in their own section, all three loading dist/.

Still open

Boot time is not measured. Independent providers began booting concurrently this release: three
providers with no edges and 200 ms of work each went from 616 ms to 210 ms, the difference
between the sum of a graph's latencies and its longest chain. It is the largest single improvement in
the release and no table shows it, because every table measures req/s on a server that is already up.

A scenario would want the dimension that makes it real: boot with 3, 10 and 30 providers, at a fixed
per-provider latency, and report wall-clock to first served request. The shape matters more than any
single number — the saving is proportional to how wide the graph is, exactly like the matcher's is
proportional to how wide the route table is, and a three-provider app will show nothing.

Streaming is not measured. Every scenario is a buffered response. Not exercised:

  • SSE framing per item, which gained a branch this release for id:/event:/retry:
  • stream:open / :close / :error, which now fire on all four runtimes rather than Node alone
  • backpressure, which is where pipeStream and asReadableStream differ most
  • a long-lived connection's cost while idle — the ping interval, the retained iterator

The measurement is not req/s. It is items/second down one connection, and connections held at once,
which is a different harness shape than autocannon's.

Disclosure, separate from coverage

The cross-framework tables load green-tea from src/ through tsx while every other framework loads
its published JavaScript. Measured this release, that difference is within noise on all four rows —
but it is a difference, it is not disclosed in the methodology, and it is the form nobody installs.
The runtimes table avoids it by loading dist/ on all three.

The methodology section documents header parity, keep-alive parity and serialization parity, and says
nothing about either of these. A reader assumes the opposite of both, reasonably.

Related

The tables now carry a "What this file does not measure" section listing all of the above. That is a
note, not a fix.

Two of this release's changes are invisible to `npm run bench`, and the file does not warn a reader that it is looking at a partial picture. Two other gaps were closed this release and are recorded here so the next one is not rediscovered the same way. ## Closed in 26.9 - **Route-table width.** Every matcher cost scales with candidates walked past; the tables use six routes. Now a `bench:compare` dimension — see #85. - **Runtimes.** `green-tea-deno.ts` and `green-tea-bun.ts` were written in July and referenced by nothing: not the runner, not a script, not CI. They existed and looked like coverage. The runner only knew how to launch Node. Wired now, in their own section, all three loading `dist/`. ## Still open **Boot time is not measured.** Independent providers began booting concurrently this release: three providers with no edges and 200 ms of work each went from **616 ms to 210 ms**, the difference between the sum of a graph's latencies and its longest chain. It is the largest single improvement in the release and no table shows it, because every table measures req/s on a server that is already up. A scenario would want the dimension that makes it real: boot with 3, 10 and 30 providers, at a fixed per-provider latency, and report wall-clock to first served request. The shape matters more than any single number — the saving is proportional to how wide the graph is, exactly like the matcher's is proportional to how wide the route table is, and a three-provider app will show nothing. **Streaming is not measured.** Every scenario is a buffered response. Not exercised: - SSE framing per item, which gained a branch this release for `id:`/`event:`/`retry:` - `stream:open` / `:close` / `:error`, which now fire on all four runtimes rather than Node alone - backpressure, which is where `pipeStream` and `asReadableStream` differ most - a long-lived connection's cost while idle — the ping interval, the retained iterator The measurement is not req/s. It is items/second down one connection, and connections held at once, which is a different harness shape than autocannon's. ## Disclosure, separate from coverage The cross-framework tables load green-tea from `src/` through `tsx` while every other framework loads its published JavaScript. Measured this release, that difference is within noise on all four rows — but it is a difference, it is not disclosed in the methodology, and it is the form nobody installs. The runtimes table avoids it by loading `dist/` on all three. The methodology section documents header parity, keep-alive parity and serialization parity, and says nothing about either of these. A reader assumes the opposite of both, reasonably. ## Related The tables now carry a "What this file does not measure" section listing all of the above. That is a note, not a fix.
chrnx closed this issue 2026-09-04 14:28:16 +00:00
Sign in to join this conversation.