|
|
|
@ -289,7 +289,7 @@ namespace UnitTest
|
|
|
|
tag = randomGenerator.GetRandom();
|
|
|
|
tag = randomGenerator.GetRandom();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for (auto _ : state)
|
|
|
|
for ([[maybe_unused]] auto _ : state)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// We'll benchmark this two ways:
|
|
|
|
// We'll benchmark this two ways:
|
|
|
|
// 1. We clear each time, which means each AddSurfaceWeightIfGreater call will search the whole list then add.
|
|
|
|
// 1. We clear each time, which means each AddSurfaceWeightIfGreater call will search the whole list then add.
|
|
|
|
@ -340,7 +340,7 @@ namespace UnitTest
|
|
|
|
comparisonTags.emplace_back(tag ^ 0x01);
|
|
|
|
comparisonTags.emplace_back(tag ^ 0x01);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for (auto _ : state)
|
|
|
|
for ([[maybe_unused]] auto _ : state)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Test to see if any of our tags match.
|
|
|
|
// Test to see if any of our tags match.
|
|
|
|
// All of comparison tags should get compared against all of the added tags.
|
|
|
|
// All of comparison tags should get compared against all of the added tags.
|
|
|
|
|