Measured latency
Every figure here comes from a doc in the repo at v0.1.0, measured on one test rig. The rig and its limits are named on every chart.
RTX 4080 · RX 6700 XT · UHD 770 · M5 Pro · 2.5GbE LAN
On this page
- NVENC p50 · 1080p240 split
- 1.04ms
- First slice p50 · 8 slices
- 0.70ms
- E2E p50 · present → decoded
- 3.08ms
- Go allocs per datagram · raw AEAD UDP bench
- 0
Test rig
| Role | Hardware |
|---|---|
| Host, bigboi | Windows 11, Intel i9-13900K. RTX 4080 with no display, in a PCIe x4 slot. RX 6700 XT driving the only monitor (1920×1080 at 60 Hz). Intel UHD 770. |
| Client, M5 Pro | macOS 27.0, Apple M5 Pro. 5120×1440 display at 120 Hz. |
| Network | Wired 2.5GbE between the two. The Mac's Wi-Fi 6 and a direct Tailscale path were also measured. |
| Drivers | NVIDIA 616.92 with NVENC API 13.1, AMF 1.4.37, oneVPL API 2.8. |
The Mac was busy while it measured (load average 11 to 13 in Phase 1, 6 to 15 in Phase 2), which inflates client p95 and p99.
Encoder latency
Rig bigboi: i9-13900K, RTX 4080 (no display, PCIe x4), RX 6700 XT (driving the only monitor, 1080p60), UHD 770 · Client M5 Pro, macOS 27.0 · Mode 1,200 frames on NVENC, 600 on VideoToolbox; back-to-back = submit as fast as frames finish (GPU boosts), paced = submit at frame rate (GPU stays in P8) ·Driver NVIDIA 616.92 / NVENC API 13.1, AMF 1.4.37 · Sourcedocs/spikes/phase0-spike2.md lines 71–89, 163–169, 184–194 · Commitv0.1.0 (8a3c732). Intel oneVPL encode latency is not measured anywhere in the repo; the UHD 770 row is intentionally empty.
| Encoder | Part | Format | Mode | p50ms | p95 | p99 |
|---|---|---|---|---|---|---|
| NVENC | RTX 4080 | NV12 from BGRA | back-to-back | 1.41 | 1.51 | 1.69 |
| NVENC | RTX 4080 | NV12 from BGRA | paced | 2.95 | 7.36 | 70.6 |
| NVENC | RTX 4080 | P010 (10-bit) | back-to-back | 1.34 | 1.46 | 1.58 |
| NVENC | RTX 4080 | P010 (10-bit) | paced | 2.95 | 6.98 | 12.1 |
| NVENC | RTX 4080 | 4:4:4 from BGRA | paced | 4.26 | 6.24 | 15.5 |
| AMF | RX 6700 XT | NV12 from BGRA | paced | 2.78 | 3.20 | 5.61 |
| AMF | RX 6700 XT | P010 (10-bit) | paced | 2.64 | 4.86 | 11.4 |
| oneVPL | UHD 770 | any | not measured | — | — | — |
| VideoToolbox | M5 Pro | NV12 from BGRA | paced | 5.05 | 5.35 | 5.58 |
| VideoToolbox | M5 Pro | P010 from x420 | paced | 5.27 | 5.52 | 5.71 |
Slices and split encode
Block A Phase 0 spike 2, bigboi RTX 4080, 1080p240 HEVC NV12 from BGRA, back-to-back(GPU boosted) · Source docs/spikes/phase0-spike2.md lines 94–103. Block BPhase 2 host encode, synthetic LAN · Source docs/perf/phase2-results.md lines 22–27. These are two different harnesses: A's 1-slice p50 (1.41 ms) and B's 1-slice base p50 (1.36 ms) are not the same test and must not be compared directly. Split encode costs about a third larger frames at p50 and up to 75% at p95 (docs/perf/phase2-results.md:50).Commit v0.1.0 (8a3c732).
| Config | Mode | Encode p50 / p95 / p99ms | First slice p50 / p99 |
|---|---|---|---|
| 1 slice | async event | 1.41 / 5.45 / 7.98 | — |
| 4 slices | async event | 1.45 / 2.01 / 3.95 | — |
| 4 slices | sub-frame poll | 1.44 / 1.64 / 1.91 | 0.78 / 1.13 |
| 8 slices | sub-frame poll, split off | 1.51 / 1.76 / 1.96 | 0.70 / 1.14 |
| Config | Base p50 / p95 / p99ms | New p50 / p95 / p99 |
|---|---|---|
| 1080p120, 1 slice | 1.44 / 1.75 / 1.83 | 1.44 / 1.75 / 1.82 |
| 1440p120, 1 slice, split | 2.20 / 2.56 / 2.65 | 1.51 / 1.67 / 1.76 |
| 1080p240, 1 slice, split | 1.36 / 1.55 / 1.61 | 1.04 / 1.11 / 1.16 |
| 1080p120, 4 slices sub-frame | 1.43 / 1.73 / 1.79 | 1.47 / 1.80 / 1.90 |
Pipeline stages
Encode / E2E Phase 2 host encode, synthetic LAN, 1080p120 HEVC, 4 sub-frame slices (docs/perf/phase2-results.md:22–27) · First slice Phase 1 audit, 1080p120 4 slices sub-frame, 796 µs p50 (docs/perf/phase1-latency-audit.md:34–46) · Seal + FEC + sendloopback session benchmark, synthetic 78 KB frames, 72 datagrams, 0% loss, mean 0.74 ms/frame, bigboi (pkg/transport/session_test.go:517, phase1-latency-audit.md:121–132) · Network spike 3, median net p50 across 12 wired transport configs, 1100–1360 B shards (docs/spikes/spike3-transport/RESULTS.md:10) · Decode Phase 1 audit, in-session VideoToolbox decode p50 on the M5 Pro, 1080p120 4 slices sub-frame, 1110 µs (phase1-latency-audit.md:38); standalone VideoToolbox HEVC decode 0.87 ms (phase0-spike2.md:184–194) · Present submit-to-on-screen p50 in a composited 120 Hz CAMetalLayer window, 10.296 ms at 120 fps submit (phase1-latency-audit.md:104–107); Phase 2 re-states 8–10 ms and did not change it. Glass-to-glass with the GUI client presenting a live stream has never been measured (phase1-latency-audit.md:200,phase2-results.md:41). Mac load average 6–15 during Phase 2, which inflates client p95/p99. macOS direct-to-display (P1b) is not done. Commit v0.1.0 (8a3c732).
| Stage | Where | Latencyms · p50 unless noted | Source |
|---|---|---|---|
| Capture → encode | Host, NVENC · Phase 2, 4 slices sub-frame | 1.47 | docs/perf/phase2-results.md:22–27 |
| First slice ready | Host, NVENC · Phase 1, 4 slices sub-frame | 0.80 | docs/perf/phase1-latency-audit.md:34–46 |
| Seal + RS FEC + send | Host · loopback session benchmark, synthetic 78 KB frames; mean per frame, not p50 | 0.74 (mean) | docs/perf/phase1-latency-audit.md:121–132 |
| Network | 2.5GbE LAN · spike 3, median across 12 transport configs | 1.28 | docs/spikes/spike3-transport/RESULTS.md:10 |
| Decode, in session | Client, M5 Pro · Phase 1, 4 slices sub-frame | 1.11 | docs/perf/phase1-latency-audit.md:38 |
| Decode, standalone | Client, M5 Pro · Phase 0 spike 2 | 0.87 | docs/spikes/phase0-spike2.md:184–194 |
| E2E, present → decoded | Host to client · Phase 2, 4 slices sub-frame | 3.08 | docs/perf/phase2-results.md:22–27 |
| Submit → on screen | Client, 120 Hz window | 8 – 10.3 | docs/perf/phase1-latency-audit.md:104–107 |
Transport paths
Rig bigboi (Windows 11) → M5 Pro (macOS 27.0) · Wired Thunderbolt 2.5GbE; the Wi-Fi 6 figures measure the Mac's Wi-Fi downlink · Mode raw AEAD UDP burst, 1100-byte shards on the wired and Tailscale comparison at 100 Mbps, 1360-byte shards on the congestion-control matrix that gives the Wi-Fi range, no induced loss · Tailscale direct WireGuard only: DERP relay was never measured · Source docs/spikes/spike3-transport/RESULTS.md lines 10, 20–27, 55, 73–110 · Commit v0.1.0 (8a3c732). Repo guidance: prefer direct UDP; treat Tailscale as a fallback at a lower ceiling (RESULTS.md:29).
- Raw AEAD UDP · median net p50
- 1.28ms
- quic-go datagrams · median net p50
- 1.75ms
| Path | BitrateMbps | Net p50ms | Net p99 | Min RTT | Bytes/packet |
|---|---|---|---|---|---|
| Wired 2.5GbE | 50 | 0.69 | 11.7 | 0.18–0.25 | 1173 |
| Wired 2.5GbE | 100 | 0.99 | 7.3 | 0.18–0.25 | 1173 |
| Wired 2.5GbE | 150 | 1.30 | 5.3 | 0.18–0.25 | 1173 |
| Tailscale direct | 50 | 0.97 | 11.1 | 0.33–0.40 | 1233 |
| Tailscale direct | 100 | 3.15 | 23.4 | 0.33–0.40 | 1233 |
| Tailscale direct | 150 | 1.53 | 20.8 | 0.33–0.40 | 1233 |
| Wi-Fi 6 | — | 4.4–8.4 | — | — | — |
Forward error correction
| Condition | Parity | Frames delivered |
|---|---|---|
| 1% loss | none | 64–70% |
| 1% loss | 20% | 100% |
| 5% loss, per-slice blocks | adaptive, chose 39.6% | 99.8–99.9% |
| Clean link | adaptive, 2.6–10% | — |
Input latency
Input travels one way, from the client's timestamp to the host's handler. At 1080p120 on the LAN, Phase 2 measured 174 µs p50, 357 µs p95 and 815 µs p99; with real AMF capture at 60 Hz, 227 µs p50 and 406 µs p99 (bigboi to M5 Pro, docs/perf/phase2-results.md:33–39).
Reproduce
Encoder numbers come from the Phase 0 spike, built from the repo:
CGO_ENABLED=0 go build -o planck-spike2 ./cmd/planck-spike2
# Windows
planck-spike2 vendors
planck-spike2 nvenc -matrix -frames 1200 # paced
planck-spike2 nvenc -matrix -frames 1200 -pace=false # back-to-back
planck-spike2 amf -frames 600
# macOS
planck-spike2 vt -frames 600
planck-spike2 sck -soak 60sTransport numbers come from the spike 3 sender and receiver:
# client (Mac)
CGO_ENABLED=0 go build -o spike-transport ./cmd/spike-transport
./spike-transport recv -listen 0.0.0.0:47998 -media-port 47999
# host (Windows)
CGO_ENABLED=0 go build -o spike-transport.exe ./cmd/spike-transport
./spike-transport.exe send -server <client-ip>:47998 -ts-server <tailnet-ip>:47998 -matrix cc,ts,fec -out wired.jsonLive tests are skipped unless their variable is set. They need a GPU, and never capture the screen or inject input:
# stream the synthetic pattern through this machine's encoder and decoder
PLANCK_LIVE_VIDEO_TEST=1 PLANCK_LIVE_ADAPTER=NVIDIA PLANCK_LIVE_FPS=120 PLANCK_LIVE_SECONDS=4 \
go test -run TestLiveSynthHardware -v ./internal/session
# per-frame stage traces, summarised by cmd/planck-trace
PLANCK_TRACE_HOST=host.csv planck-host -synth
PLANCK_TRACE_CLIENT=client.csv planck-client -headless -connect host:47701 -duration 20sOn Windows, PLANCK_TIMER_REPORT=1 go test -run TimerJitterReport -v ./pkg/transportreports wait accuracy. The headless client prints a JSON summary of any session with-headless -json; see client flags.