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 TestCubicSurfaceExtractor::testExecute()
|
||||
QCOMPARE(mesh.getNoOfIndices(), uExpectedIndices);
|
||||
QCOMPARE(mesh.getVertices()[uMaterialToCheck].getMaterial(), fNoMaterial);*/
|
||||
|
||||
testForType<MaterialDensityPair88>(mesh);
|
||||
QBENCHMARK {
|
||||
testForType<MaterialDensityPair88>(mesh);
|
||||
}
|
||||
QCOMPARE(mesh.getNoOfVertices(), uExpectedVertices);
|
||||
QCOMPARE(mesh.getNoOfIndices(), uExpectedIndices);
|
||||
QCOMPARE(mesh.getVertices()[uMaterialToCheck].getMaterial(), fExpectedMaterial);
|
||||
|
Reference in New Issue
Block a user