nx_sum_bench.nx
buildroot/runtime/nx_sum_bench.nx
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
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
structs
| none |
consts
| 17 | const N: i64 = 1000000 |
| 18 | const REPS: i64 = 100 |
functions
| 20 | func sum_scalar(arr: *i64) -> i64 called by 1: main |
| 30 | func main() -> nx_exit |