Add benchmark annotations to the tests
This will affect total running times simce some tests will be run multiple times but it allows precise becnhmarking.
This commit is contained in:
@ -154,7 +154,9 @@ void TestAStarPathfinder::testExecute()
|
||||
AStarPathfinder< RawVolume<uint8_t> > pathfinder(params);
|
||||
|
||||
//Execute the pathfinder.
|
||||
pathfinder.execute();
|
||||
QBENCHMARK {
|
||||
pathfinder.execute();
|
||||
}
|
||||
|
||||
//Make sure the right number of steps were created.
|
||||
QCOMPARE(result.size(), static_cast<size_t>(24));
|
||||
|
Reference in New Issue
Block a user