add some more RPC stress tests and audio latency tests#74
Open
xianshijing-lk wants to merge 4 commits intomainfrom
Open
add some more RPC stress tests and audio latency tests#74xianshijing-lk wants to merge 4 commits intomainfrom
xianshijing-lk wants to merge 4 commits intomainfrom
Conversation
xianshijing-lk
commented
Mar 5, 2026
| << "At least one audio latency measurement should be recorded"; | ||
| } | ||
|
|
||
| TEST_F(LatencyMeasurementTest, FullDeplexAudioLatency) { |
Collaborator
Author
There was a problem hiding this comment.
@theomonnom @ladvoc , this is the full duplex audio latency that I used to mimic the client <-> agent use cases.
participant A is client, which will be using the fast path, no buffer.
participant B is the agent, which will use the buffered path, and react to the high energy audio frames from participant A.
stephen-derosa
approved these changes
Mar 6, 2026
| MediaSubscriptionState &state_; | ||
| }; | ||
|
|
||
| void fillWebcamLikeFrame(VideoFrame &frame, std::uint64_t frame_index) { |
Contributor
There was a problem hiding this comment.
this is a lot of awesome boilerplate! Consider putting image helpers into src/tests/common/image_utils.h or similar.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To run the tests, do
./build.sh release-tests
then run
./build-release/bin/livekit_stress_tests --gtest_filter="LatencyMeasurementTest.FullDeplexAudioLatency"
./build-release/bin/livekit_stress_tests --gtest_filter="LatencyMeasurementTest.AudioLatency"
./build-release/bin/livekit_stress_tests --gtest_filter="LatencyMeasurementTest.RPC"