qt6-bb10/tests/benchmarks/corelib/tools
Edward Welbourne b5950f6aff Use QChar::fromUcs4(i) rather than QChar(i) on out-of-range i
Follow-up to commit 915be6606e, catching
some benchmarks that took for granted they can assign an arbitrary int
to QChar. Since 6.0 this has triggered an assertion.

Given the choice between limiting the range (from 100000 to 0x10000)
and actually handling the out-of-range values as UCS-4 data, the
latter seemed like a more interesting test.

At the same time, take the construction of the strings out of the
loop, as that's not a QMap performance matter, it's a QString one.

Pick-to: 6.1 6.2
Task-number: QTBUG-91713
Change-Id: Id6abab08b5c879f0f764350f66d6aa1dd9f1620a
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
2021-07-22 18:49:16 +02:00
..
containers-associative Remove qmake project files for benchmarks 2021-02-01 21:14:01 +01:00
containers-sequential Fix some warnings 2021-03-29 16:06:25 +02:00
qcontiguouscache Remove qmake project files for benchmarks 2021-02-01 21:14:01 +01:00
qcryptographichash Fix some warnings 2021-03-29 16:06:25 +02:00
qhash Remove qmake project files for benchmarks 2021-02-01 21:14:01 +01:00
qlist Limit some QList benchmark data-set sizes to avoid time-outs 2021-07-15 17:06:54 +02:00
qmap Use QChar::fromUcs4(i) rather than QChar(i) on out-of-range i 2021-07-22 18:49:16 +02:00
qrect Fix some warnings 2021-03-29 16:06:25 +02:00
qringbuffer Remove qmake project files for benchmarks 2021-02-01 21:14:01 +01:00
qset Remove qmake project files for benchmarks 2021-02-01 21:14:01 +01:00
qstack Remove qmake project files for benchmarks 2021-02-01 21:14:01 +01:00
qvector Rename QVector benchmark and its main.cpp for consistency 2021-07-19 18:55:51 +02:00
CMakeLists.txt Purge qalgorithm.h of deprecated API 2020-08-28 21:22:32 +02:00