Skip to content

Add a reproducible benchmark script and caveat the perf snapshot#282

Merged
seanwevans merged 1 commit into
mainfrom
claude/perf-benchmark-script
Jul 21, 2026
Merged

Add a reproducible benchmark script and caveat the perf snapshot#282
seanwevans merged 1 commit into
mainfrom
claude/perf-benchmark-script

Conversation

@seanwevans

Copy link
Copy Markdown
Owner

Summary

The README's Performance snapshot listed specific figures (0.7 ms spawn, 70 µs round-trip, 1.9 M msgs/core, 0.5 MiB RSS) with no backing benchmarktest_performance.py is only a <5 s smoke test. For a project that markets honesty about being a prototype, unbacked headline numbers are a credibility gap.

Changes

  • scripts/benchmark.py — measures spawn latency and cell round-trip on the current host (mean/median/p95), for --backend subinterpreter (default) and --backend process.
  • README — reframes the table as indicative, hardware-/kernel-/build-dependent reference figures rather than a comparison benchmark, and points at the script to reproduce them. It also flags that the encrypted-throughput and RSS rows aren't yet covered by the script.

Tests

New smoke test locks the script's importability and its pure statistics helper so it doesn't silently bit-rot. (The spawn/round-trip timing itself is exercised by the existing performance tests.)

Found during a full-project review.

🤖 Generated with Claude Code


Generated by Claude Code

The README's performance snapshot listed specific figures (0.7 ms spawn, 70 us
round-trip, ...) with no backing benchmark -- test_performance.py is only a
<5s smoke test. For a project that markets honesty about being a prototype,
unbacked numbers are a credibility gap.

- scripts/benchmark.py measures spawn latency and cell round-trip on the current
  host (mean/median/p95) for the subinterpreter and process backends.
- README reframes the table as indicative, hardware-dependent reference figures
  and points at the script to reproduce them; it flags that the encrypted-
  throughput and RSS rows are not yet covered by the script.

New smoke test locks the script's importability and its statistics helper.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PbbJc7Ntj159D9LNGevwC2
@seanwevans
seanwevans merged commit 219f450 into main Jul 21, 2026
18 checks passed
@seanwevans
seanwevans deleted the claude/perf-benchmark-script branch July 21, 2026 18:38
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.

2 participants