qt5base-lts/tests/benchmarks/corelib
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
..
codecs Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
io Remove execute permission from files that don't need it. 2012-01-10 01:24:22 +01:00
kernel Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
plugin Add V3(md5) and V5(sha1) version for DCE in QUuid 2012-01-10 05:12:20 +01:00
thread Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
tools Add a string hash implementation similar to the one in Java. 2012-01-20 12:42:27 +01:00
corelib.pro Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00