CPU scaling benchmark

workers
0 +1 main
iters total
1B
1000000000/stream
elapsed
8638.82 ms
total CPU used
8638.8 ms
speedup
vs serial
efficiency
100%
of 1× ideal
stream spawn ms spawned@ work start@ work end@ work ms reap wait ms
0 (main) 0 0 0.01 8638.81 8638.8 0
main
    fork+handshake      CPU work      parent reap wait
what this measures
Each stream runs a tight integer LCG loop — working set is one CPU register, no memory access, no shared data. Speedup = sum(stream CPU time) / wall-clock elapsed. Efficiency = speedup / (workers+1). 100% efficiency means perfect linear scaling; less than 100% is the cost of serial fork setup, reap tail, SMT/core contention.