summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-05-21 12:47:44 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-07-09 20:15:58 +0200
commit94aa350621e8a5c4ad3b438c10fc1c0a9ed3bc8a (patch)
treea2af32e27680383ba30981654ba9544947a01048 /tests/benchmarks
parent9c8d1ca18b48dbcc89dda1b9bacdf7d49c7fc754 (diff)
QTestLib: Speed up QCOMPARE for float, double, int, unsigned
Factor out a helper template formatting the QCOMPARE failure message delaying the formatting of the parameters with toString() and use that for float, double, int and unsigned. This removes the need to always format and allocate strings for the operands even in the success case, speeding up the QColor test from 3.3s to 700ms (Windows/release). Task-number: QTBUG-38890 Change-Id: I999484765bdaed921d3fc35f35a9fbbcd82a9704 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/benchmarks')
0 files changed, 0 insertions, 0 deletions