nx_bench_dist_emit_test.nx
buildroot/runtime/nx_bench_dist_emit_test.nx
about
nx_bench_dist_emit_test.nx -- 10-run distribution measurement.
Runs the v2 LLM 10-iter scenario TEN INDEPENDENT TIMES, captures
wall-clock for each, computes min/max/mean/p50/p95/stddev across
the 10 samples, and emits the distribution summary to stdout.
This is the substrate-honest version of "single-point benchmark":
every serious comparison reports distributions because variance
matters. A p50 + p95 + stddev tells the operator far more than a
single wall-clock number.
Output (stdout):
nx_bench_dist_v2_10iter N=10 min=... max=... mean=... p50=... p95=... stddev=...
plus raw 10 wall-clock samples line so operators can re-analyze
HONEST SCOPE: qemu-riscv64 emulated time. Variance under qemu is
dominated by interpreter scheduling artifacts; native hardware will
show different absolute numbers + variance shape. The SHAPE of
the distribution (tight p50-p95 spread vs long-tail outliers) is
the substrate-honest signal.
dependencies 11 imports · 0 importers
diagram shows first 10 each side; +1 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_tier.nxnx_clock.nxnx_actor.nxnx_message.nxnx_session.nxnx_bench_companion.nxnx_bench_companion_timed.nxnx_bench_stats.nxnx_gguf_fixture_tiny.nxnx_actor_role_llm_v2.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
| none |
functions
| 34 | func _emit_dec_i64(fd: i64, n: i64) -> i64 |
| 55 | func _emit_str(fd: i64, s: *u8, n: i64) -> i64 |
| 60 | func _emit_nl(fd: i64) -> i64 |
| 67 | func _emit_tab(fd: i64) -> i64 |
| 76 | func _drive_one_run(prng_seed: i64, n_iters: nx_int, now: nx_size) -> i64 |
| 107 | func main() -> i64 |