_primes_drag.nx
buildroot/runtime/_primes_drag.nx
about
_primes_drag.nx -- multi-pass sieve for drag-race timing.
Runs N passes internally; harness divides wall-clock by N to get
per-pass cost, then computes passes/sec for the 5-second window.
dependencies 1 imports · 0 importers
imports: syscalls.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
| 7 | const SIEVE_SIZE: i64 = 1000000 |
| 8 | const N_PASSES: i64 = 100 // run 100 passes per ELF invocation |
functions
| 10 | func one_pass(buf: *u8, half: i64) -> i64 called by 1: main |
| 50 | func main() -> i64 calls 1: one_pass |