code wiki / (root) / nx_sum_bench.nx

nx_sum_bench.nx

buildroot/runtime/nx_sum_bench.nx

1905 B59 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind benchtopic sum
docsdependenciesstructsconstsfunctions

about

nx_sum_bench.nx -- NishiLang scalar sum bench for cross-language comparison against sum_c.c. Same N + reps + checksum. Run: compile to RV-V, run under qemu-riscv64-static. Reports nanoseconds. See nxc2/docs/PERF_NISHI_VS_C.md for the comparison.

dependencies 3 imports · 0 importers

nx_kernel_v2.nx nx_log.nx nx_clock.nx nx_sum_bench.nx

imports: nx_kernel_v2.nxnx_log.nxnx_clock.nx

imported by: nobody (leaf or entry point)

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

main nx_clock_monotonic_ns sys_mmap sys_clock_gettime_mono sum_scalar

structs

none

consts

17const N: i64 = 1000000
18const REPS: i64 = 100

functions

20func sum_scalar(arr: *i64) -> i64
called by 1: main
30func main() -> nx_exit