nx_ghash_bench.nx
buildroot/runtime/nx_ghash_bench.nx
about
nx_ghash_bench.nx -- throughput: bit-by-bit GF(2^128) reference vs the PCLMULQDQ backend.
Same fixed block hashed N times each way (models GHASH over a large message). Prints
ms + MB/s for both and the speedup. Correctness is gated separately (nx_ghash_clmul_gate);
this is purely a perf measurement.
expect_exit: 0
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_ghash.nxnx_ghash_clmul.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
| 12 | const K_MAGIC_200000: i64 = 200000 |
| 13 | const K_MAGIC_1000000: i64 = 1000000 |
functions
| 15 | func b_ps(s: *u8, n: i64) -> i64 { sys_write(1, s, n); return 0 } |
| 16 | func b_pn(v: i64) -> i64 |
| 25 | func main() -> i64 |