Skip to content

CLI-101: the bench of the cost of the live limits - #464

Merged
mark1russell7 merged 3 commits into
mainfrom
bench/cli-101-limits
Nov 6, 2026
Merged

mark1russell7 merged 3 commits into
mainfrom
bench/cli-101-limits

Conversation

@mark1russell7

Copy link
Copy Markdown
Owner

What

The bench of the cost of the three live limits at their edges (CLI-101). The defaults are 1,024 keys for each topic, 16,384 bytes for each value and 4,096 topics. No measure chose them. This bench reads what each edge costs a host.

  • heap-256, heap-16384, heap-16x16384: the retained heap of a key, after a full collection.
  • topics-4096: the heap of a topic with one key.
  • set-256, set-16384, set-wide: the time of one live.set call. The value of set-wide has 3-byte characters.
  • snapshot-full: the call of live.snapshot on a full topic, and the JSON of its output.
  • window-s1, window-s10: one window event of a full topic, delivered to 1 and 10 subscribers with a JSON frame for each.

The bench has one arm and its A/A pair. Each case runs in a fresh process. The report gives the median and the range of each measure, and the full topics that fit under the heap limit.

The prediction

The prediction client-CLI-101-limits came before the bench, with 11 outcomes. The main claim: the product of the defaults is above 64 GiB, so the topic limit does not bound the memory of a host.

Release

No changeset: the bench and the workflow are not in a package. The workflow starts only on a dispatch, so it needs main first.

🤖 Generated with Claude Code

A bench with one arm and its A/A pair, each case in a fresh process with
--expose-gc: the heap of a key at 256 and 16,384 bytes, the heap of a
topic at 4,096 topics, the time of live.set at both byte edges, a
snapshot of a full topic, and one window event of a full topic to 1 and
10 subscribers. The workflow live-limits only reports, on a dispatch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ix (CLI-101)

snapshot-k64, window-s10-k64 and window-s100-k64 read a topic of 64 keys
of 16,384 bytes. The report gives the heap of a topic and of a state at
the limits of bytes of #465, and the share of the heap limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mark1russell7
mark1russell7 merged commit c8aa828 into main Nov 6, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant