Skip to content

test(process): attribute session spawn overhead (#366) - #383

Merged
zackees merged 1 commit into
mainfrom
perf/session-spawn-366
Sep 29, 2026
Merged

zackees merged 1 commit into
mainfrom
perf/session-spawn-366

Conversation

@zackees

@zackees zackees commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Adds an ignored measurement (tests/process/session_spawn_cost.rs, a module of the existing process category) comparing a session spawn to std::process::Command per option.

Finding: a bare session is within ~0.2 ms of std; kill_when_owner_dies and best-effort priority each add ~0.4-0.8 ms because the substrate installs them in pre_exec (fork+exec instead of posix_spawn). Admission is free. The fix belongs in running-process: zackees/running-process#1248.

Refs #366 (left open until running-process lands the fix and zccache re-measures).

@zackees zackees closed this Sep 29, 2026
@zackees zackees reopened this Sep 29, 2026
…:process::Command

Attributes #366: a bare session tracks std; kill_when_owner_dies and a
best-effort priority each add sub-millisecond-to-millisecond cost because the
substrate installs them in pre_exec (fork+exec instead of posix_spawn).
@zackees
zackees force-pushed the perf/session-spawn-366 branch from de42a0e to 03f9ee4 Compare September 29, 2026 20:30
@zackees
zackees merged commit 5600e37 into main Sep 29, 2026
0 of 6 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