code wiki / (root) / nx_linkqual_bench.nx

nx_linkqual_bench.nx

buildroot/runtime/nx_linkqual_bench.nx

3442 B95 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind benchtopic linkqual
docsdependenciesstructsconstsfunctions

about

nx_linkqual_bench.nx -- MEASURED hot-path performance of the link-quality substrate on THIS hardware (1:1, no proxy: native x86_64 ELF, raw syscalls, monotonic sys_now_us deltas). Reports ns/op + updates/sec for each hot-path update so we can claim "as performant as the hardware allows" with a real number, not an assertion. Honest method: a warmup pass is discarded; inputs vary per-iteration so the work can't be folded. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_linkqual.nx nx_linkqual_bench.nx

imports: nx_linkqual.nx

imported by: nobody (leaf or entry point)

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

main lq_flow_new sys_mmap lq_on_arrival sys_now_us sys_mmap ↻ sys_clock_gettime_mono breport bdec lq_record_latency lq_buckets lq_bucket_of lq_on_rtt lq_on_seq

structs

none

consts

11const K_MAGIC_2000000: i64 = 2000000
12const K_MAGIC_100000: i64 = 100000

functions

14func bdec(n: i64) -> i64
called by 1: breport
27func breport(label: *u8, label_len: i64, n: i64, us: i64) -> i64
called by 1: main calls 1: bdec
39func main() -> i64