CPU scaling benchmark

workers
12 +1 main
iters total
500M
38461538/stream
elapsed
1202.3 ms
total CPU used
13787.91 ms
speedup
11.47×
vs serial
efficiency
88.2%
of 13× ideal
stream spawn ms spawned@ work start@ work end@ work ms reap wait ms
0 (main) 0 36.71 36.72 1201.88 1165.16 0
1 1.696 1.71 18.63 1121.23 1102.6 0.13
2 1.462 3.2 19.18 1062.31 1043.13 0.19
3 1.506 4.73 22.74 980.32 957.58 0.21
4 4.227 8.97 33.46 1150.55 1117.09 0.23
5 1.504 10.49 42.76 1100.24 1057.48 0.25
6 1.37 11.88 44.09 1008.71 964.62 0.27
7 3.055 14.95 62.82 1130.03 1067.21 0.29
8 4.432 19.41 84.14 1194.8 1110.66 0.3
9 1.431 20.85 72.65 1095.53 1022.88 0.32
10 1.501 22.37 64.56 1117.63 1053.07 0.33
11 12.824 35.21 83.8 1157.14 1073.34 0.35
12 1.466 36.69 102.69 1155.78 1053.09 0.36
main
w1
w2
w3
w4
w5
w6
w7
w8
w9
w10
w11
w12
    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.