Skip to content

Commit

Permalink
Cherry pick PR #1745: Increase SbMediaConfigurationTest perf requirem…
Browse files Browse the repository at this point in the history
…ent (#1848)

Refer to the original PR: #1745

b/284140486

Co-authored-by: Jason <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and jasonzhangxx authored Oct 25, 2023
1 parent 39047c9 commit 2430367
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions starboard/nplb/media_configuration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ TEST(SbMediaConfigurationTest, ValidatePerformance) {
const int count_audio_output = SbMediaGetAudioOutputCount();
for (int i = 0; i < count_audio_output; ++i) {
constexpr int kNumberOfCalls = 100;
// TODO(b/284140486): Optimize SbMediaGetAudioConfiguration() to reduce the
// time it takes to less than 0.5 milliseconds.
constexpr SbTime kMaxAverageTimePerCall = 3 * kSbTimeMillisecond;
constexpr SbTime kMaxAverageTimePerCall = 500;

SbMediaAudioConfiguration configuration;
TEST_PERF_FUNCWITHARGS_EXPLICIT(kNumberOfCalls, kMaxAverageTimePerCall,
Expand Down

0 comments on commit 2430367

Please sign in to comment.