Add test data for string forms of numbers.
authorRobin Burchell <robin+qt@viroteck.net>
Tue, 28 Feb 2012 19:49:25 +0000 (20:49 +0100)
committerQt 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

index db33200..f7c0f66 100644 (file)
@@ -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()