Repository navigation
Conversation
The throughput script now also times one task in a fresh node process per run, which is what a single command costs a user (the addon load and the runtime start are part of it), and the single-task gate reads that row. It writes its table to a job summary when asked to. A new advisory workflow builds the release addon on Linux, macOS and Windows and prints the table, so the throughput gate can be read from the runners rather than from one machine. It never fails on a number. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
ⓘ Qodo did not review this PR because this workspace reached its daily trial limit of 100 reviews. Reviews start again at 00:00 UTC. Choose a plan to continue now. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
Thank you for following the naming conventions! 🙏 |
Problem
The native concurrent runner has a throughput gate before it can become the default: within 1.25x of the JS spawner on 200
echotasks (maxProcesses8) and within +10 ms on one task. It was only measured on one macOS arm64 machine, and Linux still starts commands through the fork-basedpre_exec(setsid)path, so nobody knows whether Linux meets the gate.Change
__bench__/concurrent-throughput.script.ts: adds a "1 task, cold process" row (a freshnodeper run, 20 runs, median), which is what one command costs a user, and reads the single-task gate from it. OptionalBENCH_SUMMARYwrites the markdown table to a file..github/workflows/runner-bench.yml: advisory workflow that builds the release addon on ubuntu-24.04, macOS and Windows and prints the table to the job summary. It is path-filtered to the runner and the harness, can be started by hand, never fails on a number and is not a required check.No Rust changes: the Linux spawn path would only change if the runner numbers failed the gate, and they do not.
Hosted-runner medians (native / JS; gate is 1.25x on 200 tasks and +10 ms on one cold task):
Notes for review
runNativeConcurrent,runConcurrentFallback) withshellPathpinned, notrunConcurrentlywithVIS_CONCURRENT_RUNNER=js: the environment variable does not exist yet (it arrives with the default switch), and going throughrunConcurrentlywould add the restart, teardown and shell-lookup wrappers to both sides alike. The shell lookup is excluded either way.🤖 Generated with Claude Code