diff options
author | Robin Burchell <robin+qt@viroteck.net> | 2012-02-28 20:49:25 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-29 22:39:00 +0100 |
commit | 0f3d9b1d84354ed19e2522869b1164f135ed8a51 (patch) | |
tree | c177350e2c7bb5bc6e65d30af9c09333f9e0c3cb /tests/benchmarks/corelib/tools | |
parent | 693a286600e601fde05049c0819034ed8f7a71d6 (diff) |
Add test data for string forms of numbers.
Similar to the UUID benchmark, but won't have any non-numerical characters.
Change-Id: I7487c97cab96fd53c180fe12061e7be3ca96e883
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Diffstat (limited to 'tests/benchmarks/corelib/tools')
-rw-r--r-- | tests/benchmarks/corelib/tools/qhash/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/benchmarks/corelib/tools/qhash/main.cpp b/tests/benchmarks/corelib/tools/qhash/main.cpp index db33200d43..f7c0f66df3 100644 --- a/tests/benchmarks/corelib/tools/qhash/main.cpp +++ b/tests/benchmarks/corelib/tools/qhash/main.cpp @@ -135,6 +135,18 @@ void tst_QHash::data() QTest::newRow("dictionary") << dict; } + { + // string versions of numbers. + static QStringList numbers; + + if (numbers.isEmpty()) { + for (int i = 5000000; i < 5005001; ++i) + numbers.append(QString::number(i)); + } + + QTest::newRow("numbers") << numbers; + } + } void tst_QHash::qhash_qt4() |