code wiki / (root) / nx_slicebench.nx

nx_slicebench.nx

buildroot/runtime/nx_slicebench.nx

1063 B36 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind bench
docsdependenciesstructsconstsfunctions

about

Cost of the SLICE bounds check over heap memory. Same shape and same workload as nx_bounds_perf.nx so the two are directly comparable, and the same shape as the Rust arm in _ops/nxlang_r1/h2h/slice.rs -- Rust's &[T] also carries a length and checks it, which makes that the like-for-like comparison.

dependencies 1 imports · 0 importers

nx_fmt.nx nx_slicebench.nx

imports: nx_fmt.nx

imported by: nobody (leaf or entry point)

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

main fmt_puts fmt_puts_fd sys_write fmt_putn fmt_putn_fd sys_write ↻

structs

none

consts

6const N_ELEM: i64 = 1024
7const N_ITER: i64 = 20000

functions

8func main() -> i64