nx_handshake_crypto_bench.nx
buildroot/runtime/nx_handshake_crypto_bench.nx
about
nx_handshake_crypto_bench.nx -- 1:1 cost of the per-handshake public-key
crypto (the suspected ~150ms TLS bottleneck). A TLS 1.3 server handshake
does: 1 X25519 ephemeral keygen + 1 X25519 ECDH (shared secret) + 1
Ed25519 signature over the transcript. Measured here with sys_now_us
(ms) + __rdtsc (cycles). If keygen+ecdh+sign ~= 150ms, the crypto IS the
bottleneck (-> comb-tables). If it's a few ms, the daemon has a
per-connection inefficiency elsewhere (-> profile the daemon path).
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_x25519.nxnx_ed25519_signature.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
| none |
functions
| 15 | func bdec(n: i64) -> i64 |
| 27 | func msfix(us: i64) -> i64 |
| 34 | func fill(p: *u8, n: i64, v: i64) -> i64 called by 1: main |
| 39 | func report(label: *u8, llen: i64, n: i64, us: i64, cyc: i64) -> i64 |
| 46 | func main() -> i64 |