diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-10-01 08:49:00 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-12-20 14:27:50 (GMT) |
commit | 00c4e6d3d4e9196dc1c418c9269fcbed2f49dc87 (patch) | |
tree | 891307dd6ae6865abfec14ee1ae20214a6f61b07 /tests/benchmarks | |
parent | 2a508c6279af71c16d04ad4e764f101ea32a1c05 (diff) | |
download | Qt-00c4e6d3d4e9196dc1c418c9269fcbed2f49dc87.zip Qt-00c4e6d3d4e9196dc1c418c9269fcbed2f49dc87.tar.gz Qt-00c4e6d3d4e9196dc1c418c9269fcbed2f49dc87.tar.bz2 |
Add baseline test data to measure test overhead
Also give the existing test data meaningful names
Reviewed-by: joao
Diffstat (limited to 'tests/benchmarks')
-rw-r--r-- | tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp b/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp index b918014..7a6b45c 100644 --- a/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp +++ b/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp @@ -210,11 +210,12 @@ void tst_QMutex::contendedNative_data() { QTest::addColumn<int>("iterations"); QTest::addColumn<int>("msleepDuration"); - QTest::newRow("-1") << 100 << -1; - QTest::newRow("0") << 100 << 0; - QTest::newRow("1") << 10 << 1; - QTest::newRow("2") << 10 << 2; - QTest::newRow("10") << 10 << 10; + QTest::newRow("baseline") << 0 << -1; + QTest::newRow("no msleep") << 1000 << -1; + QTest::newRow("msleep(0)") << 1000 << 0; + QTest::newRow("msleep(1)") << 10 << 1; + QTest::newRow("msleep(2)") << 10 << 2; + QTest::newRow("msleep(10)") << 10 << 10; } class NativeMutexThread : public QThread |