diff options
Diffstat (limited to 'tests/benchmarks/corelib')
-rw-r--r-- | tests/benchmarks/corelib/text/qlocale/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/benchmarks/corelib/text/qlocale/main.cpp b/tests/benchmarks/corelib/text/qlocale/main.cpp index 7047338800..7f6eeae993 100644 --- a/tests/benchmarks/corelib/text/qlocale/main.cpp +++ b/tests/benchmarks/corelib/text/qlocale/main.cpp @@ -37,6 +37,7 @@ private Q_SLOTS: void toUpper_QLocale_1(); void toUpper_QLocale_2(); void toUpper_QString(); + void number_QString(); }; static QString data() @@ -66,6 +67,14 @@ void tst_QLocale::toUpper_QString() QBENCHMARK { LOOP(QString t(s.toUpper())) } } +void tst_QLocale::number_QString() +{ + QString s; + QBENCHMARK { + s = QString::number(12345678); + } +} + QTEST_MAIN(tst_QLocale) #include "main.moc" |