qt5base-lts/tests/benchmarks/corelib
David Faure a8ae8e3130 QDateTime::fromString(): improve performance by 33%
getMaximum() and getMinimum(), called during parsing, create new
QDateTime instances, which on Linux end up calling mktime().
Making these static (for the common case of LocalTime spec)
improves performance dramatically, when parsing several date/times.

tests/benchmarks/corelib/tools/qdatetime/ (after fixing it to
actually parse a valid date/time) says:
 RESULT : tst_QDateTime::fromString():
-     36,742,060 instruction reads per iteration (total: 36,742,060, iterations: 1)
+     24,230,060 instruction reads per iteration (total: 24,230,060, iterations: 1)

Change-Id: I0c3931285475bf19a5be8cba1486ed07cbf5e134
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-01-03 13:37:49 +00:00
..
codecs Updated license headers 2016-01-21 18:55:18 +00:00
io Remove Windows CE from tests (others). 2016-03-31 06:14:04 +00:00
json Updated license headers 2016-01-21 18:55:18 +00:00
kernel QMetaType: Add a benchmark covering creation of QVariant from an enum 2016-07-22 12:47:05 +00:00
mimetypes Updated license headers 2016-01-21 18:55:18 +00:00
plugin Updated license headers 2016-01-21 18:55:18 +00:00
thread Add a benchmark for QReadWriteLock 2016-08-10 09:05:14 +00:00
tools QDateTime::fromString(): improve performance by 33% 2017-01-03 13:37:49 +00:00
corelib.pro test: Moving tst_QMimeDatabase::inheritsPerformance() test 2012-10-31 19:56:42 +01:00