Merge branch 'development' into math_string_converters
This commit is contained in:
@@ -42,8 +42,8 @@
|
||||
#define HPPA_ASSERT_PRINT_STACK(...) _EXPAND(_GET_MACRO23(__VA_ARGS__, _HPPA_ASSERT_PRINT_STACK3, _HPPA_ASSERT_PRINT_STACK2)(__VA_ARGS__))
|
||||
|
||||
|
||||
namespace AZ {
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
/// default windows virtual page size \todo Read this from the OS when we create the allocator)
|
||||
#define OS_VIRTUAL_PAGE_SIZE AZ_PAGE_SIZE
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
@@ -57,6 +57,79 @@ namespace AZ {
|
||||
// Enabled mutex per bucket
|
||||
#define USE_MUTEX_PER_BUCKET
|
||||
|
||||
namespace HphaInternal
|
||||
{
|
||||
//! Rounds up a value to next power of 2.
|
||||
//! For example to round 8388609((2^23) + 1) up to 16777216(2^24) the following occurs
|
||||
//! Subtract one from the value in case it is already
|
||||
//! equal to a power of 2
|
||||
//! 8388609 - 1 = 8388608
|
||||
//! Propagate the highest one bit in the value to all the lower bits
|
||||
//! 8388608 = 0b100'0000'0000'0000'0000'0000 in binary
|
||||
//!
|
||||
//! 0b100'0000'0000'0000'0000'0000
|
||||
//! |0b010'0000'0000'0000'0000'0000 (>> 1)
|
||||
//! -------------------------------
|
||||
//! 0b110'0000'0000'0000'0000'0000 (Now there are 2 consecutive 1-bits)
|
||||
//! |0b001'1000'0000'0000'0000'0000 (>> 2)
|
||||
//! -------------------------------
|
||||
//! 0b111'1000'0000'0000'0000'0000 (Now there are 4 consecutive 1-bits)
|
||||
//! |0b000'0111'1000'0000'0000'0000 (>> 4)
|
||||
//! -------------------------------
|
||||
//! 0b111'1111'1000'0000'0000'0000 (Now there are 8 consecutive 1-bits)
|
||||
//! |0b000'0000'0111'1111'1000'0000 (>> 8)
|
||||
//! -------------------------------
|
||||
//! 0b111'1111'1111'1111'1000'0000 (Now there are 16 consecutive 1-bits)
|
||||
//! |0b000'0000'0000'0000'0111'1111 (>> 16)
|
||||
//! -------------------------------
|
||||
//! 0b111'1111'1111'1111'1111'1111 (Now there are 23 consecutive 1-bits)
|
||||
//! |0b000'0000'0000'0000'0000'0000 (>> 32)
|
||||
//! -------------------------------
|
||||
//! 0b111'1111'1111'1111'1111'1111
|
||||
//! Finally since all the one bits are set in the value, adding one pushes it
|
||||
//! to next power of 2
|
||||
//! 0b1000'0000'0000'0000'0000'0000 = 16777216
|
||||
static constexpr size_t AlignUpToPowerOfTwo(size_t value)
|
||||
{
|
||||
// If the value is <=2 it is already aligned
|
||||
if (value <= 2)
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
// Subtract one to make any values already
|
||||
// aligned to a power of 2 less than that power of 2
|
||||
// so that algorithm doesn't push those values upwards
|
||||
--value;
|
||||
value |= value >> 0b1;
|
||||
value |= value >> 0b10;
|
||||
value |= value >> 0b100;
|
||||
value |= value >> 0b1000;
|
||||
value |= value >> 0b1'0000;
|
||||
value |= value >> 0b10'0000;
|
||||
++value;
|
||||
return value;
|
||||
}
|
||||
|
||||
static_assert(AlignUpToPowerOfTwo(0) == 0);
|
||||
static_assert(AlignUpToPowerOfTwo(1) == 1);
|
||||
static_assert(AlignUpToPowerOfTwo(2) == 2);
|
||||
static_assert(AlignUpToPowerOfTwo(3) == 4);
|
||||
static_assert(AlignUpToPowerOfTwo(4) == 4);
|
||||
static_assert(AlignUpToPowerOfTwo(5) == 8);
|
||||
static_assert(AlignUpToPowerOfTwo(8) == 8);
|
||||
static_assert(AlignUpToPowerOfTwo(10) == 16);
|
||||
static_assert(AlignUpToPowerOfTwo(16) == 16);
|
||||
static_assert(AlignUpToPowerOfTwo(24) == 32);
|
||||
static_assert(AlignUpToPowerOfTwo(32) == 32);
|
||||
static_assert(AlignUpToPowerOfTwo(45) == 64);
|
||||
static_assert(AlignUpToPowerOfTwo(64) == 64);
|
||||
static_assert(AlignUpToPowerOfTwo(112) == 128);
|
||||
static_assert(AlignUpToPowerOfTwo(128) == 128);
|
||||
static_assert(AlignUpToPowerOfTwo(136) == 256);
|
||||
static_assert(AlignUpToPowerOfTwo(256) == 256);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
class HpAllocator
|
||||
{
|
||||
@@ -211,24 +284,21 @@ namespace AZ {
|
||||
bool check_marker(size_t marker) const { return mMarker == (marker ^ ((size_t)this)); }
|
||||
};
|
||||
using page_list = AZStd::intrusive_list<page, AZStd::list_base_hook<page>>;
|
||||
class bucket
|
||||
|
||||
#if defined(MULTITHREADED) && defined(USE_MUTEX_PER_BUCKET)
|
||||
static constexpr size_t BucketAlignment = HphaInternal::AlignUpToPowerOfTwo(sizeof(page_list) + sizeof(AZStd::mutex) + sizeof(size_t));
|
||||
#else
|
||||
static constexpr size_t BucketAlignment = HphaInternal::AlignUpToPowerOfTwo(sizeof(page_list) + sizeof(size_t));
|
||||
#endif
|
||||
AZ_PUSH_DISABLE_WARNING_MSVC(4324)
|
||||
class alignas(BucketAlignment) bucket
|
||||
{
|
||||
page_list mPageList;
|
||||
#ifdef MULTITHREADED
|
||||
#if defined (USE_MUTEX_PER_BUCKET)
|
||||
#if defined(MULTITHREADED) && defined(USE_MUTEX_PER_BUCKET)
|
||||
mutable AZStd::mutex mLock;
|
||||
#endif
|
||||
#endif
|
||||
size_t mMarker;
|
||||
#ifdef MULTITHREADED
|
||||
#if defined (USE_MUTEX_PER_BUCKET)
|
||||
unsigned char _padding[sizeof(void*) * 16 - sizeof(page_list) - sizeof(AZStd::mutex) - sizeof(size_t)];
|
||||
#else
|
||||
unsigned char _padding[sizeof(void*) * 16 - sizeof(page_list) - sizeof(size_t)];
|
||||
#endif
|
||||
#else
|
||||
unsigned char _padding[sizeof(void*) * 4 - sizeof(page_list) - sizeof(size_t)];
|
||||
#endif
|
||||
|
||||
public:
|
||||
bucket();
|
||||
#ifdef MULTITHREADED
|
||||
@@ -249,6 +319,7 @@ namespace AZ {
|
||||
void free(page* p, void* ptr);
|
||||
void unlink(page* p);
|
||||
};
|
||||
AZ_POP_DISABLE_WARNING_MSVC
|
||||
void* bucket_system_alloc();
|
||||
void bucket_system_free(void* ptr);
|
||||
page* bucket_grow(size_t elemSize, size_t marker);
|
||||
@@ -1033,8 +1104,6 @@ namespace AZ {
|
||||
// Thats why we use SimpleLcgRandom here
|
||||
AZ::SimpleLcgRandom randGenerator = AZ::SimpleLcgRandom(reinterpret_cast<u64>(static_cast<void*>(this)));
|
||||
mMarker = size_t(randGenerator.Getu64Random());
|
||||
|
||||
(void)_padding;
|
||||
}
|
||||
|
||||
HpAllocator::page* HpAllocator::bucket::get_free_page()
|
||||
@@ -2371,7 +2440,7 @@ namespace AZ {
|
||||
m_capacity = desc.m_capacity;
|
||||
}
|
||||
|
||||
AZ_Assert(sizeof(HpAllocator) <= sizeof(m_hpAllocatorBuffer), "Increase the m_hpAllocatorBuffer, we need %d bytes but we have %d bytes!", sizeof(HpAllocator), sizeof(m_hpAllocatorBuffer));
|
||||
static_assert(sizeof(HpAllocator) <= sizeof(m_hpAllocatorBuffer), "Increase the m_hpAllocatorBuffer, it needs to be at least the sizeof(HpAllocator)");
|
||||
m_allocator = new (&m_hpAllocatorBuffer) HpAllocator(m_desc);
|
||||
}
|
||||
|
||||
|
||||
@@ -73,18 +73,20 @@ namespace AZ
|
||||
void GarbageCollect() override;
|
||||
|
||||
private:
|
||||
// [LY-84974][sconel@][2018-08-10] SliceStrike integration up to CL 671758
|
||||
// this must be at least the max size of HpAllocator (defined in the cpp) + any platform compiler padding
|
||||
static const int hpAllocatorStructureSize = 16584;
|
||||
// [LY][sconel@] end
|
||||
// A static assert inside of HphaSchema.cpp validates that this is the case
|
||||
// as of commit https://github.com/o3de/o3de/commit/92cd457c256e1ec91eeabe04b56d1d4c61f8b1af
|
||||
// When MULTITHREADED and USE_MUTEX_PER_BUCKET is defined
|
||||
// the largest sizeof for HpAllocator is 16640 on MacOS
|
||||
// On Windows the sizeof HpAllocator is 8384
|
||||
// Up this value to 18 KiB to be safe
|
||||
static constexpr size_t hpAllocatorStructureSize = 18 * 1024;
|
||||
|
||||
Descriptor m_desc;
|
||||
int m_pad; // pad the Descriptor to avoid C4355
|
||||
size_type m_capacity; ///< Capacity in bytes.
|
||||
HpAllocator* m_allocator;
|
||||
// [LY-84974][sconel@][2018-08-10] SliceStrike integration up to CL 671758
|
||||
AZStd::aligned_storage<hpAllocatorStructureSize, 16>::type m_hpAllocatorBuffer; ///< Memory buffer for HpAllocator
|
||||
// [LY][sconel@] end
|
||||
AZStd::aligned_storage_t<hpAllocatorStructureSize, 16> m_hpAllocatorBuffer; ///< Memory buffer for HpAllocator
|
||||
bool m_ownMemoryBlock;
|
||||
};
|
||||
} // namespace AZ
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace AZ {
|
||||
SymRegisterCallback64_t g_SymRegisterCallback64;
|
||||
HMODULE g_dbgHelpDll;
|
||||
|
||||
#define LOAD_FUNCTION(A) { g_##A = (A##_t)GetProcAddress(g_dbgHelpDll, #A); AZ_Assert(g_##A != 0, ("Can not load %s function!",#A)); }
|
||||
#define LOAD_FUNCTION(A) { g_##A = (A##_t)GetProcAddress(g_dbgHelpDll, #A); AZ_Assert(g_##A != 0, "Can not load %s function!",#A); }
|
||||
|
||||
using namespace AZ::Debug;
|
||||
|
||||
@@ -596,7 +596,7 @@ namespace AZ {
|
||||
result = GetLastError();
|
||||
}
|
||||
ULONGLONG fileVersion = 0;
|
||||
if (szImg != NULL)
|
||||
if (szImg[0]) // !szImg.empty()
|
||||
{
|
||||
// try to retrieve the file-version:
|
||||
VS_FIXEDFILEINFO* fInfo = NULL;
|
||||
@@ -624,43 +624,6 @@ namespace AZ {
|
||||
}
|
||||
}
|
||||
|
||||
// Retrive some additional-infos about the module
|
||||
IMAGEHLP_MODULE64 Module;
|
||||
const char* szSymType = "-unknown-";
|
||||
if (GetModuleInfo(hProcess, baseAddr, &Module) != FALSE)
|
||||
{
|
||||
switch (Module.SymType)
|
||||
{
|
||||
case SymNone:
|
||||
szSymType = "-nosymbols-";
|
||||
break;
|
||||
case SymCoff:
|
||||
szSymType = "COFF";
|
||||
break;
|
||||
case SymCv:
|
||||
szSymType = "CV";
|
||||
break;
|
||||
case SymPdb:
|
||||
szSymType = "PDB";
|
||||
break;
|
||||
case SymExport:
|
||||
szSymType = "-exported-";
|
||||
break;
|
||||
case SymDeferred:
|
||||
szSymType = "-deferred-";
|
||||
break;
|
||||
case SymSym:
|
||||
szSymType = "SYM";
|
||||
break;
|
||||
case 8: //SymVirtual:
|
||||
szSymType = "Virtual";
|
||||
break;
|
||||
case 9: // SymDia:
|
||||
szSymType = "DIA";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// find insert position
|
||||
if (g_moduleInfo.size() < g_moduleInfo.capacity())
|
||||
{
|
||||
@@ -1073,7 +1036,7 @@ cleanup:
|
||||
}
|
||||
|
||||
HANDLE hThread = nativeThread;
|
||||
CONTEXT alignas(8) context; // Without this alignment the function randomly crashes in release.
|
||||
alignas(alignof(CONTEXT)) CONTEXT context; // Without this alignment the function randomly crashes in release.
|
||||
context.ContextFlags = CONTEXT_ALL;
|
||||
GetThreadContext(hThread, &context);
|
||||
|
||||
|
||||
@@ -443,7 +443,7 @@ namespace UnitTest
|
||||
: m_data(data) { /* expensive operations */ }
|
||||
|
||||
private:
|
||||
int m_data;
|
||||
[[maybe_unused]] int m_data;
|
||||
};
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
@@ -2539,7 +2539,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::string test1{ "foo bar"};
|
||||
AZStd::string test2{ "bar foo" };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
SwapStringViaPointerSizedSwaps(test1, test2);
|
||||
}
|
||||
@@ -2549,7 +2549,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);
|
||||
}
|
||||
@@ -2559,7 +2559,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::string test1{ "foo bar" };
|
||||
AZStd::string test2{ "bar foo" };
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
SwapStringViaMemcpy(test1, test2);
|
||||
}
|
||||
@@ -2569,7 +2569,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);
|
||||
}
|
||||
@@ -2586,7 +2586,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);
|
||||
@@ -2602,7 +2602,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);
|
||||
@@ -2618,7 +2618,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);
|
||||
@@ -2633,7 +2633,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);
|
||||
@@ -2647,7 +2647,7 @@ namespace Benchmark
|
||||
{
|
||||
AZStd::string sourceString(state.range(0), 'a');
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
AZStd::string assignString;
|
||||
assignString.assign(sourceString);
|
||||
@@ -2661,7 +2661,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));
|
||||
@@ -2673,7 +2673,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');
|
||||
@@ -2691,7 +2691,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);
|
||||
@@ -2707,7 +2707,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);
|
||||
@@ -2723,7 +2723,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);
|
||||
@@ -2738,7 +2738,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);
|
||||
@@ -2752,7 +2752,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);
|
||||
@@ -2766,7 +2766,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));
|
||||
@@ -2778,7 +2778,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);
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace AZ::Dom::Benchmark
|
||||
if (apply)
|
||||
{
|
||||
auto patchInfo = GenerateHierarchicalDeltaPatch(m_before, m_after);
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
auto patchResult = patchInfo.m_forwardPatches.Apply(m_before);
|
||||
benchmark::DoNotOptimize(patchResult);
|
||||
@@ -86,7 +86,7 @@ namespace AZ::Dom::Benchmark
|
||||
}
|
||||
else
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
auto patchInfo = GenerateHierarchicalDeltaPatch(m_before, m_after);
|
||||
benchmark::DoNotOptimize(patchInfo);
|
||||
|
||||
@@ -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();
|
||||
@@ -104,7 +104,7 @@ namespace AZ::Dom::Benchmark
|
||||
PathEntry endOfArray;
|
||||
endOfArray.SetEndOfArray();
|
||||
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
benchmark::DoNotOptimize(name == name);
|
||||
benchmark::DoNotOptimize(name == index);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -141,7 +141,6 @@ namespace UnitTest
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// Create some threads and simulate concurrent allocation and deallocation
|
||||
AZStd::chrono::system_clock::time_point startTime = AZStd::chrono::system_clock::now();
|
||||
{
|
||||
AZStd::thread m_threads[m_maxNumThreads];
|
||||
for (unsigned int i = 0; i < m_maxNumThreads; ++i)
|
||||
@@ -156,8 +155,6 @@ namespace UnitTest
|
||||
m_threads[i].join();
|
||||
}
|
||||
}
|
||||
//AZStd::chrono::microseconds exTime = AZStd::chrono::system_clock::now() - startTime;
|
||||
//AZ_Printf("UnitTest::SystemAllocatorTest::deafult","Time: %d Ms\n",exTime.count());
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
AllocatorInstance<SystemAllocator>::Destroy();
|
||||
|
||||
@@ -288,7 +288,7 @@ namespace Benchmark
|
||||
public:
|
||||
void Benchmark(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
@@ -335,7 +335,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);
|
||||
@@ -424,7 +424,7 @@ namespace Benchmark
|
||||
|
||||
void Benchmark(benchmark::State& state)
|
||||
{
|
||||
for (auto _ : state)
|
||||
for ([[maybe_unused]] auto _ : state)
|
||||
{
|
||||
state.PauseTiming();
|
||||
|
||||
|
||||
+4
-4
@@ -981,7 +981,7 @@ namespace AZ::IO
|
||||
|
||||
AZ_PUSH_DISABLE_WARNING(5233, "-Wunknown-warning-option") // Older versions of MSVC toolchain require to pass constexpr in the
|
||||
// capture. Newer versions issue unused warning
|
||||
auto callback = [numChunks, &numCallbacks, &waitForReads](FileRequestHandle request)
|
||||
auto callback = [&numCallbacks, &waitForReads](FileRequestHandle request)
|
||||
AZ_POP_DISABLE_WARNING
|
||||
{
|
||||
IStreamer* streamer = Interface<IStreamer>::Get();
|
||||
@@ -1052,7 +1052,7 @@ namespace AZ::IO
|
||||
|
||||
AZ_PUSH_DISABLE_WARNING(5233, "-Wunknown-warning-option") // Older versions of MSVC toolchain require to pass constexpr in the
|
||||
// capture. Newer versions issue unused warning
|
||||
auto callback = [numChunks, &waitForReads, &waitForSingleRead, &numReadCallbacks]([[maybe_unused]] FileRequestHandle request)
|
||||
auto callback = [&waitForReads, &waitForSingleRead, &numReadCallbacks]([[maybe_unused]] FileRequestHandle request)
|
||||
AZ_POP_DISABLE_WARNING
|
||||
{
|
||||
numReadCallbacks++;
|
||||
@@ -1076,7 +1076,7 @@ namespace AZ::IO
|
||||
cancels.push_back(m_streamer->Cancel(requests[numChunks - i - 1]));
|
||||
AZ_PUSH_DISABLE_WARNING(5233, "-Wunknown-warning-option") // Older versions of MSVC toolchain require to pass constexpr in the
|
||||
// capture. Newer versions issue unused warning
|
||||
auto callback = [&numCancelCallbacks, &waitForCancels, numChunks](FileRequestHandle request)
|
||||
auto callback = [&numCancelCallbacks, &waitForCancels](FileRequestHandle request)
|
||||
AZ_POP_DISABLE_WARNING
|
||||
{
|
||||
auto result = Interface<IStreamer>::Get()->GetRequestStatus(request);
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user