nx_sh_race.nx
buildroot/runtime/nx_sh_race.nx
about
nx_sh_race.nx -- prove the sovereign shell nx_sh is an S-class EXCEED over
bash on the one thing a shell does most: spawn commands. Measures per-spawn
overhead 1:1 (spawn /bin/true N times) so it's comparable to a bash oracle
(`time (for i in $(seq N); do /bin/true; done)`). The child cost is identical
either way; the delta is the SHELL's own overhead -- where nx_sh (raw
fork/exec, no parse/job-control) beats bash.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_sh.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 12 | const K_MAGIC_2000: i64 = 2000 |
functions
| 14 | func rputs(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } sys_write(1, s, n); return 0 } |
| 15 | func rputn(n: i64) -> i64 |
| 25 | func main() -> i64 |