[Qbs] Who compared build times of Qt Creator with CMake and qbs?
Иван Комиссаров
abbapoh at gmail.com
Wed May 15 18:00:06 CEST 2019
Interesting. Any idea why Qbs is so slow with ccache?
Иван Комиссаров
> 15 мая 2019 г., в 17:29, Orgad Shaneh <orgads at gmail.com> написал(а):
>
> du -shc build-qtc-qbs
> 15G build-qtc-qbs
> 15G total
> du -shc build-qtc-cmake
> 4.0G build-qtc-cmake
> 4.0G total
>
> The number of jobs is default. For qbs it's 40, ninja uses 42.
>
> I tried again without autotests, as Christian suggested:
>
> time qbs -f ../qt-creator/qtcreator.qbs profile:qt-5-11-1 modules.cpp.compilerWrapper:ccache project.withAutotests:false
> cold ccache:
> real 4m58.383s
> user 114m45.623s
> sys 15m38.866s
>
> warm cache:
> real 1m20.800s
> user 16m20.307s
> sys 3m57.194s
>
> time cmake ../qt-creator -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Debug -G Ninja
> real 0m8.256s
> user 0m7.425s
> sys 0m0.827s
>
> time ninja
> cold cache:
> real 5m23.413s
> user 128m25.457s
> sys 16m11.551s
>
> time ninja:
> warm cache:
> real 0m45.964s
> user 7m12.563s
> sys 2m23.616s
>
>
>> On Wed, May 15, 2019 at 5:50 PM Vincent Hui <vincenthk007 at gmail.com> wrote:
>> How many number of threads were used? Is the number of threads used by Qbs equal to the number of threads used by CMake?
>>
>>
>>> On Wed, 15 May 2019 at 22:11, Christian Kandeler <Christian.Kandeler at qt.io> wrote:
>>> On Thu, 16 May 2019 02:01:21 +1200
>>> Christian Gagneraud <chgans at gmail.com> wrote:
>>>
>>> > As well, please note that the current CMake doesn't build as much
>>> > stuff as the qbs one. Not sure the difference is huge, but you need to
>>> > compare "equal jobs".
>>>
>>> For instance, all autotests are missing from the cmake build, so this
>>> alone accounts for a difference of ~100 products. You need to set
>>> "project.withAutotests:false" when building with qbs.
>>>
>>>
>>> Christian
>>> _______________________________________________
>>> Qbs mailing list
>>> Qbs at qt-project.org
>>> https://lists.qt-project.org/listinfo/qbs
>> _______________________________________________
>> Qbs mailing list
>> Qbs at qt-project.org
>> https://lists.qt-project.org/listinfo/qbs
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> https://lists.qt-project.org/listinfo/qbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20190515/9e387262/attachment-0001.html>
More information about the Qbs
mailing list