[+] Benchmark std::shared_timed_mutex

[*] Update RT/Bug fixes
[*] Update build scripts
This commit is contained in:
Reece Wilson 2023-09-18 21:27:22 +01:00
parent 112b118c71
commit eb1741d0d4
3 changed files with 27 additions and 2 deletions

@ -1 +1 @@
Subproject commit 5d12f1a203ff731b685c0163ad62671857b34f4d
Subproject commit 2a0ff9ab0cfb3d4235000559e6ea8bc8ef5d9a52

@ -1 +1 @@
Subproject commit 21e2df1ebb589c4845fb644c255ca0b2d7129782
Subproject commit af12c8ac8c20bdf48f038f2ecc96c13830e8f57f

View File

@ -15,6 +15,8 @@
#include <semaphore>
#endif
#include <shared_mutex>
TEST(Allocationless, SOO)
{
{
@ -322,6 +324,29 @@ TEST(Mutex, Benchmark)
}
}
{
SysBenchmark("RW-Lock 19 Benchmark 1'000'000\t\t[std::shared_timed_mutex]\t");
for (AU_ITERATE_N(i, 1'000'000))
{
std::shared_timed_mutex rwLock;
rwLock.lock();
rwLock.unlock();
}
}
{
SysBenchmark("RW-Lock 20 Benchmark 1'000'000 [no-new]\t[std::shared_timed_mutex]\t");
std::shared_timed_mutex rwLock;
for (AU_ITERATE_N(i, 1'000'000))
{
rwLock.lock();
rwLock.unlock();
}
}
/*
Windows 7, i9 9900k (Q4 2018) @ 5GHz under KVM (v5.16.16), modified OVMF/EDK II, and modified QEMU:
08:13:17 [Debug] | [Benchmark] Mutex Benchmark 1'000'000 took 10.23965ms