Skip to content

Commit

Permalink
Fix performance level test flakiness
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <[email protected]>
  • Loading branch information
Nate Koenig committed Oct 20, 2021
1 parent 0640db9 commit 38784b7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/performance/level_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ TEST(LevelManagerPerfrormance, LevelVsNoLevel)

const std::size_t iters = 5000;


// Reduce potential startup costs by running the server once before
// measuring time differences between levels and no levels.
{
serverConfig.SetUseLevels(true);
gazebo::Server server(serverConfig);
server.SetUpdatePeriod(1ns);

server.Run(true, 1, false);
}

// Server with levels
{
serverConfig.SetUseLevels(true);
Expand Down

0 comments on commit 38784b7

Please sign in to comment.