code wiki / _hdl_build / nx_dtparse_bench.nx

nx_dtparse_bench.nx

buildroot/runtime/_hdl_build/nx_dtparse_bench.nx

1614 B36 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind bench
docsdependenciesstructsconstsfunctions

about

nx_dtparse_bench.nx -- dt_parse timing harness: parse <htmlfile>, report bytes/nodes/ms. Acceptance criterion (browser JS lane, 2026-07-23 memory): 130KB real page < 1000ms. Usage: nx_dtparse_bench <htmlfile>

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_domtree.nx nx_dtparse_bench.nx

imports: nx_syscalls.nxnx_domtree.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main db_p sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_now_ms sys_mmap ↻ sys_clock_gettime_mono dt_parse dt_new sys_mmap ↻ dt_alloc dt_node dt_parse_into sys_mmap ↻ nx_html_cursor_init nx_html_next_token _scan_name _is_name _is_void_element _lc dt_create_element_span dt_alloc ↻ dt_node ↻ dt_dup_lower sys_mmap ↻ dt_is_void dt_ceq dt_parse_attrs dt_is_name dt_is_ws dt_set_attr_span dt_node ↻ sys_mmap ↻ dt_dup_lower ↻

structs

none

consts

none

functions

7func db_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: db_pnmain calls 1: sys_write
8func db_pn(v: i64) -> i64
called by 1: main calls 3: db_psys_mmapsys_write
18func main(argc: i64, argv: *i64) -> i64