nx_comms_bench.nx
buildroot/runtime/nx_comms_bench.nx
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
imports: nx_syscalls_x86_64.nx
imported by: nobody (leaf or entry point)
structs
| 68 | struct AxisMeasurement |
| 75 | struct AxisVerdict |
| 82 | struct CommsReport |
consts
| 29 | const NX_COMMS_TELEGRAM: i64 = 0 // user's son's daily call -- highest priority |
| 30 | const NX_COMMS_WHATSAPP: i64 = 1 // global incumbent |
| 31 | const NX_COMMS_DISCORD: i64 = 2 // in-game voice; the "Phase 10" parallel |
| 32 | const NX_COMMS_ZOOM: i64 = 3 // enterprise / classroom |
| 33 | const NX_COMMS_JITSI: i64 = 4 // open-source SFU baseline |
| 34 | const NX_COMMS_SIGNAL: i64 = 5 // privacy bar |
| 35 | const NX_COMMS_WEBRTC_VANILLA: i64 = 6 // browser-native (Chrome/Firefox/Safari) |
| 36 | const NX_COMMS_FACETIME: i64 = 7 // Apple ecosystem |
| 37 | const NX_COMMS_GOOGLE_MEET: i64 = 8 // Workspace incumbent |
| 38 | const NX_COMMS_MS_TEAMS: i64 = 9 // enterprise rival to Zoom |
| 39 | const NX_COMMS_MUMBLE: i64 = 10 // legacy low-latency gaming |
| 40 | const NX_COMMS_N: i64 = 11 |
| 44 | const NX_COMMS_AXIS_UNMEASURABLE: i64 = 0 |
| 45 | const NX_COMMS_AXIS_LOSE: i64 = 1 |
| 46 | const NX_COMMS_AXIS_TIE: i64 = 2 |
| 47 | const NX_COMMS_AXIS_WIN: i64 = 3 |
| 48 | const NX_COMMS_AXIS_DECISIVE_WIN: i64 = 4 // >= 50% better |
| 49 | const NX_COMMS_AXIS_N_VERDICTS: i64 = 5 |
| 52 | const NX_COMMS_AXIS_RTT_1V1: i64 = 0 // end-to-end 1:1 RTT (ms) |
| 53 | const NX_COMMS_AXIS_VOICE_PESQ: i64 = 1 // PESQ MOS score 1-5 |
| 54 | const NX_COMMS_AXIS_VIDEO_VMAF: i64 = 2 // VMAF score 0-100 |
| 55 | const NX_COMMS_AXIS_LOSS_5PCT: i64 = 3 // PESQ at 5% packet loss |
| 56 | const NX_COMMS_AXIS_LOSS_20PCT: i64 = 4 // PESQ at 20% packet loss |
| 57 | const NX_COMMS_AXIS_CPU_PER_CALL: i64 = 5 // % of one core |
| 58 | const NX_COMMS_AXIS_MEM_PER_CALL: i64 = 6 // MB resident |
| 59 | const NX_COMMS_AXIS_STARTUP_MS: i64 = 7 // call setup latency |
| 60 | const NX_COMMS_AXIS_NAT_SUCCESS: i64 = 8 // % of NAT pairs that connect P2P |
| 61 | const NX_COMMS_AXIS_AUDIT: i64 = 9 // sealed: can you prove what was sent? |
| 62 | const NX_COMMS_AXIS_SOVEREIGNTY: i64 = 10 // % of code path you control |
| 63 | const NX_COMMS_AXIS_N: i64 = 11 |
| 66 | const NX_COMMS_DELTA_FLOOR_Q10: i64 = 10 |
functions
| 102 | func _comms_axis_verdict(m: *AxisMeasurement, v: *AxisVerdict) -> i64 called by 1: nx_comms_compute |
| 143 | func _tally_v(v: i64, r: *CommsReport) -> i64 called by 1: nx_comms_compute |
| 153 | func nx_comms_compute(report: *CommsReport) -> i64 |
| 185 | func nx_comms_axis_verdict_is_valid(v: i64) -> i64 |
| 190 | func nx_comms_competitor_is_valid(c: i64) -> i64 |