qt5base-lts/tests/auto/corelib/text
Ivan Solovev 1e36eedb7f tst_QStringApiSymmetry: use QCOMPARE_EQ instead of QCOMPARE
This allows to defer the toString() invocation until it is really
needed, and so allows to speed-up the test execution.

I was testing a release shared developer build, running
tst_QStringApiSymmetry 10 times before the change, and 10 times after
the change, and then taking the average execution duration, as
reported in the log.

Before the change (using QCOMPARE): 51ms
After the change (using QCOMPARE_EQ): 45ms

As we see from the results, the benefit is around 10%.

Task-number: QTBUG-98873
Task-number: QTBUG-98874
Change-Id: Ifcfbcca1f2c1eaf82c7f1a9098fa1512a269cbf8
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2022-06-03 20:37:51 +00:00
..
qanystringview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbytearray Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbytearrayapisymmetry Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbytearraylist Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbytearraymatcher Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbytearrayview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbytedatabuffer Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qchar Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcollator Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qlatin1stringview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qlocale Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qregularexpression Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstring Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstring_no_cast_from_bytearray Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringapisymmetry tst_QStringApiSymmetry: use QCOMPARE_EQ instead of QCOMPARE 2022-06-03 20:37:51 +00:00
qstringbuilder Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringconverter QStringConverter: Do not crash if invalid 2022-05-25 16:38:35 +02:00
qstringiterator Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringlist Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringmatcher Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringtokenizer Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextboundaryfinder tst_qtextboundaryfinder: Remove full copies of data files 2022-05-24 23:07:43 +02:00
qunicodetools Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Android: Enable building of the QLocale test case 2022-05-23 19:12:06 +00:00