code wiki / (root) / nx_bench_dist_persist_test.nx

nx_bench_dist_persist_test.nx

buildroot/runtime/nx_bench_dist_persist_test.nx

7931 B197 linesdepth 11pulls 47 transitivereach 0 importersview sourcekind gate/prooftopic bench
docsdependenciesstructsconstsfunctions

about

nx_bench_dist_persist_test.nx -- run distribution + persist to disk. Composes the distribution measurement primitive with the disk-write persistence primitive. Produces a REAL TSV file at /tmp/nx_bench_dist.tsv containing one header + N data rows + summary stats. This is the substrate-honest end-to-end workflow the s-class comparison campaign needs: measurement happens, bytes hit disk, external tools (sort / awk / future llama.cpp comparison rigs) read the file and diff against their own. After the smoke runs, the operator can: cat /tmp/nx_bench_dist.tsv sort -k7n /tmp/nx_bench_dist.tsv awk -F'\t' '{print $1, $8}' /tmp/nx_bench_dist.tsv And see real persisted substrate measurements.

dependencies 13 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_clock.nx nx_actor.nx nx_message.nx nx_session.nx nx_bench_companion.nx nx_bench_companion_timed.nx nx_bench_companion_tsv.nx nx_bench_stats.nx nx_bench_dist_persist_test.nx

diagram shows first 10 each side; +3 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_companion_tsv.nxnx_bench_stats.nxnx_bench_tsv_persist.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

main sys_mmap sys_openat_wr sys_close nx_bc_persist_row nx_bc_persist_open_append _bcps_null_terminate sys_mmap ↻ sys_openat_append nx_bc_persist_write sys_write sys_close ↻ nx_bc_persist_close sys_close ↻ _drive_one_run nx_gft_build_tiny_llama sys_mmap ↻ nx_le_write_u64 nx_le_write_u32 _gft_mk_blk_name _gft_write_ti nx_le_write_u64 ↻ nx_le_write_u32 ↻ nx_gguf_parse nx_le_read_u32 nx_le_read_u64 nx_le_read_u32 ↻ _gguf_skip_value nx_le_read_u64 ↻ nx_le_read_u32 ↻ _gguf_skip_value ↻ sys_mmap ↻ nx_model_spec_new sys_mmap ↻ nx_model_spec_validate nx_norm_is_valid nx_act_is_valid nx_pos_is_valid nx_ffn_is_valid nx_bpe_vocab_new

structs

none

consts

none

functions

36func _emit_dec_to_buf(buf: *u8, off: nx_int, cap: nx_int, n: i64) -> nx_int
called by 1: main calls 1: sys_mmap
66func _drive_one_run(seed: i64, n_iters: nx_int, now: nx_size) -> i64
96func main() -> i64