code wiki / (root) / nx_comms_bench.nx

nx_comms_bench.nx

buildroot/runtime/nx_comms_bench.nx

7669 B194 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind benchtopic comms
docsdependenciesstructsconstsfunctions

about

nx_comms_bench.nx -- head-to-head benchmark harness for real-time communications. Drives Nishi voice/video codec against every known commercial + open-source competitor. Composes with the existing nx_benchmark_harness (6-axis WIN/LOSE/ TIE) but adds comms-specific axes that the generic harness doesn't have first-class slots for. Per cardinal feedback-honest-perf-verdict-no-aspirational-claims: every LOSE row MUST be paired with a named_improvement string. Per cardinal feedback-one-percent-minimum-delta-substrate: WIN floor is 101% (1% advantage required to claim WIN). genealogy_id: rfc_6716_opus_test_vectors + itu_p862_pesq + vmaf_netflix + criterion_rs_bootstrap_ci + feedback-honest-perf-verdict-no-aspirational-claims lineage_id: nishi_comms_polyglot_bench_q10

dependencies 1 imports · 0 importers

nx_syscalls_x86_64.nx nx_comms_bench.nx

imports: nx_syscalls_x86_64.nx

imported by: nobody (leaf or entry point)

structs

68struct AxisMeasurement
75struct AxisVerdict
82struct CommsReport

consts

29const NX_COMMS_TELEGRAM: i64 = 0 // user's son's daily call -- highest priority
30const NX_COMMS_WHATSAPP: i64 = 1 // global incumbent
31const NX_COMMS_DISCORD: i64 = 2 // in-game voice; the "Phase 10" parallel
32const NX_COMMS_ZOOM: i64 = 3 // enterprise / classroom
33const NX_COMMS_JITSI: i64 = 4 // open-source SFU baseline
34const NX_COMMS_SIGNAL: i64 = 5 // privacy bar
35const NX_COMMS_WEBRTC_VANILLA: i64 = 6 // browser-native (Chrome/Firefox/Safari)
36const NX_COMMS_FACETIME: i64 = 7 // Apple ecosystem
37const NX_COMMS_GOOGLE_MEET: i64 = 8 // Workspace incumbent
38const NX_COMMS_MS_TEAMS: i64 = 9 // enterprise rival to Zoom
39const NX_COMMS_MUMBLE: i64 = 10 // legacy low-latency gaming
40const NX_COMMS_N: i64 = 11
44const NX_COMMS_AXIS_UNMEASURABLE: i64 = 0
45const NX_COMMS_AXIS_LOSE: i64 = 1
46const NX_COMMS_AXIS_TIE: i64 = 2
47const NX_COMMS_AXIS_WIN: i64 = 3
48const NX_COMMS_AXIS_DECISIVE_WIN: i64 = 4 // >= 50% better
49const NX_COMMS_AXIS_N_VERDICTS: i64 = 5
52const NX_COMMS_AXIS_RTT_1V1: i64 = 0 // end-to-end 1:1 RTT (ms)
53const NX_COMMS_AXIS_VOICE_PESQ: i64 = 1 // PESQ MOS score 1-5
54const NX_COMMS_AXIS_VIDEO_VMAF: i64 = 2 // VMAF score 0-100
55const NX_COMMS_AXIS_LOSS_5PCT: i64 = 3 // PESQ at 5% packet loss
56const NX_COMMS_AXIS_LOSS_20PCT: i64 = 4 // PESQ at 20% packet loss
57const NX_COMMS_AXIS_CPU_PER_CALL: i64 = 5 // % of one core
58const NX_COMMS_AXIS_MEM_PER_CALL: i64 = 6 // MB resident
59const NX_COMMS_AXIS_STARTUP_MS: i64 = 7 // call setup latency
60const NX_COMMS_AXIS_NAT_SUCCESS: i64 = 8 // % of NAT pairs that connect P2P
61const NX_COMMS_AXIS_AUDIT: i64 = 9 // sealed: can you prove what was sent?
62const NX_COMMS_AXIS_SOVEREIGNTY: i64 = 10 // % of code path you control
63const NX_COMMS_AXIS_N: i64 = 11
66const NX_COMMS_DELTA_FLOOR_Q10: i64 = 10

functions

102func _comms_axis_verdict(m: *AxisMeasurement, v: *AxisVerdict) -> i64
called by 1: nx_comms_compute
143func _tally_v(v: i64, r: *CommsReport) -> i64
called by 1: nx_comms_compute
153func nx_comms_compute(report: *CommsReport) -> i64
185func nx_comms_axis_verdict_is_valid(v: i64) -> i64
190func nx_comms_competitor_is_valid(c: i64) -> i64