added WebRTC-QuickPerfTest to RampUpTests and CallPerfTests
BUG=webrtc:7153 Review-Url: https://codereview.webrtc.org/2708723002 Cr-Commit-Position: refs/heads/master@{#16743}
This commit is contained in:
@ -12,15 +12,20 @@
|
||||
#include "webrtc/test/gtest.h"
|
||||
#include "webrtc/test/testsupport/perf_test.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
#include "webrtc/system_wrappers/include/field_trial.h"
|
||||
|
||||
// Runs a test with 10% packet losses and 10% clock drift, to exercise
|
||||
// both loss concealment and time-stretching code.
|
||||
TEST(NetEqPerformanceTest, Run) {
|
||||
const int kSimulationTimeMs = 10000000;
|
||||
const int kQuickSimulationTimeMs = 100000;
|
||||
const int kLossPeriod = 10; // Drop every 10th packet.
|
||||
const double kDriftFactor = 0.1;
|
||||
int64_t runtime = webrtc::test::NetEqPerformanceTest::Run(
|
||||
kSimulationTimeMs, kLossPeriod, kDriftFactor);
|
||||
webrtc::field_trial::FindFullName("WebRTC-QuickPerfTest") == "Enabled"
|
||||
? kQuickSimulationTimeMs
|
||||
: kSimulationTimeMs,
|
||||
kLossPeriod, kDriftFactor);
|
||||
ASSERT_GT(runtime, 0);
|
||||
webrtc::test::PrintResult(
|
||||
"neteq_performance", "", "10_pl_10_drift", runtime, "ms", true);
|
||||
@ -31,10 +36,14 @@ TEST(NetEqPerformanceTest, Run) {
|
||||
// more lightweight.
|
||||
TEST(NetEqPerformanceTest, RunClean) {
|
||||
const int kSimulationTimeMs = 10000000;
|
||||
const int kQuickSimulationTimeMs = 100000;
|
||||
const int kLossPeriod = 0; // No losses.
|
||||
const double kDriftFactor = 0.0; // No clock drift.
|
||||
int64_t runtime = webrtc::test::NetEqPerformanceTest::Run(
|
||||
kSimulationTimeMs, kLossPeriod, kDriftFactor);
|
||||
webrtc::field_trial::FindFullName("WebRTC-QuickPerfTest") == "Enabled"
|
||||
? kQuickSimulationTimeMs
|
||||
: kSimulationTimeMs,
|
||||
kLossPeriod, kDriftFactor);
|
||||
ASSERT_GT(runtime, 0);
|
||||
webrtc::test::PrintResult(
|
||||
"neteq_performance", "", "0_pl_0_drift", runtime, "ms", true);
|
||||
|
||||
Reference in New Issue
Block a user