[+] Benchmark std::shared_timed_mutex
[*] Update RT/Bug fixes [*] Update build scripts
This commit is contained in:
parent
112b118c71
commit
eb1741d0d4
@ -1 +1 @@
|
|||||||
Subproject commit 5d12f1a203ff731b685c0163ad62671857b34f4d
|
Subproject commit 2a0ff9ab0cfb3d4235000559e6ea8bc8ef5d9a52
|
@ -1 +1 @@
|
|||||||
Subproject commit 21e2df1ebb589c4845fb644c255ca0b2d7129782
|
Subproject commit af12c8ac8c20bdf48f038f2ecc96c13830e8f57f
|
@ -15,6 +15,8 @@
|
|||||||
#include <semaphore>
|
#include <semaphore>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <shared_mutex>
|
||||||
|
|
||||||
TEST(Allocationless, SOO)
|
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:
|
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
|
08:13:17 [Debug] | [Benchmark] Mutex Benchmark 1'000'000 took 10.23965ms
|
||||||
|
Loading…
Reference in New Issue
Block a user