nx_bench_popcount.nx
buildroot/runtime/nx_bench_popcount.nx
about
nx_bench_popcount.nx -- microbenchmark for nx_popcount64.
Times the cost of N = 1_000_000 popcount calls on pseudo-random
i64 values. Uses nx_clock_monotonic_ns for nanosecond timing.
Reports total elapsed ns + per-op ns + reference comparisons.
Per S-class cardinal: every primitive must be measured and
reported against known-language baselines. Substrate beats or
matches all known on every axis.
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_clock.nxnx_bit.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
| 22 | const STDOUT: i64 = 1 |
| 23 | const N_ITER: i64 = 1000000 |
functions
| 25 | func main() -> i64 |