code wiki / (root) / nx_uxf_sqlite_workload.nx

nx_uxf_sqlite_workload.nx

buildroot/runtime/nx_uxf_sqlite_workload.nx

3358 B68 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic uxf
docsdependenciesstructsconstsfunctions

about

nx_uxf_sqlite_workload.nx -- UXF arc #4 (true 1:1 bench), prep: SOVEREIGNLY generate the EXTERNAL sqlite incumbent's workload as a .sql script. GUARDRAIL (no-cheat flag): sqlite is the external, 3rd-party, NON-sovereign yardstick-to-beat -- it only EXECUTES a workload Nishi authored; it does no Nishi work and is never linked. The workload is byte-for-byte IDENTICAL to nx_uxf_store_bench: N=20000 key-value rows (key 'k'+8digit, value 16 bytes 0xAB), bulk-insert in one txn, then 20000 point lookups over the same (i*7919)%N access pattern (via a recursive CTE) -- so the comparison is fair. Output: knowledge/staging/uxf/bench.sql. No hardware writes (Rule 26). expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_uxf_sqlite_workload.nx

imports: nx_syscalls.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 ws wkey wpn sys_mmap ↻ sys_openat_wr sys_write sys_exit sys_close

structs

none

consts

10const K_MAGIC_4194304: i64 = 4194304
12const WN: i64 = 20000

functions

14func ws(buf: *u8, off: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { buf[off + i] = s[i]; i = i + 1 } return off + i }
called by 1: main
15func wkey(buf: *u8, off: i64, v: i64) -> i64
called by 1: main
22func wpn(buf: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
34func main() -> i64