Skip to content

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

Open

Description

@chrnx-dev

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.
  • 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.

Activity

  1. added
    area: tests
    on Nov 20, 2026
  2. chrnx-dev commented on Nov 24, 2026

    @chrnx-dev
    ContributorAuthor

    Progress in 26.11.0-rc.2 (PR #93): bench:compare gained SSE cases, plain and gzip (f1d8b87), a static file case (563998d), and A/B servers on Deno and Bun (e1c1801).

    Still open: boot time (wall-clock to first served request with 3/10/30 providers) and streaming throughput as items/s, connections held at once, and backpressure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions