aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Improve Vulkan backend support handling when requested by userHEADdevPasi Petäjäjärvi2023-10-111-3/+10
| | | | | | | | | | | | | Previous usage of defines fails as those are available on compile time when Vulkan SDK is installed and cause QT_QPA_PLATFORM=vkkhrdisplay to bet set for desktop also. Since dd3840a1a201318c8f089dc7d34ec38f64e05b4e we can get platform plugin name before creating actual QGuiApplication instance. For older Qt versions provide hint message for embedded for possible need to set env variable. Also check if Qt was build with Vulkan support and if not inform user and exit application. Change-Id: I781f7e4e048dd8417aba14ecc2cb919b1b9ae136 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Fix typo in property name and accessPasi Petäjäjärvi2023-08-153-3/+3
| | | | | Change-Id: I3900e9b9164222af90590018d478020cb66f6bc2 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Add screen refreshrate as recordable parameter for testrunPasi Petäjäjärvi2023-08-155-4/+15
| | | | | Change-Id: I68db0b1720f21fec9492e9417258101024baf7ff Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Add option to run tests with Vulkan backendPasi Petäjäjärvi2023-08-153-40/+97
| | | | | Change-Id: Iec76a086657ad8cda88c4590f68f55b0636bf958 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Print sensible information when compared test result is zeroPasi Petäjäjärvi2023-08-151-1/+3
| | | | | | | | | We cannot calculate percentage improvement from zero, so instead print message stating this with test result it's being compared. Change-Id: Icea838931782fa661ddec505f5dd2ce1377e5a51 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Replace qAsConst with std::as_constDaniel Smith2023-04-171-1/+1
| | | | | | | | QT_NO_AS_CONST is now defined for all modules, so this needs to be updated in qmlbench tooling. Change-Id: I88a8215970cf2860f31135b0e4af377a702dfe0f Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
* Fix usage of QtGraphicalEffects in manual benchmarksPasi Petäjäjärvi2022-12-121-1/+1
| | | | | Change-Id: I0bc2d5e17d443b4569001a92795f1fcd34a18c76 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Fix FontLoader testPasi Petäjäjärvi2022-09-151-11/+0
| | | | | | | FontLoader.name is read-only in Qt6 Change-Id: I47c37419d55ca0721c8f7bb3f7fd22d76fa96b99 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Remove duplicate line from verbose outputPasi Petäjäjärvi2022-09-151-1/+0
| | | | | Change-Id: Idac775aec2f698a03c9390178c58fe1b3b45da85 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Fix recording correct display resolution for json result on embeddedPasi Petäjäjärvi2022-09-152-8/+16
| | | | | Change-Id: I7600b23043a38e881d90de6eb980fef54e77e764 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Fix usage of QtGraphicalEffects in testsPasi Petäjäjärvi2022-09-154-3/+4
| | | | | Change-Id: I2c6e2f71463a80ebf47ad2553ad9df8b0e2f29f3 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Fix compositesingleton.qml benchmarkUlf Hermann2022-01-251-1/+2
| | | | | | | | | | If we're going to add QML modules with qt_add_resources (which is a bad idea, to be fixed separately), we should at least add complete QML modules. Change-Id: If029718c5c427dda4c62baeffed628869ef2d347 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
* Use a resource file for benchmarks, and add some Android goodies and fixesVille Voutilainen2022-01-04208-12/+257
| | | | | | Task-number: QTBUG-94148 Change-Id: I7cc0b1ade676c4f7f963915315c00e317582e56f Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
* Change the QMLBench project name to be different than the executableDaniel Smith2021-06-141-1/+1
| | | | | | | | Qt's Cmake build system no longer allows the project name to be the same as any of the executables to be built. Change-Id: I1e28acacc4a1e48440f97f979c5417df650a47c2 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Fix build without Qt Quick 3DMitch Curtis2021-05-121-0/+6
| | | | | | Change-Id: I5e181231080bbd39077b3d8b2f2d6ff8cdbae8b2 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Make sure default surface format supports Qt Quick 3DEskil Abrahamsen Blomfeldt2021-04-283-6/+9
| | | | | | | | | | | We need to pick an appropriate OpenGL version in order to support all the QQ3D benchmarks. This also means we have to move the setup for the surface format until after initializing the GUI application, but having this before is not actually needed in our case anyway. Change-Id: I98ad3399b0a00aba7252f4c8b646a073c8ec1584 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Remove the INSTALLS directives from the build systemUlf Hermann2021-03-254-17/+0
| | | | | | | Forcing an installation into /root is ... less than friendly. Change-Id: I2ea451a1faea88a04dadfd68dec48ffb56601aac Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Add a .qmake.conf fileUlf Hermann2021-03-251-0/+2
| | | | | | | | Generally a good idea if we're going to use any more advanced qmake features. Change-Id: I80fb590bc0f081a12be0f063b1c98b26401a3399 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Remove compat directoryUlf Hermann2021-03-255-1643/+0
| | | | | | | No one needs to build this with Qt 5.0 or 5.1 anymore. Change-Id: I1707781a7a1fc4c009bfb24be49691ad488a5d1f Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Fix disabling vsync for frame-count shellEskil Abrahamsen Blomfeldt2021-03-181-12/+13
| | | | | | | | | | | | | | | The frame-count shell depends on disabling vsync to be able to render as many frames as it can during 20 seconds. But the logic was inverted in the condition that checked for the --shell parameter, so the frame-count shell would never be detected and the swap interval would never be set to 0. This patch also updates the logic to take into consideration that frame-count is the default now, so it will default to disabling vsync. Change-Id: I9d866a7fddfa46266ba1c8245b84e8389e00b154 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
* Add quick3d multiview benchmarkJonas Karlsson2021-03-041-0/+213
| | | | | | | | Task-Id: QTBUG-78695 Change-Id: I39cd000f38e7b86c13a45e0e80831f686afdd76a Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Various c++ fixesJonas Karlsson2021-03-023-9/+9
| | | | | | | | | | | - Add override - Use range based for loops - Constify Task-Id: QTBUG-78695 Change-Id: I2084e7266447e95c3e84270d69b7ece07c593d84 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Add missing fileJonas Karlsson2021-02-251-0/+0
| | | | | | | | Missing from d10d9334d04de985ace1ea46bbfdf63c49a3d07f Task-Id: QTBUG-78695 Change-Id: Iab8ebb6b1384b81157bd506777790232cde035e4 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Add quick3d lights benchmarkJonas Karlsson2021-02-251-0/+325
| | | | | | Task-Id: QTBUG-78695 Change-Id: Ifbf61ac30df9029d4c4210d9c9687f1c74f8c46c Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Add quick3d shapespawner benchmarkJonas Karlsson2021-02-253-0/+189
| | | | | | Task-Id: QTBUG-78695 Change-Id: Icc404bb42b5ccbe1e050529852c3593461cb04b2 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Add quick3d principledmaterial benchmarkJonas Karlsson2021-02-255-0/+158
| | | | | | Task-Id: QTBUG-78695 Change-Id: Ibcc7abd32be2c9ed66aa34b559ddec6ef59b4bc8 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Fix qml deprecation warningJonas Karlsson2021-02-251-1/+1
| | | | | | Task-Id: QTBUG-78695 Change-Id: I6f76603940a45bc760052c9ca94b1807aa11e4e3 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Bail on invalid shell optionJonas Karlsson2021-02-251-2/+6
| | | | | | Task-Id: QTBUG-78695 Change-Id: Ib0896b4e7b401521eef38e1b27901160757256fa Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Readme: fix typosJonas Karlsson2021-02-251-2/+2
| | | | | | Task-Id: QTBUG-78695 Change-Id: If7e8e5e9d631d9eb84bbdc3fd7c02e01ab24440c Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Default to Basic controls style if not already setMitch Curtis2020-11-301-0/+4
| | | | | | | | | | | | | | | In Qt 6, the Default style was renamed to Basic, and the style that is used by default now depends on which platform the application is run on. Previously the Default (now Basic) style was used by default. So, restore the Basic style as the default. This ensures consistent results should the default ever change again. Task-number: QTBUG-88672 Change-Id: If96dd9cccd5fd05256221991bfacb4ae7bd3a1c1 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Add CMakeListsDaniel Smith2020-11-267-0/+102
| | | | | | | Add support for building qmlbench with CMake Change-Id: I85fd6ec6ef39beed8a8e067e121ddbca29b50bad Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix random number generationLaszlo Agocs2020-11-201-1/+2
| | | | | | | | | | | | The table was filled with the same one number, leading to significantly different visual results compared to 5.15, because tests relying on random number generation for item positions placed all 1000 or so items to the exact same position in the scene. Amends 01a08c32dade506bcecb54e29f477d1ac1954bd2 Change-Id: I817de76b7142b68751b801ca9891d2afc7234acf Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Adapt to qt6 changesDaniel Smith2020-09-302-2/+4
| | | | | | | | | Use qmlRegisterAnonymousType since qmlRegisterType with 0 params is deprecated. Use QRandomGenerator instead of qrand() Change-Id: Ic25c445fa8a9e08147093ea40f1b87f4067ef8c1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Fix QString - QByteArray mismatch that is now an errorLaszlo Agocs2020-06-301-1/+1
| | | | | Change-Id: I97482601d942db565ef760177a8df09c2c4edd87 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Enable effect-based benchmarksLaszlo Agocs2020-06-185-2/+10
| | | | | | Fixes: QTBUG-85063 Change-Id: I7c6aa2b39994aa5c87d121e96b362d6f8b428387 Reviewed-by: Christian Strømme <christian.stromme@qt.io>
* Fix QDateTime build errorMitch Curtis2020-05-181-1/+1
| | | | | | | Its constructor needs a QDate and QTime, not just a QDate. Change-Id: Id61995f84ecf7fd83645fcaac114c376001068ee Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add test for large layout where items change dynamicallyJan Arve Sæther2020-05-051-0/+36
| | | | | Change-Id: I712e2867e0906690ffdbee5565ff3da1ec9c9ae9 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
* Add readme for making new benchmarksDaniel Smith2020-01-282-0/+128
| | | | | | | | Provide documentation on how benchmark files are constructed, along with some usage examples. Change-Id: Ica3d12ece98e8c1f37d0290bbdf6671c91e539c1 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Port away from toList() and toSet()Laszlo Agocs2020-01-151-5/+5
| | | | | | | These are already removed in dev. Change-Id: I1614d821f5320a27d0b83743e1389a5c91d15464 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Add a creation benchmark for right-elided TextMitch Curtis2019-10-041-0/+17
| | | | | | Task-number: QTBUG-76229 Change-Id: I0c6d4c576075c9677af19c89756953cf21456f75 Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Add benchmark for DropShadowMichael Brasser2019-06-251-0/+48
| | | | | | Change-Id: I76bad16f97871aaa3d7238c5e13189ccccc441d2 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Do not rely on auto in lambdaLaszlo Agocs2019-06-251-1/+1
| | | | | | | | | Fails to build with XCode 10 otherwise. Probably missing the enablement of C++14 or something. But for now just stick with C++11. Change-Id: I80845e3fb965b5781fd281f3d758cc5517b9e89f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Add a simple benchmark showing a regression in JS Date performanceRobin Burchell2019-05-061-0/+13
| | | | | | Change-Id: I01be0574d6a09abe44336bcbe01ab6360396321f Task-number: QTBUG-75585 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Prospective build fix for older gcc versionsSimon Hausmann2019-02-211-1/+5
| | | | | | | | main.cpp:161:69: error: no matching function for call to ?Result::Result(<brace-enclosed initializer list>)? differencesInPercent << Result{testName, differenceInPercent}; Change-Id: I5cbc5495b42dd074fefa4b4e3db1b6d95b3586a0 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Add simple helper program to compare JSON outputSimon Hausmann2019-02-204-1/+191
| | | | | | Change-Id: I7a21c214e302a5b2422185659e261db11374f62c Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io> Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Add a creation benchmark for Menus with custom delegatesMitch Curtis2018-10-121-0/+47
| | | | | Change-Id: I1f984d2290aa78904b5a61e18e6439438291fb99 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* Add benchmark for LinearGradientMichael Brasser2018-07-191-0/+22
| | | | | Change-Id: I47c04a1c5a3b90d7989d20992cbb0b3592dc9632 Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
* Add benchmark for bindings referencing QML singletonMichael Brasser2018-07-133-0/+26
| | | | | Change-Id: If91b39f75e2215a4af125a226fa4b82086f3bd46 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* sum10k: Add a fixed version, and note the breakage on the originalRobin Burchell2018-06-152-0/+26
| | | | | | | | Erik noted that the test here is actually broken, but rather than change the benchmark, let's add a working one alongside it. Change-Id: I68058bedcc9760c86a600d5d34da0f8147062692 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* README.md: explain resultsMitch Curtis2018-01-181-0/+27
| | | | | | | | Mention that higher frames for the frame-count shell is better, lower CoV is better, etc. Change-Id: I33daa2ae168c7e64d59eb418f4e9df7232e24fce Reviewed-by: Robin Burchell <robin.burchell@crimson.no>