After upgrading the project to Qt6, we conducted a series of tests on the software, including software size, running speed, and other aspects. This article will provide a brief report on the results of testing our v4.0.0-framework-upgrade-peview version.
Software Size
Qt6 has added many modules and features that Qt5 does not have, supports OpenGL rendering, and optimized QML performance. The volume change of Qt6 and the latest version of MinGW64 (15.1.0) have increased the size of the software installation package by 100MB. The following is detailed data(Clang64):
| v3.4.0 | v4.0.0-framework-upgrade-preview | Growth Percentage | |
|---|---|---|---|
| Software Size | 28.8 MB | 43.6 MB | 51.4 % |
| Qt Libraries | / | / | / |
| Compiler | 453.0MB | 702.3 MB | 55.0 % |
| Total | 488.1MB | 752.1 MB | 54.1 % |
*For the Qt library, as the software statically links Qt, there is no data available here.
Running Speed
1. File Parsing Speed
Due to the possible correlation between parsing speed and software algorithms, this result may not be reliable. Test compiler: MinGW-w64 GCC 15.1.0 64-bit
| v3.4.0 | v4.0.0-framework-upgrade-preview | Growth Percentage | |
|---|---|---|---|
| bits/stdc++.h | 0.104 s(29 FPS) | 0.083 s(36 FPS) | 20.1 % |
| iostream | 0.012 s(250 FPS) | 0.015 s(300 FPS) | 25.0 % |
| Windows.h | 0.021 s(142 FPS) | 0.019 s(157 FPS) | 9.5 % |
*FPS: Files Per Second
2. Launch Time
| v3.4.0 | v4.0.0-framework-upgrade-preview | Growth Percentage | |
|---|---|---|---|
| No File | 1030 ms | 1660 ms | -61 % |
| Create New File(Default) | 3870 ms | 1240 ms | 68 % |
Abnormal data: No File>Growth Percentage. Reason unknown.
Summary
Qt6 has brought good performance improvements to the software, but at the cost of being too bulky. That’s also why we need to treat files using Qt6 as a separate version: it goes against the original intention of lightweight.
We may try compiling a few smaller Qt6 files ourselves specifically for this software.