Skip to content

Commit d2cc3f8

Browse files
committed
test: benchmark steady state webrtc fps
1 parent c832ffe commit d2cc3f8

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ jobs:
277277
SIMDECK_E2E_MIN_PRESENTED_FPS: "55"
278278
SIMDECK_E2E_MIN_RECEIVED_FPS: "55"
279279
SIMDECK_E2E_WEBRTC_MS: "20000"
280+
SIMDECK_INTEGRATION_DEVICE_TYPE: iPhone SE (3rd generation)
280281

281282
integration-android:
282283
name: Android emulator integration

scripts/e2e-webrtc-reliability.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const maxPeerDisconnectedMs = Number(
3131
const streamReadyTimeoutMs = Number(
3232
process.env.SIMDECK_E2E_STREAM_READY_MS ?? 90_000,
3333
);
34+
const warmupMs = Number(process.env.SIMDECK_E2E_WARMUP_MS ?? 0);
3435
const maxDecoderDrops = Number(process.env.SIMDECK_E2E_MAX_DECODER_DROPS ?? 0);
3536
const minVideoWidth = Number(process.env.SIMDECK_E2E_MIN_VIDEO_WIDTH ?? 0);
3637
const minVideoHeight = Number(process.env.SIMDECK_E2E_MIN_VIDEO_HEIGHT ?? 0);
@@ -515,6 +516,10 @@ try {
515516
);
516517
}
517518

519+
if (warmupMs > 0) {
520+
await sleep(warmupMs);
521+
}
522+
518523
const initialMetrics = await fetchJson(endpoint("/api/metrics"));
519524
const initialStreams = findClientStreams(initialMetrics, clientId);
520525
const initialPage = latestByKind(initialStreams, "page") ?? {};
@@ -758,6 +763,7 @@ try {
758763
maxPeerDisconnectedObservedMs,
759764
maxInteractionLatencyMs,
760765
maxDecoderDrops,
766+
warmupMs,
761767
interactionsEnabled,
762768
visualSamplesEnabled,
763769
interactionLatencies,

scripts/integration/webrtc.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ async function main() {
127127
SIMDECK_E2E_STREAM_READY_MS:
128128
process.env.SIMDECK_E2E_STREAM_READY_MS ?? "180000",
129129
SIMDECK_E2E_VISUAL_SAMPLE_INTERVAL_MS: "0",
130+
SIMDECK_E2E_WARMUP_MS: process.env.SIMDECK_E2E_WARMUP_MS ?? "2000",
130131
},
131132
);
132133
}

0 commit comments

Comments
 (0)