code wiki / _hdl_build / nx_bench_warc.nx
nx_bench_warc.nx
buildroot/runtime/_hdl_build/nx_bench_warc.nx
about
nx_bench_warc.nx -- BENCHMARK CORPUS CAPTURE RUNNER: a URL-list file -> render-fetched -> ONE durable WARC
at a CALLER-CHOSEN path -> reloaded and verified retrievable by URL -> ts'd verdict line appended to
knowledge/status/bench_warc.log. Composes bf_fetch_follow (render front) + nx_web_archive (store); adds NO
new mechanism. Exists because nx_crawl_preserve pins one output path + a 32MiB cap, so it cannot hold two
vertical corpora side by side (archive-as-oracle standard: every benchmark corpus is a reserved WARC).
usage: nx_bench_warc <urlfile> <warcpath> [max] (urlfile: one URL per line; blank/# lines skipped)
license_tier: ORIGINAL
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_csprng.nxnx_browser_fetch.nxnx_web_archive.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
| 15 | const BW_CERTCAP: i64 = 4194304 |
| 16 | const BW_LOGCAP: i64 = 1024 |
| 17 | const BW_REDIR: i64 = 5 |
| 18 | const BW_MODE: i64 = 420 |
| 19 | const BW_CONFCAP: i64 = 8192 |
| 23 | const BW_D_RESPCAP: i64 = 33554432 |
| 24 | const BW_D_WARCCAP: i64 = 805306368 |
| 25 | const BW_D_LISTCAP: i64 = 4194304 |
| 26 | const BW_D_URLCAP: i64 = 4096 |
| 27 | const BW_D_MAXURLS: i64 = 100000 |
| 28 | const BW_HDRSLACK: i64 = 4096 |
functions
| 30 | func bw_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 31 | func bw_sl(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 32 | func bw_n(v: i64) -> i64 |
| 46 | func bw_catn(buf: *u8, off: i64, v: i64) -> i64 |
| 58 | func bw_cat(buf: *u8, off: i64, s: *u8) -> i64 called by 1: main |
| 64 | func bw_readfile(path: *u8, buf: *u8, cap: i64) -> i64 |
| 72 | func bw_line(list: *u8, start: i64, end: i64, url: *u8, urlcap: i64) -> i64 called by 1: main |
| 94 | func bw_conf(buf: *u8, n: i64, key: *u8, dflt: i64) -> i64 |
| 117 | func main(argc: i64, argv: *i64) -> i64 |