mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-07 07:19:08 +01:00
Simplified benchmark
This commit is contained in:
parent
6ec9784743
commit
b663902c68
@ -23,12 +23,7 @@ void Benchmark(Mtx& mtx, std::string const& label)
|
|||||||
Poco::Stopwatch sw;
|
Poco::Stopwatch sw;
|
||||||
sw.start();
|
sw.start();
|
||||||
|
|
||||||
const int LOOP_COUNT = 100000000;
|
const int LOOP_COUNT = 1000000000;
|
||||||
for (int i = 0 ; i < LOOP_COUNT ; ++i)
|
|
||||||
{
|
|
||||||
mtx.lock();
|
|
||||||
mtx.unlock();
|
|
||||||
}
|
|
||||||
|
|
||||||
mtx.lock();
|
mtx.lock();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user