code wiki / (root) / nx_p256_sign_bench.nx

nx_p256_sign_bench.nx

buildroot/runtime/nx_p256_sign_bench.nx

2287 B54 linesdepth 11pulls 20 transitivereach 0 importersview sourcekind benchtopic p256
docsdependenciesstructsconstsfunctions

about

nx_p256_sign_bench.nx -- measure the ACTUAL per-handshake server crypto: P-256 ECDSA sign (TLS 1.3 CertificateVerify uses the le_ecdsa_key.bin P-256 key). Tonight I mis-benched ed25519; the real cost is this. If sign time ~= the measured ~80ms handshake, the handshake is crypto-bound (P-256 comb tables = the lever), not Nagle-bound. __rdtsc + us clock, 1:1. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_ecdsa_p256_sign.nx nx_p256_sign_bench.nx

imports: nx_syscalls.nxnx_ecdsa_p256_sign.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_ecdsa_p256_sign nx_scratch_save nx_scratch_init sys_mmap ↻ _nx_ecdsa_p256_sign_impl u256_is_zero u256_alloc nx_scratch nx_scratch_init ↻ nx_scratch_oom sys_write sys_exit sys_mmap ↻ p256_modn_load_n u256_copy p256_modn_reduce nx_scratch_save ↻ u256_alloc ↻ p256_modn_load_n ↻ u256_copy ↻ u256_cmp u256_sub_with_borrow nx_scratch_restore u256_eq nx_scratch ↻ u256_store_be _ecdsa_sign_derive_k nx_scratch_save ↻ nx_scratch ↻ drbg_hmac_init _drbg_k _drbg_v _drbg_fill drbg_hmac_update _drbg_k ↻ _drbg_v ↻ sys_mmap ↻ _drbg_copy

structs

none

consts

none

functions

12func bdec(n: i64) -> i64
called by 2: msfixmain calls 2: sys_writesys_mmap
22func msfix(us: i64) -> i64
called by 1: main calls 2: bdecsys_write
30func main() -> i64