projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
693a286
)
Add test data for string forms of numbers.
author
Robin Burchell
<robin+qt@viroteck.net>
Tue, 28 Feb 2012 19:49:25 +0000
(20:49 +0100)
committer
Qt by Nokia
<qt-info@nokia.com>
Wed, 29 Feb 2012 21:39:00 +0000
(22:39 +0100)
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>
tests/benchmarks/corelib/tools/qhash/main.cpp
patch
|
blob
|
history
diff --git
a/tests/benchmarks/corelib/tools/qhash/main.cpp
b/tests/benchmarks/corelib/tools/qhash/main.cpp
index
db33200
..
f7c0f66
100644
(file)
--- 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()