qt5base-lts/tests/benchmarks/corelib/tools
Robin Burchell 8060dd3c42 Add a string hash implementation similar to the one in Java.
This uses a similar runtime to the approach of sampling part of the string, with
the benefit that it doesn't reduce the sampling to subsections of the string.

Ironically, Java used to only sample parts of the string as well, but found that
it produced too many collisions with certain string types, so they moved to use
this method.

RESULT : tst_QHash::qhash_qt4():
     0.0537 msecs per iteration (total: 110, iterations: 2048)
PASS   : tst_QHash::qhash_qt4()
RESULT : tst_QHash::qhash_faster():
     0.015 msecs per iteration (total: 62, iterations: 4096)
PASS   : tst_QHash::qhash_faster()
RESULT : tst_QHash::javaString():
     0.016 msecs per iteration (total: 66, iterations: 4096)

Change-Id: Icb5da341ab6445163f4217650a0bdb3903e50210
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-20 12:42:27 +01:00
..
containers-associative Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
containers-sequential Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qbytearray Remove execute permission from files that don't need it. 2012-01-10 01:24:22 +01:00
qchar Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qcontiguouscache Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qhash Add a string hash implementation similar to the one in Java. 2012-01-20 12:42:27 +01:00
qlist Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qrect Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qregexp Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qstring Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qstringbuilder Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qstringlist Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
qvector Remove the Q_TYPENAME define. 2012-01-08 23:54:56 +01:00
tools.pro Fix compilation of Benchmark tests on Windows. 2011-12-01 09:05:12 +01:00