mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-18 04:10:33 +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;
|
||||
sw.start();
|
||||
|
||||
const int LOOP_COUNT = 100000000;
|
||||
for (int i = 0 ; i < LOOP_COUNT ; ++i)
|
||||
{
|
||||
mtx.lock();
|
||||
mtx.unlock();
|
||||
}
|
||||
const int LOOP_COUNT = 1000000000;
|
||||
|
||||
mtx.lock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user