RFC 004 bench: spin_sweep measurement tool. Latency (p50/p90/p99/min/max, pooled across runs) vs idle-CPU (cores-busy via getrusage RUSAGE_SELF) over spin_budget_cycles x max_spinners x threads. Four workloads: remote-wake (latency target), fork-join, half-load (cost target), pure-idle (floor check). Env-knobbed SMARM_SPIN_*, greppable SPINCSV lines. Smoke-runs clean on 1 core (no hang); 1-core correctly shows the spinner-starves-producer pathology, real curve needs the many-core box.

This commit is contained in:
smarm-agent
2026-06-14 07:52:21 +00:00
parent 87416f903a
commit 7ec453920b
2 changed files with 439 additions and 0 deletions
+4
View File
@@ -61,3 +61,7 @@ harness = false
[[bench]]
name = "rq_runtime"
harness = false
[[bench]]
name = "spin_sweep"
harness = false