Mark benchmark state variables in for loops as unused in benchmarks
Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
@@ -2537,7 +2537,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::string test1{ "foo bar"};
|
||||
AZStd::string test2{ "bar foo" };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
SwapStringViaPointerSizedSwaps(test1, test2);
|
||||
}
|
||||
@@ -2547,7 +2547,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::string test1{ "The brown quick wolf jumped over the hyperactive cat" };
|
||||
AZStd::string test2{ "The quick brown fox jumped over the lazy dog" };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
SwapStringViaPointerSizedSwaps(test1, test2);
|
||||
}
|
||||
@@ -2557,7 +2557,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::string test1{ "foo bar" };
|
||||
AZStd::string test2{ "bar foo" };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
SwapStringViaMemcpy(test1, test2);
|
||||
}
|
||||
@@ -2567,7 +2567,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::string test1{ "The brown quick wolf jumped over the hyperactive cat" };
|
||||
AZStd::string test2{ "The quick brown fox jumped over the lazy dog" };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
SwapStringViaMemcpy(test1, test2);
|
||||
}
|
||||
@@ -2584,7 +2584,7 @@ namespace Benchmark
|
||||
AZStd::string sourceString(state.range(0), 'a');
|
||||
const char* sourceAddress = sourceString.c_str();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::string assignString;
|
||||
assignString.assign(sourceAddress);
|
||||
@@ -2600,7 +2600,7 @@ namespace Benchmark
|
||||
const char* sourceAddress = sourceString.c_str();
|
||||
const size_t sourceSize = sourceString.size();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::string assignString;
|
||||
assignString.assign(sourceAddress, sourceSize);
|
||||
@@ -2616,7 +2616,7 @@ namespace Benchmark
|
||||
auto sourceBegin = sourceString.begin();
|
||||
auto sourceEnd = sourceString.end();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::string assignString;
|
||||
assignString.assign(sourceBegin, sourceEnd);
|
||||
@@ -2631,7 +2631,7 @@ namespace Benchmark
|
||||
AZStd::string sourceString(state.range(0), 'a');
|
||||
AZStd::string_view sourceView(sourceString);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::string assignString;
|
||||
assignString.assign(sourceView);
|
||||
@@ -2645,7 +2645,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::string sourceString(state.range(0), 'a');
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::string assignString;
|
||||
assignString.assign(sourceString);
|
||||
@@ -2659,7 +2659,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::string sourceString(state.range(0), 'a');
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::string assignString;
|
||||
assignString.assign(AZStd::move(sourceString));
|
||||
@@ -2671,7 +2671,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_TEMPLATE_DEFINE_F(StringTemplateBenchmarkFixture, BM_StringAssignFromSingleCharacter, AZStd::string)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::string assignString;
|
||||
assignString.assign(state.range(0), 'a');
|
||||
@@ -2689,7 +2689,7 @@ namespace Benchmark
|
||||
AZStd::fixed_string<1024> sourceString(state.range(0), 'a');
|
||||
const char* sourceAddress = sourceString.c_str();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::fixed_string<1024> assignString;
|
||||
assignString.assign(sourceAddress);
|
||||
@@ -2705,7 +2705,7 @@ namespace Benchmark
|
||||
const char* sourceAddress = sourceString.c_str();
|
||||
const size_t sourceSize = sourceString.size();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::fixed_string<1024> assignString;
|
||||
assignString.assign(sourceAddress, sourceSize);
|
||||
@@ -2721,7 +2721,7 @@ namespace Benchmark
|
||||
auto sourceBegin = sourceString.begin();
|
||||
auto sourceEnd = sourceString.end();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::fixed_string<1024> assignString;
|
||||
assignString.assign(sourceBegin, sourceEnd);
|
||||
@@ -2736,7 +2736,7 @@ namespace Benchmark
|
||||
AZStd::fixed_string<1024> sourceString(state.range(0), 'a');
|
||||
AZStd::string_view sourceView(sourceString);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::fixed_string<1024> assignString;
|
||||
assignString.assign(sourceView);
|
||||
@@ -2750,7 +2750,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::fixed_string<1024> sourceString(state.range(0), 'a');
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::fixed_string<1024> assignString;
|
||||
assignString.assign(sourceString);
|
||||
@@ -2764,7 +2764,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::fixed_string<1024> sourceString(state.range(0), 'a');
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::fixed_string<1024> assignString;
|
||||
assignString.assign(AZStd::move(sourceString));
|
||||
@@ -2776,7 +2776,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_TEMPLATE_DEFINE_F(StringTemplateBenchmarkFixture, BM_FixedStringAssignFromSingleCharacter, AZStd::fixed_string<1024>)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::fixed_string<1024> assignString;
|
||||
assignString.assign(state.range(0), 'a');
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace AZ::Dom::Benchmark
|
||||
AZ::Dom::JsonBackend backend;
|
||||
AZStd::string serializedPayload = GenerateDomJsonBenchmarkPayload(state.range(0), state.range(1));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
AZStd::string payloadCopy = serializedPayload;
|
||||
@@ -53,7 +53,7 @@ namespace AZ::Dom::Benchmark
|
||||
AZ::Dom::JsonBackend backend;
|
||||
AZStd::string serializedPayload = GenerateDomJsonBenchmarkPayload(state.range(0), state.range(1));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
AZStd::string payloadCopy = serializedPayload;
|
||||
@@ -77,7 +77,7 @@ namespace AZ::Dom::Benchmark
|
||||
AZ::Dom::JsonBackend backend;
|
||||
AZStd::string serializedPayload = GenerateDomJsonBenchmarkPayload(state.range(0), state.range(1));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
auto result = AZ::Dom::Json::WriteToRapidJsonDocument(
|
||||
[&](AZ::Dom::Visitor& visitor)
|
||||
@@ -97,7 +97,7 @@ namespace AZ::Dom::Benchmark
|
||||
AZ::Dom::JsonBackend backend;
|
||||
AZStd::string serializedPayload = GenerateDomJsonBenchmarkPayload(state.range(0), state.range(1));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
auto result = AZ::Dom::Utils::WriteToValue(
|
||||
[&](AZ::Dom::Visitor& visitor)
|
||||
@@ -117,7 +117,7 @@ namespace AZ::Dom::Benchmark
|
||||
AZ::Dom::JsonBackend backend;
|
||||
AZStd::string serializedPayload = GenerateDomJsonBenchmarkPayload(state.range(0), state.range(1));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
auto result = AZ::JsonSerializationUtils::ReadJsonString(serializedPayload);
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace AZ::Dom::Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(DomJsonBenchmark, RapidjsonMakeComplexObject)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
TakeAndDiscardWithoutTimingDtor(GenerateDomJsonBenchmarkPayload(state.range(0), state.range(1)), state);
|
||||
}
|
||||
@@ -152,7 +152,7 @@ namespace AZ::Dom::Benchmark
|
||||
document.GetAllocator());
|
||||
}
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (const AZStd::string& key : keys)
|
||||
{
|
||||
@@ -168,7 +168,7 @@ namespace AZ::Dom::Benchmark
|
||||
{
|
||||
rapidjson::Document original = GenerateDomJsonBenchmarkDocument(state.range(0), state.range(1));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
rapidjson::Document copy;
|
||||
copy.CopyFrom(original, copy.GetAllocator(), true);
|
||||
@@ -184,7 +184,7 @@ namespace AZ::Dom::Benchmark
|
||||
{
|
||||
rapidjson::Document original = GenerateDomJsonBenchmarkDocument(state.range(0), state.range(1));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
rapidjson::Document copy;
|
||||
copy.CopyFrom(original, copy.GetAllocator(), true);
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace AZ::Dom::Benchmark
|
||||
PathEntry end;
|
||||
end.SetEndOfArray();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
Path p;
|
||||
p /= entry1;
|
||||
@@ -40,7 +40,7 @@ namespace AZ::Dom::Benchmark
|
||||
PathEntry end;
|
||||
end.SetEndOfArray();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
Path p = Path() / entry1 / entry2 / 0 / end;
|
||||
}
|
||||
@@ -55,7 +55,7 @@ namespace AZ::Dom::Benchmark
|
||||
AZStd::string s;
|
||||
s.resize_no_construct(p.GetStringLength());
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
p.GetStringLength();
|
||||
p.FormatString(s.data(), s.size());
|
||||
@@ -69,7 +69,7 @@ namespace AZ::Dom::Benchmark
|
||||
{
|
||||
AZStd::string pathString = "/path/with/multiple/0/different/components/including-long-strings-like-this/65536/999/-";
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
Path p(pathString);
|
||||
benchmark::DoNotOptimize(p);
|
||||
@@ -86,7 +86,7 @@ namespace AZ::Dom::Benchmark
|
||||
PathEntry endOfArray;
|
||||
endOfArray.SetEndOfArray();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
name.IsEndOfArray();
|
||||
index.IsEndOfArray();
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace AZ::Dom::Benchmark
|
||||
Value doubleValue(4.0);
|
||||
Value stringValue("foo", true);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
(intValue.GetType());
|
||||
(boolValue.GetType());
|
||||
@@ -118,7 +118,7 @@ namespace AZ::Dom::Benchmark
|
||||
value.GetInternalValue());
|
||||
};
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
(getTypeViaVisit(intValue));
|
||||
(getTypeViaVisit(boolValue));
|
||||
@@ -136,7 +136,7 @@ namespace AZ::Dom::Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(DomValueBenchmark, AzDomValueMakeComplexObject)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
TakeAndDiscardWithoutTimingDtor(GenerateDomBenchmarkPayload(state.range(0), state.range(1)), state);
|
||||
}
|
||||
@@ -149,7 +149,7 @@ namespace AZ::Dom::Benchmark
|
||||
{
|
||||
Value original = GenerateDomBenchmarkPayload(state.range(0), state.range(1));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
Value copy = original;
|
||||
benchmark::DoNotOptimize(copy);
|
||||
@@ -163,7 +163,7 @@ namespace AZ::Dom::Benchmark
|
||||
{
|
||||
Value original = GenerateDomBenchmarkPayload(state.range(0), state.range(1));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
Value copy = original;
|
||||
copy["entries"]["Key0"].ArrayPushBack(Value(42));
|
||||
@@ -178,7 +178,7 @@ namespace AZ::Dom::Benchmark
|
||||
{
|
||||
Value original = GenerateDomBenchmarkPayload(state.range(0), state.range(1));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
Value copy = Utils::DeepCopy(original);
|
||||
TakeAndDiscardWithoutTimingDtor(AZStd::move(copy), state);
|
||||
@@ -199,7 +199,7 @@ namespace AZ::Dom::Benchmark
|
||||
value[key] = i;
|
||||
}
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (const AZ::Name& key : keys)
|
||||
{
|
||||
@@ -222,7 +222,7 @@ namespace AZ::Dom::Benchmark
|
||||
value[key] = i;
|
||||
}
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (const AZStd::string& key : keys)
|
||||
{
|
||||
@@ -245,7 +245,7 @@ namespace AZ::Dom::Benchmark
|
||||
value[key] = i;
|
||||
}
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (const AZStd::string& key : keys)
|
||||
{
|
||||
|
||||
@@ -966,7 +966,7 @@ namespace Benchmark
|
||||
BENCHMARK_F(PathBenchmarkFixture, BM_PathAppendFixedPath)(benchmark::State& state)
|
||||
{
|
||||
AZ::IO::FixedMaxPath m_testPath{ "." };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (const auto& appendPath : m_appendPaths)
|
||||
{
|
||||
@@ -977,7 +977,7 @@ namespace Benchmark
|
||||
BENCHMARK_F(PathBenchmarkFixture, BM_PathAppendAllocatingPath)(benchmark::State& state)
|
||||
{
|
||||
AZ::IO::Path m_testPath{ "." };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (const auto& appendPath : m_appendPaths)
|
||||
{
|
||||
@@ -989,7 +989,7 @@ namespace Benchmark
|
||||
BENCHMARK_F(PathBenchmarkFixture, BM_StringFuncPathJoinFixedString)(benchmark::State& state)
|
||||
{
|
||||
AZStd::string m_testPath{ "." };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (const auto& appendPath : m_appendPaths)
|
||||
{
|
||||
@@ -1000,7 +1000,7 @@ namespace Benchmark
|
||||
BENCHMARK_F(PathBenchmarkFixture, BM_StringFuncPathJoinAZStdString)(benchmark::State& state)
|
||||
{
|
||||
AZStd::string m_testPath{ "." };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (const auto& appendPath : m_appendPaths)
|
||||
{
|
||||
|
||||
@@ -1741,7 +1741,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunSmallNumberOfLightWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithDefaultPriority(SMALL_NUMBER_OF_JOBS, LIGHT_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1749,7 +1749,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunMediumNumberOfLightWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithDefaultPriority(MEDIUM_NUMBER_OF_JOBS, LIGHT_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1757,7 +1757,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunLargeNumberOfLightWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithDefaultPriority(LARGE_NUMBER_OF_JOBS, LIGHT_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1765,7 +1765,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunSmallNumberOfMediumWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithDefaultPriority(SMALL_NUMBER_OF_JOBS, MEDIUM_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1773,7 +1773,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunMediumNumberOfMediumWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithDefaultPriority(MEDIUM_NUMBER_OF_JOBS, MEDIUM_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1781,7 +1781,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunLargeNumberOfMediumWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithDefaultPriority(LARGE_NUMBER_OF_JOBS, MEDIUM_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1789,7 +1789,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunSmallNumberOfHeavyWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithDefaultPriority(SMALL_NUMBER_OF_JOBS, HEAVY_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1797,7 +1797,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunMediumNumberOfHeavyWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithDefaultPriority(MEDIUM_NUMBER_OF_JOBS, HEAVY_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1805,7 +1805,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunLargeNumberOfHeavyWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithDefaultPriority(LARGE_NUMBER_OF_JOBS, HEAVY_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1813,7 +1813,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunSmallNumberOfRandomWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomDepthAndDefaultPriority(SMALL_NUMBER_OF_JOBS);
|
||||
}
|
||||
@@ -1821,7 +1821,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunMediumNumberOfRandomWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomDepthAndDefaultPriority(MEDIUM_NUMBER_OF_JOBS);
|
||||
}
|
||||
@@ -1829,7 +1829,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunLargeNumberOfRandomWeightJobsWithDefaultPriority)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomDepthAndDefaultPriority(LARGE_NUMBER_OF_JOBS);
|
||||
}
|
||||
@@ -1837,7 +1837,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunSmallNumberOfLightWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomPriority(SMALL_NUMBER_OF_JOBS, LIGHT_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1845,7 +1845,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunMediumNumberOfLightWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomPriority(MEDIUM_NUMBER_OF_JOBS, LIGHT_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1853,7 +1853,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunLargeNumberOfLightWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomPriority(LARGE_NUMBER_OF_JOBS, LIGHT_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1861,7 +1861,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunSmallNumberOfMediumWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomPriority(SMALL_NUMBER_OF_JOBS, MEDIUM_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1869,7 +1869,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunMediumNumberOfMediumWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomPriority(MEDIUM_NUMBER_OF_JOBS, MEDIUM_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1877,7 +1877,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunLargeNumberOfMediumWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomPriority(LARGE_NUMBER_OF_JOBS, MEDIUM_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1885,7 +1885,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunSmallNumberOfHeavyWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomPriority(SMALL_NUMBER_OF_JOBS, HEAVY_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1893,7 +1893,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunMediumNumberOfHeavyWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomPriority(MEDIUM_NUMBER_OF_JOBS, HEAVY_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1901,7 +1901,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunLargeNumberOfHeavyWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomPriority(LARGE_NUMBER_OF_JOBS, HEAVY_WEIGHT_JOB_CALCULATE_PI_DEPTH);
|
||||
}
|
||||
@@ -1909,7 +1909,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunSmallNumberOfRandomWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomDepthAndRandomPriority(SMALL_NUMBER_OF_JOBS);
|
||||
}
|
||||
@@ -1917,7 +1917,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunMediumNumberOfRandomWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomDepthAndRandomPriority(MEDIUM_NUMBER_OF_JOBS);
|
||||
}
|
||||
@@ -1925,7 +1925,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(JobBenchmarkFixture, RunLargeNumberOfRandomWeightJobsWithRandomPriorities)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
RunMultipleCalculatePiJobsWithRandomDepthAndRandomPriority(LARGE_NUMBER_OF_JOBS);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace Benchmark
|
||||
{
|
||||
// Runtime performance is not actually being measured by this test.
|
||||
// This function only exist to calculate AZ::Crc32 values at compile time
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
[[maybe_unused]] constexpr auto resultArray = Crc32Internal::GenerateTestCrc32Values();
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathFrustum, SphereIntersect)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& data : m_dataArray)
|
||||
{
|
||||
@@ -75,7 +75,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathFrustum, AabbIntersect)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& data : m_dataArray)
|
||||
{
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateIdentity)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateZero)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetRowX3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -108,7 +108,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetColumnX3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -124,7 +124,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateFromValue)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -136,7 +136,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateFromRowMajorFloat9)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -148,7 +148,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateFromColumnMajorFloat9)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -162,7 +162,7 @@ namespace Benchmark
|
||||
{
|
||||
float storeValues[9];
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -176,7 +176,7 @@ namespace Benchmark
|
||||
{
|
||||
float storeValues[9];
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -188,7 +188,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateRotationX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -200,7 +200,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateRotationY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -212,7 +212,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateRotationZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -224,7 +224,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateFromTransform)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -236,7 +236,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateFromMatrix4x4)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -248,7 +248,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateFromQuaternion)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -260,7 +260,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -272,7 +272,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateDiagonal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -284,7 +284,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, CreateCrossProduct)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -296,7 +296,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetElement)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -308,7 +308,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, SetElement)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -321,7 +321,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, SetRowX3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -336,7 +336,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, SetColumnX3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -351,7 +351,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetBasisX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -363,7 +363,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetBasisY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -375,7 +375,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetBasisZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -387,7 +387,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, OperatorAssign)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -399,7 +399,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, OperatorMultiply)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -411,7 +411,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, TransposedMultiply)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -423,7 +423,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, MultiplyVector)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -435,7 +435,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, OperatorSum)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -447,7 +447,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, OperatorDifference)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -459,7 +459,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, OperatorMultiplyScalar)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -471,7 +471,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, OperatorDivideScalar)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -483,7 +483,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, Transpose)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -494,7 +494,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetTranspose)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -506,7 +506,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, RetrieveScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -518,7 +518,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, ExtractScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -530,7 +530,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, MultiplyByScaleX2)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -542,7 +542,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetPolarDecomposition)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -557,7 +557,7 @@ namespace Benchmark
|
||||
AZ::Matrix3x3 orthogonalOut;
|
||||
AZ::Matrix3x3 symmetricOut;
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -568,7 +568,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetInverseFast)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -580,7 +580,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetInverseFull)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -592,7 +592,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, Orthogonalize)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -603,7 +603,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetOrthogonalized)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -615,7 +615,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, IsOrthogonal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -627,7 +627,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetDiagonal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -639,7 +639,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetDeterminant)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -651,7 +651,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x3, GetAdjugate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateIdentity)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -98,7 +98,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateZero)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -110,7 +110,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromValue)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -122,7 +122,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromRowMajorFloat12)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -134,7 +134,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromRows)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -146,7 +146,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromColumnMajorFloat12)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -158,7 +158,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromColumns)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -170,7 +170,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromColumnMajorFloat16)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -182,7 +182,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateRotationX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -194,7 +194,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateRotationY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -206,7 +206,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateRotationZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -218,7 +218,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromQuaternion)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -230,7 +230,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromQuaternionAndTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -242,7 +242,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromMatrix3x3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -254,7 +254,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromMatrix3x3AndTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -266,7 +266,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromTransform)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -278,7 +278,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -290,7 +290,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateFromTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -302,7 +302,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, CreateLookAt)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -316,7 +316,7 @@ namespace Benchmark
|
||||
{
|
||||
float testFloats[12];
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -330,7 +330,7 @@ namespace Benchmark
|
||||
{
|
||||
float testFloats[12];
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -344,7 +344,7 @@ namespace Benchmark
|
||||
{
|
||||
float testFloats[16];
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -356,7 +356,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetElement)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -368,7 +368,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetElement)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -381,7 +381,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetRow)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -393,7 +393,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetRowAsVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -405,7 +405,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetRowWithFloats)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -418,7 +418,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetRowWithVector3AndFloat)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -431,7 +431,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetRowWithVector4)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -444,7 +444,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetRows)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -459,7 +459,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetRows)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -472,7 +472,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetColumn)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -484,7 +484,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetColumnWithFloats)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -497,7 +497,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetColumnWithVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -510,7 +510,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetColumns)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -526,7 +526,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetColumns)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -539,7 +539,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetBasisX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -551,7 +551,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetBasisXWithFloats)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -564,7 +564,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetBasisXWithVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -577,7 +577,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetBasisY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -589,7 +589,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetBasisYWithFloats)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -602,7 +602,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetBasisYWithVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -615,7 +615,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetBasisZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -627,7 +627,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetBasisZWithFloats)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -640,7 +640,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetBasisZWithVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -653,7 +653,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -665,7 +665,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetTranslationWithFloats)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -678,7 +678,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetTranslationWithVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -691,7 +691,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetBasisAndTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -707,7 +707,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetBasisAndTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -720,7 +720,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, OperatorMultiplyMatrix3x4)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -732,7 +732,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, OperatorMultiplyEqualsMatrix3x4)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -745,7 +745,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, TransformPointVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -757,7 +757,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, TransformVectorVector4)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -769,7 +769,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, Multiply3x3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -781,7 +781,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetTranspose)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -793,7 +793,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, Transpose)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -806,7 +806,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetTranspose3x3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -818,7 +818,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, Transpose3x3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -831,7 +831,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetInverseFull)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -843,7 +843,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, InvertFull)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -856,7 +856,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetInverseFast)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -868,7 +868,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, InvertFast)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -881,7 +881,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, RetrieveScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -893,7 +893,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, ExtractScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -906,7 +906,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, MultiplyByScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -919,7 +919,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, IsOrthogonal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -931,7 +931,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetOrthogonalized)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -943,7 +943,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, Orthogonalize)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -956,7 +956,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, IsCloseExactAndDifferent)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -971,7 +971,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, OperatorEqualEqual)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -983,7 +983,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, OperatorNotEqual)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -995,7 +995,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetEulerDegrees)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -1007,7 +1007,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetEulerRadians)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -1019,7 +1019,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetFromEulerDegrees)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -1032,7 +1032,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetFromEulerRadians)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -1045,7 +1045,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, SetRotationPartFromQuaternion)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -1058,7 +1058,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, GetDeterminant3x3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -1070,7 +1070,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix3x4, IsFinite)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateIdentity)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -76,7 +76,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateZero)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -88,7 +88,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, GetRowX4)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -106,7 +106,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, GetColumnX3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -124,7 +124,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateFromValue)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -136,7 +136,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateFromRowMajorFloat16)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -148,7 +148,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateFromColumnMajorFloat9)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -160,7 +160,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateProjection)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -172,7 +172,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateProjectionFov)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -184,7 +184,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateInterpolated)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -198,7 +198,7 @@ namespace Benchmark
|
||||
{
|
||||
float storeValues[16];
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -212,7 +212,7 @@ namespace Benchmark
|
||||
{
|
||||
float storeValues[16];
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -224,7 +224,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateRotationX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -236,7 +236,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateRotationY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -248,7 +248,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateRotationZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -260,7 +260,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateFromQuaternion)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -272,7 +272,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -284,7 +284,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateDiagonal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -296,7 +296,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, GetElement)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -308,7 +308,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, SetElement)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -321,7 +321,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, SetRowX3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -337,7 +337,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, SetColumnX3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -353,7 +353,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, GetBasisX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -365,7 +365,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, GetBasisY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -377,7 +377,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, GetBasisZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -389,7 +389,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, CreateTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -401,7 +401,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, SetTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -414,7 +414,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, GetTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -426,7 +426,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, OperatorAssign)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -438,7 +438,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, OperatorMultiply)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -450,7 +450,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, OperatorMultiplyAssign)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -463,7 +463,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, OperatorMultiplyVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -475,7 +475,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, OperatorMultiplyVector4)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -487,7 +487,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, TransposedMultiply3x3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -499,7 +499,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, Multiply3x3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -511,7 +511,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, Transpose)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -524,7 +524,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, GetTranspose)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -536,7 +536,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, GetInverseFast)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -552,7 +552,7 @@ namespace Benchmark
|
||||
AZ::Matrix4x4 mat = AZ::Matrix4x4::CreateRotationX(1.0f);
|
||||
mat.SetElement(0, 1, 23.1234f);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -564,7 +564,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, GetInverseFull)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -576,7 +576,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathMatrix4x4, SetRotationPartFromQuaternion)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, CreateFromPositionRotationAndHalfLengths)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -60,7 +60,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, SetPosition)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -72,7 +72,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, GetPosition)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -84,7 +84,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, GetAxisX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -96,7 +96,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, GetAxisY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -108,7 +108,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, GetAxisZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -120,7 +120,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, GetAxisIndex3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -136,7 +136,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, SetHalfLengthX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -148,7 +148,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, GetHalfLengthX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -160,7 +160,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, SetHalfLengthY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -172,7 +172,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, GetHalfLengthY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -184,7 +184,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, SetHalfLengthZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -196,7 +196,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, GetHalfLengthZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -208,7 +208,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, SetHalfLengthIndex3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -222,7 +222,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, GetHalfLengthIndex3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -242,7 +242,7 @@ namespace Benchmark
|
||||
AZ::Vector3 max(120.0f, 300.0f, 50.0f);
|
||||
AZ::Aabb aabb = AZ::Aabb::CreateFromMinMax(min, max);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -256,7 +256,7 @@ namespace Benchmark
|
||||
{
|
||||
AZ::Transform transform = AZ::Transform::CreateRotationY(AZ::DegToRad(90.0f));
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -268,7 +268,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, Equal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
@@ -280,7 +280,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathObb, IsFinite)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < numIters; ++i)
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, CreateFromNormalAndDistance)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -85,7 +85,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, GetDistance)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -97,7 +97,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, GetNormal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -109,7 +109,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, CreateFromNormalAndPoint)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -128,7 +128,7 @@ namespace Benchmark
|
||||
coeff.push_back(unif(rng));
|
||||
}
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -148,7 +148,7 @@ namespace Benchmark
|
||||
coeff.push_back(unif(rng));
|
||||
}
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -160,7 +160,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, SetVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -179,7 +179,7 @@ namespace Benchmark
|
||||
vecs.push_back(AZ::Vector4(unif(rng), unif(rng), unif(rng), unif(rng)));
|
||||
}
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -192,7 +192,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, SetNormal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -205,7 +205,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, SetDistance)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -218,7 +218,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, GetPlaneEquationCoefficients)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -236,7 +236,7 @@ namespace Benchmark
|
||||
trans.push_back(AZ::Transform::CreateRotationY(AZ::DegToRad(unif(rng))));
|
||||
}
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -254,7 +254,7 @@ namespace Benchmark
|
||||
trans.push_back(AZ::Transform::CreateRotationY(AZ::DegToRad(unif(rng))));
|
||||
}
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -265,7 +265,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, GetPointDist)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -277,7 +277,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, GetProjected)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -291,7 +291,7 @@ namespace Benchmark
|
||||
{
|
||||
AZ::Vector3 rayResult;
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -305,7 +305,7 @@ namespace Benchmark
|
||||
{
|
||||
float rayResult;
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
@@ -319,7 +319,7 @@ namespace Benchmark
|
||||
{
|
||||
AZ::Vector3 rayResult;
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters - 1; ++i)
|
||||
{
|
||||
@@ -333,7 +333,7 @@ namespace Benchmark
|
||||
{
|
||||
float rayResult;
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters - 1; ++i)
|
||||
{
|
||||
@@ -345,7 +345,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathPlane, IsFinite)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (int i = 0; i < m_numIters; ++i)
|
||||
{
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, SplatFloatConstruction)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, NonNormalized4FloatsConstruction)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, CreateFromIdentity)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -104,7 +104,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, CreateZero)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -116,7 +116,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, CreateRotationX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -128,7 +128,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, CreateRotationY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -140,7 +140,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, CreateRotationZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -155,7 +155,7 @@ namespace Benchmark
|
||||
const AZ::Vector3 vec1 = AZ::Vector3(1.0f, 2.0f, 3.0f).GetNormalized();
|
||||
const AZ::Vector3 vec2 = AZ::Vector3(-2.0f, 7.0f, -1.0f).GetNormalized();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -170,7 +170,7 @@ namespace Benchmark
|
||||
const AZ::Vector3 vec1 = AZ::Vector3(1.0f, 2.0f, 3.0f).GetNormalized();
|
||||
const AZ::Vector3 vec2 = AZ::Vector3(-1.0f, -2.0f, -3.0f).GetNormalized();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -182,7 +182,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -194,7 +194,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -206,7 +206,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -218,7 +218,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetW)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -230,7 +230,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, SetX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -243,7 +243,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, SetY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -256,7 +256,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, SetZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -269,7 +269,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, SetW)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -282,7 +282,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, SetSplat)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -295,7 +295,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, SetAll)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -310,7 +310,7 @@ namespace Benchmark
|
||||
{
|
||||
AZ::Vector3 vec(5.0f, 6.0f, 7.0f);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -324,7 +324,7 @@ namespace Benchmark
|
||||
BENCHMARK_F(BM_MathQuaternion, SetArray)(benchmark::State& state)
|
||||
{
|
||||
const float quatArray[4] = { 5.0f, 6.0f, 7.0f, 8.0f };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -337,7 +337,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, SetElements)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -353,7 +353,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetElement)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -374,7 +374,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetConjugate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -386,7 +386,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetInverseFast)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -398,7 +398,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetInverseFull)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -410,7 +410,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, Dot)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -422,7 +422,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetLength)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -434,7 +434,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetLengthEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -446,7 +446,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetLengthReciprocal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -458,7 +458,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetLengthReciprocalEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -470,7 +470,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetNormalized)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -482,7 +482,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetNormalizedEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -494,7 +494,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, NormalizeWithLength)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -506,7 +506,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, NormalizeWithLengthEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -518,7 +518,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, Lerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -530,7 +530,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, NLerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -542,7 +542,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, Slerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -554,7 +554,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, OperatorEquality)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -566,7 +566,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, OperatorInequality)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -578,7 +578,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, OperatorNegate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -590,7 +590,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, OperatorSum)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -602,7 +602,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, OperatorSub)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -614,7 +614,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, OperatorMultiply)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -626,7 +626,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, OperatorMultiplyScalar)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -638,7 +638,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, TransformVector)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -653,7 +653,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, IsClose)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -665,7 +665,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, IsIdentity)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -677,7 +677,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetEulerDegrees)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -689,7 +689,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, GetEulerRadians)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -701,7 +701,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, SetFromEulerRadians)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -715,7 +715,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, SetFromEulerDegrees)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -729,7 +729,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, ConvertToAxisAngle)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
{
|
||||
@@ -744,7 +744,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathQuaternion, AggregateMultiply)(::benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZ::Vector3 position = AZ::Vector3::CreateZero();
|
||||
for (auto& quatData : m_quatDataArray)
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathShapeIntersection, ContainsFrustumPoint)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -103,7 +103,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathShapeIntersection, OverlapsFrustumSphere)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -120,7 +120,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathShapeIntersection, ContainsFrustumSphere)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -137,7 +137,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathShapeIntersection, OverlapsFrustumAabb)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -154,7 +154,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathShapeIntersection, ContainsFrustumAabb)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateIdentity)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for ([[maybe_unused]] auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -90,7 +90,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateRotationX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -102,7 +102,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateRotationY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -114,7 +114,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateRotationZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -126,7 +126,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateFromQuaternion)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -138,7 +138,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateFromQuaternionAndTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -150,7 +150,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateFromMatrix3x3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -162,7 +162,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateFromMatrix3x3AndTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -174,7 +174,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateFromMatrix3x4)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -186,7 +186,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateUniformScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -198,7 +198,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateFromTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -210,7 +210,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, CreateLookAt)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -223,7 +223,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetBasis)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -235,7 +235,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetBasisX)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -247,7 +247,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetBasisY)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -259,7 +259,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetBasisZ)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -271,7 +271,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetBasisAndTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -287,7 +287,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetTranslation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -299,7 +299,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, SetTranslationWithFloats)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -312,7 +312,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, SetTranslationWithVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -325,7 +325,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetRotation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -337,7 +337,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, SetRotation)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -350,7 +350,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetUniformScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -362,7 +362,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, SetUniformScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -375,7 +375,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, ExtractUniformScale)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -388,7 +388,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, OperatorMultiplyTransform)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -400,7 +400,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, OperatorMultiplyEqualsTransform)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -413,7 +413,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, TransformPointVector3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -425,7 +425,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, TransformPointVector4)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -437,7 +437,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, TransformVector)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -449,7 +449,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetInverse)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -461,7 +461,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, Invert)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -474,7 +474,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, IsOrthogonal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -486,7 +486,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetOrthogonalized)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -498,7 +498,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, Orthogonalize)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -511,7 +511,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, IsCloseExactAndDifferent)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -526,7 +526,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, OperatorEqualEqual)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -538,7 +538,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, OperatorNotEqual)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -550,7 +550,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetEulerDegrees)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -562,7 +562,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, GetEulerRadians)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -574,7 +574,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, SetFromEulerDegrees)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -587,7 +587,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, SetFromEulerRadians)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
@@ -600,7 +600,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathTransform, IsFinite)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& testData : m_testDataArray)
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetSet)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZ::Vector2 v1, v2;
|
||||
float x = 0.0f, y = 0.0f;
|
||||
@@ -84,7 +84,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, ElementAccess)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZ::Vector2 v1, v2;
|
||||
float x = 0.0f, y = 0.0f;
|
||||
@@ -111,7 +111,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, CreateSelectCmpEqual)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -123,7 +123,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, CreateSelectCmpGreaterEqual)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -135,7 +135,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, CreateSelectCmpGreater)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -147,7 +147,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetNormalized)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -159,7 +159,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetNormalizedEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -171,7 +171,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, NormalizeWithLength)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -183,7 +183,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, NormalizeWithLengthEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -195,7 +195,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetNormalizedSafe)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -207,7 +207,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetNormalizedSafeEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -219,7 +219,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetDistance)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -231,7 +231,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetDistanceEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -243,7 +243,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Lerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -267,7 +267,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Slerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -291,7 +291,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Nlerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -315,7 +315,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Dot)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -327,7 +327,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Equality)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -339,7 +339,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Inequality)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -351,7 +351,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, IsLessThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -363,7 +363,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, IsLessEqualThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -375,7 +375,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, IsGreaterThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -387,7 +387,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, IsGreaterEqualThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -399,7 +399,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetMin)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -411,7 +411,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetMax)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -423,7 +423,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetClamp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -435,7 +435,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Sub)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -447,7 +447,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Sum)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -459,7 +459,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Mul)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -471,7 +471,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Div)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -483,7 +483,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetSin)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -495,7 +495,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetCos)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -507,7 +507,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetSinCos)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -521,7 +521,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetAcos)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -533,7 +533,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetAtan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -545,7 +545,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetAtan2)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -557,7 +557,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetAngleMod)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -569,7 +569,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, Angle)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -581,7 +581,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, AngleDeg)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -593,7 +593,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetAbs)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -605,7 +605,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetReciprocal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -617,7 +617,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetReciprocalEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -629,7 +629,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector2, GetProjected)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetSet)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZ::Vector3 v1, v2, v3;
|
||||
float x = 0.0f, y = 0.0f, z = 0.0f;
|
||||
@@ -98,7 +98,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, ElementAccess)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZ::Vector3 v1, v2, v3;
|
||||
float x = 0.0f, y = 0.0f, z = 0.0f;
|
||||
@@ -138,7 +138,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, CreateSelectCmpEqual)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -150,7 +150,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, CreateSelectCmpGreaterEqual)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -162,7 +162,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, CreateSelectCmpGreater)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -174,7 +174,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetNormalized)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -186,7 +186,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetNormalizedEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -198,7 +198,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, NormalizeWithLength)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -210,7 +210,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, NormalizeWithLengthEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -222,7 +222,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetNormalizedSafe)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -234,7 +234,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetNormalizedSafeEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -246,7 +246,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetDistance)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -258,7 +258,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetDistanceEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -270,7 +270,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Lerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -294,7 +294,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Slerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -318,7 +318,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Nlerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -342,7 +342,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Dot)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -354,7 +354,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Cross)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -366,7 +366,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Equality)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -378,7 +378,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Inequality)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -390,7 +390,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, IsLessThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -402,7 +402,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, IsLessEqualThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -414,7 +414,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, IsGreaterThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -426,7 +426,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, IsGreaterEqualThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -438,7 +438,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetMin)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -450,7 +450,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetMax)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -462,7 +462,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetClamp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -474,7 +474,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Sub)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -486,7 +486,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Sum)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -498,7 +498,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Mul)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -510,7 +510,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Div)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -522,7 +522,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetSin)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -534,7 +534,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetCos)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -546,7 +546,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetSinCos)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -560,7 +560,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetAcos)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -572,7 +572,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetAtan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -584,7 +584,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetAngleMod)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -596,7 +596,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, Angle)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -608,7 +608,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, AngleDeg)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -620,7 +620,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetAbs)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -632,7 +632,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetReciprocal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -644,7 +644,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetReciprocalEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -656,7 +656,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, IsPerpendicular)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -668,7 +668,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetOrthogonalVector)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -680,7 +680,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector3, GetProjected)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetSet)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZ::Vector4 v1, v2, v3, v4;
|
||||
float x = 0.0f, y = 0.0f, z = 0.0f, w = 0.0f;
|
||||
@@ -117,7 +117,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, ElementAccess)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZ::Vector4 v1, v2, v3, v4;
|
||||
float x = 0.0f, y = 0.0f, z = 0.0f, w = 0.0f;
|
||||
@@ -174,7 +174,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, CreateSelectCmpEqual)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -186,7 +186,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, CreateSelectCmpGreaterEqual)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -198,7 +198,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, CreateSelectCmpGreater)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -210,7 +210,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetNormalized)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -222,7 +222,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetNormalizedEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -234,7 +234,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, NormalizeWithLength)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -246,7 +246,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, NormalizeWithLengthEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -258,7 +258,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetNormalizedSafe)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -270,7 +270,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetNormalizedSafeEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -282,7 +282,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetDistance)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -294,7 +294,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetDistanceEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -306,7 +306,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Lerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -330,7 +330,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Slerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -354,7 +354,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Nlerp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -378,7 +378,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Dot)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -390,7 +390,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Dot3)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -402,7 +402,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetHomogenized)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -414,7 +414,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Equality)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -426,7 +426,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Inequality)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -438,7 +438,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, IsLessThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -450,7 +450,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, IsLessEqualThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -462,7 +462,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, IsGreaterThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -474,7 +474,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, IsGreaterEqualThan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -486,7 +486,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetMin)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -498,7 +498,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetMax)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -510,7 +510,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetClamp)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -522,7 +522,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Sub)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -534,7 +534,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Sum)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -546,7 +546,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Mul)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -558,7 +558,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Div)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -570,7 +570,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetSin)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -582,7 +582,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetCos)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -594,7 +594,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetSinCos)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -608,7 +608,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetAcos)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -620,7 +620,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetAtan)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -632,7 +632,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetAngleMod)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -644,7 +644,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, Angle)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -656,7 +656,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, AngleDeg)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -668,7 +668,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetAbs)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -680,7 +680,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetReciprocal)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
@@ -692,7 +692,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_F(BM_MathVector4, GetReciprocalEstimate)(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& vecData : m_vecDataArray)
|
||||
{
|
||||
|
||||
@@ -288,7 +288,7 @@ namespace Benchmark
|
||||
public:
|
||||
void Benchmark(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
@@ -333,7 +333,7 @@ namespace Benchmark
|
||||
public:
|
||||
void Benchmark(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
AZStd::vector<void*>& perThreadAllocations = base::GetPerThreadAllocations(state.thread_index);
|
||||
@@ -420,7 +420,7 @@ namespace Benchmark
|
||||
|
||||
void Benchmark(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
|
||||
+1
-1
@@ -1248,7 +1248,7 @@ namespace Benchmark
|
||||
|
||||
AZStd::unique_ptr<char[]> buffer(new char[FileSize]);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::binary_semaphore waitForReads;
|
||||
AZStd::atomic<system_clock::time_point> end;
|
||||
|
||||
@@ -677,7 +677,7 @@ namespace Benchmark
|
||||
[]
|
||||
{
|
||||
});
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
TaskGraphEvent ev;
|
||||
graph->SubmitOnExecutor(*executor, &ev);
|
||||
@@ -699,7 +699,7 @@ namespace Benchmark
|
||||
});
|
||||
a.Precedes(b);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
TaskGraphEvent ev;
|
||||
graph->SubmitOnExecutor(*executor, &ev);
|
||||
@@ -729,7 +729,7 @@ namespace Benchmark
|
||||
|
||||
e.Follows(a, b, c, d);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
TaskGraphEvent ev;
|
||||
graph->SubmitOnExecutor(*executor, &ev);
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace Benchmark
|
||||
BENCHMARK_F(BM_Octree, InsertDelete1000)(benchmark::State& state)
|
||||
{
|
||||
constexpr uint32_t EntryCount = 1000;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
InsertEntries(EntryCount);
|
||||
RemoveEntries(EntryCount);
|
||||
@@ -152,7 +152,7 @@ namespace Benchmark
|
||||
BENCHMARK_F(BM_Octree, InsertDelete10000)(benchmark::State& state)
|
||||
{
|
||||
constexpr uint32_t EntryCount = 10000;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
InsertEntries(EntryCount);
|
||||
RemoveEntries(EntryCount);
|
||||
@@ -162,7 +162,7 @@ namespace Benchmark
|
||||
BENCHMARK_F(BM_Octree, InsertDelete100000)(benchmark::State& state)
|
||||
{
|
||||
constexpr uint32_t EntryCount = 100000;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
InsertEntries(EntryCount);
|
||||
RemoveEntries(EntryCount);
|
||||
@@ -172,7 +172,7 @@ namespace Benchmark
|
||||
BENCHMARK_F(BM_Octree, InsertDelete1000000)(benchmark::State& state)
|
||||
{
|
||||
constexpr uint32_t EntryCount = 1000000;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
InsertEntries(EntryCount);
|
||||
RemoveEntries(EntryCount);
|
||||
@@ -183,7 +183,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 1000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -197,7 +197,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 10000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -211,7 +211,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 100000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -225,7 +225,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 1000000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -239,7 +239,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 1000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -253,7 +253,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 10000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -267,7 +267,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 100000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -281,7 +281,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 1000000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -295,7 +295,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 1000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -309,7 +309,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 10000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -323,7 +323,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 100000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
@@ -337,7 +337,7 @@ namespace Benchmark
|
||||
{
|
||||
constexpr uint32_t EntryCount = 1000000;
|
||||
InsertEntries(EntryCount);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (auto& queryData : m_queryDataArray)
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Benchmark
|
||||
|
||||
CreateFakePaths(numInstances);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace Benchmark
|
||||
{
|
||||
const unsigned int numEntities = static_cast<unsigned int>(state.range());
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace Benchmark
|
||||
// plus the instance receiving them
|
||||
CreateFakePaths(numInstancesToAdd + 1);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace Benchmark
|
||||
// plus the root instance
|
||||
CreateFakePaths(numInstances + 1);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ namespace Benchmark
|
||||
m_pathString);
|
||||
|
||||
TemplateId templateToInstantiateId = firstInstance->GetTemplateId();
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Benchmark
|
||||
const unsigned int numTemplates = static_cast<unsigned int>(state.range());
|
||||
CreateFakePaths(numTemplates);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
|
||||
+4
-4
@@ -24,7 +24,7 @@ namespace Benchmark
|
||||
const auto& nestedTemplatePath = m_paths.front();
|
||||
const auto& enclosingTemplatePath = m_paths.back();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace Benchmark
|
||||
|
||||
const unsigned int numInstances = maxDepth;
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
@@ -137,7 +137,7 @@ namespace Benchmark
|
||||
|
||||
const unsigned int numInstances = numRootInstances * maxDepth;
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace Benchmark
|
||||
|
||||
const unsigned int numInstances = (1 << maxDepth) - 1;
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
|
||||
+3
-3
@@ -22,7 +22,7 @@ namespace Benchmark
|
||||
|
||||
SetUpSpawnableAsset(entityCountInSourcePrefab);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
m_spawnTicket = aznew AzFramework::EntitySpawnTicket(m_spawnableAsset);
|
||||
@@ -59,7 +59,7 @@ namespace Benchmark
|
||||
|
||||
SetUpSpawnableAsset(entityCountInSpawnable);
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
m_spawnTicket = aznew AzFramework::EntitySpawnTicket(m_spawnableAsset);
|
||||
@@ -94,7 +94,7 @@ namespace Benchmark
|
||||
SetUpSpawnableAsset(entityCountInSpawnable);
|
||||
|
||||
auto spawner = AzFramework::SpawnableEntitiesInterface::Get();
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
m_spawnTicket = aznew AzFramework::EntitySpawnTicket(m_spawnableAsset);
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ namespace Benchmark
|
||||
|
||||
|
||||
auto& prefabDom = m_prefabSystemComponent->FindTemplateDom(instance->GetTemplateId());
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
// Create a vector to store spawnables so that they don't get destroyed immediately after construction.
|
||||
AZStd::vector<AZStd::unique_ptr<AzFramework::Spawnable>> spawnables;
|
||||
|
||||
@@ -259,7 +259,7 @@ namespace UnitTest
|
||||
const float width = aznumeric_cast<float>(queryRange);
|
||||
|
||||
// Call GetValue() on the EBus for every height and width in our ranges.
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (float y = 0.0f; y < height; y += 1.0f)
|
||||
{
|
||||
@@ -285,7 +285,7 @@ namespace UnitTest
|
||||
int64_t totalQueryPoints = queryRange * queryRange;
|
||||
|
||||
// Call GetValues() for every height and width in our ranges.
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
// Set up our vector of query positions. This is done inside the benchmark timing since we're counting the work to create
|
||||
// each query position in the single GetValue() call benchmarks, and will make the timing more directly comparable.
|
||||
@@ -313,7 +313,7 @@ namespace UnitTest
|
||||
const float width = aznumeric_cast<float>(queryRange);
|
||||
|
||||
// Call GetValue() through the GradientSampler for every height and width in our ranges.
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (float y = 0.0f; y < height; y += 1.0f)
|
||||
{
|
||||
@@ -343,7 +343,7 @@ namespace UnitTest
|
||||
const int64_t totalQueryPoints = queryRange * queryRange;
|
||||
|
||||
// Call GetValues() through the GradientSampler for every height and width in our ranges.
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
// Set up our vector of query positions. This is done inside the benchmark timing since we're counting the work to create
|
||||
// each query position in the single GetValue() call benchmarks, and will make the timing more directly comparable.
|
||||
|
||||
@@ -235,7 +235,7 @@ namespace PhysX::Benchmarks
|
||||
//setup the frame timer tracker
|
||||
AZStd::vector<double> tickTimes;
|
||||
tickTimes.reserve(CharacterConstants::GameFramesToSimulate);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (AZ::u32 i = 0; i < CharacterConstants::GameFramesToSimulate; i++)
|
||||
{
|
||||
@@ -294,7 +294,7 @@ namespace PhysX::Benchmarks
|
||||
|
||||
AZStd::vector<double> tickTimes;
|
||||
tickTimes.reserve(CharacterConstants::GameFramesToSimulate);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (AZ::u32 i = 0; i < CharacterConstants::GameFramesToSimulate; i++)
|
||||
{
|
||||
@@ -361,7 +361,7 @@ namespace PhysX::Benchmarks
|
||||
//setup the frame timer tracker
|
||||
AZStd::vector<double> tickTimes;
|
||||
tickTimes.reserve(CharacterConstants::GameFramesToSimulate);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
//run each simulation part, and change direction each time
|
||||
for (AZ::u32 i = 0; i < numDirectionChanges; i++)
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace PhysX::Benchmarks
|
||||
//setup the frame timer tracker
|
||||
AZStd::vector<double> tickTimes;
|
||||
tickTimes.reserve(RagdollConstants::GameFramesToSimulate);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (AZ::u32 i = 0; i < RagdollConstants::GameFramesToSimulate; i++)
|
||||
{
|
||||
@@ -264,7 +264,7 @@ namespace PhysX::Benchmarks
|
||||
//setup the frame timer tracker
|
||||
AZStd::vector<double> tickTimes;
|
||||
tickTimes.reserve(RagdollConstants::GameFramesToSimulate);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (AZ::u32 i = 0; i < RagdollConstants::GameFramesToSimulate; i++)
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace PhysX::Benchmarks
|
||||
|
||||
void BM_PhysXBenchmarkFixture(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
auto fixture = std::make_unique<BenchmarkablePhysXBenchmarkFixture>();
|
||||
fixture->SetUp();
|
||||
|
||||
@@ -245,7 +245,7 @@ namespace PhysX::Benchmarks
|
||||
|
||||
//setup the frame timer tracker
|
||||
Types::TimeList tickTimes;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (AZ::u32 i = 0; i < JointConstants::GameFramesToSimulate; i++)
|
||||
{
|
||||
@@ -300,7 +300,7 @@ namespace PhysX::Benchmarks
|
||||
|
||||
//setup the frame timer tracker
|
||||
Types::TimeList tickTimes;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (AZ::u32 i = 0; i < JointConstants::GameFramesToSimulate; i++)
|
||||
{
|
||||
@@ -399,7 +399,7 @@ namespace PhysX::Benchmarks
|
||||
|
||||
//setup the frame timer tracker
|
||||
Types::TimeList tickTimes;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (AZ::u32 i = 0; i < JointConstants::GameFramesToSimulate; i++)
|
||||
{
|
||||
|
||||
@@ -229,7 +229,7 @@ namespace PhysX::Benchmarks
|
||||
|
||||
//setup the frame timer tracker
|
||||
Types::TimeList tickTimes;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (AZ::u32 i = 0; i < RigidBodyConstants::GameFramesToSimulate; i++)
|
||||
{
|
||||
@@ -302,7 +302,7 @@ namespace PhysX::Benchmarks
|
||||
//setup the frame timer tracker
|
||||
AZStd::vector<double> tickTimes;
|
||||
tickTimes.reserve(RigidBodyConstants::GameFramesToSimulate);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (AZ::u32 i = 0; i < RigidBodyConstants::GameFramesToSimulate; i++)
|
||||
{
|
||||
@@ -471,7 +471,7 @@ namespace PhysX::Benchmarks
|
||||
//setup the frame timer tracker
|
||||
AZStd::vector<double> tickTimes;
|
||||
tickTimes.reserve(RigidBodyConstants::GameFramesToSimulate);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
for (AZ::u32 i = 0; i < RigidBodyConstants::GameFramesToSimulate; i++)
|
||||
{
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace PhysX::Benchmarks
|
||||
auto* sceneInterface = AZ::Interface<AzPhysics::SceneInterface>::Get();
|
||||
|
||||
auto next = 0;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
request.m_direction = m_boxes[next].GetNormalized();
|
||||
|
||||
@@ -175,7 +175,7 @@ namespace PhysX::Benchmarks
|
||||
auto* sceneInterface = AZ::Interface<AzPhysics::SceneInterface>::Get();
|
||||
|
||||
auto next = 0;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
request.m_direction = m_boxes[next].GetNormalized();
|
||||
|
||||
@@ -206,7 +206,7 @@ namespace PhysX::Benchmarks
|
||||
auto* sceneInterface = AZ::Interface<AzPhysics::SceneInterface>::Get();
|
||||
|
||||
auto next = 0;
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
request.m_pose = AZ::Transform::CreateTranslation(m_boxes[next]);
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ namespace UnitTest
|
||||
SurfaceData::SurfaceTagVector filterTags = CreateBenchmarkTagFilterList();
|
||||
|
||||
// Query every point in our world at 1 meter intervals.
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
// This is declared outside the loop so that the list of points doesn't fully reallocate on every query.
|
||||
SurfaceData::SurfacePointList points;
|
||||
@@ -211,7 +211,7 @@ namespace UnitTest
|
||||
SurfaceData::SurfaceTagVector filterTags = CreateBenchmarkTagFilterList();
|
||||
|
||||
// Query every point in our world at 1 meter intervals.
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
SurfaceData::SurfacePointLists points;
|
||||
|
||||
@@ -235,7 +235,7 @@ namespace UnitTest
|
||||
SurfaceData::SurfaceTagVector filterTags = CreateBenchmarkTagFilterList();
|
||||
|
||||
// Query every point in our world at 1 meter intervals.
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::vector<AZ::Vector3> queryPositions;
|
||||
queryPositions.reserve(worldSizeInt * worldSizeInt);
|
||||
|
||||
@@ -267,7 +267,7 @@ namespace UnitTest
|
||||
auto terrainSystem = CreateAndActivateTerrainSystem(queryResolution, worldBounds);
|
||||
|
||||
// Call the terrain API we're testing for every height and width in our ranges.
|
||||
for (auto stateIterator : state)
|
||||
for ([[maybe_unused]] auto stateIterator : state)
|
||||
{
|
||||
ApiCaller(queryResolution, worldBounds, sampler);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user