diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-04-22 12:18:45 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-05-18 10:45:05 (GMT) |
commit | 34a37c95a5130af262854eb7a7ef041908cc7aa8 (patch) | |
tree | b28e86afb9e5e55419dc4f1fda9299abadbb926a /doc/src/snippets/code/src_script_qscriptvalue.cpp | |
parent | c25a6e090c8074e68d7eb40f2533da8bab5e7dd8 (diff) | |
download | Qt-34a37c95a5130af262854eb7a7ef041908cc7aa8.zip Qt-34a37c95a5130af262854eb7a7ef041908cc7aa8.tar.gz Qt-34a37c95a5130af262854eb7a7ef041908cc7aa8.tar.bz2 |
Benchmark for QMutex.
This currently only cover the case when there is no contention
$ ./tst_bench_qmutex noThread -callgrind
********* Start testing of tst_QMutex *********
Config: Using QTest library 4.7.0, Qt 4.7.0
PASS : tst_QMutex::initTestCase()
RESULT : tst_QMutex::noThread():"noLock":
60,000,054 instruction reads per iteration (total: 60,000,054, iterations: 1)
RESULT : tst_QMutex::noThread():"QMutexInline":
240,000,057 instruction reads per iteration (total: 240,000,057, iterations: 1)
RESULT : tst_QMutex::noThread():"QMutex":
380,000,056 instruction reads per iteration (total: 380,000,056, iterations: 1)
RESULT : tst_QMutex::noThread():"QMutexLocker":
240,000,058 instruction reads per iteration (total: 240,000,058, iterations: 1)
PASS : tst_QMutex::noThread()
PASS : tst_QMutex::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of tst_QMutex *********
$ make && ./tst_bench_qmutex noThread
********* Start testing of tst_QMutex *********
Config: Using QTest library 4.7.0, Qt 4.7.0
PASS : tst_QMutex::initTestCase()
RESULT : tst_QMutex::noThread():"noLock":
27 msecs per iteration (total: 27, iterations: 1)
RESULT : tst_QMutex::noThread():"QMutexInline":
212 msecs per iteration (total: 212, iterations: 1)
RESULT : tst_QMutex::noThread():"QMutex":
257 msecs per iteration (total: 257, iterations: 1)
RESULT : tst_QMutex::noThread():"QMutexLocker":
212 msecs per iteration (total: 212, iterations: 1)
PASS : tst_QMutex::noThread()
PASS : tst_QMutex::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of tst_QMutex *********
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptvalue.cpp')
0 files changed, 0 insertions, 0 deletions