Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37252

Qt5 qmake performance issue - 8 times slower than Qt4 qmake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.2.1, 5.12.2
    • Build tools: qmake
    • None
    • Windows 7 64 Bit, Qt5.2.1 and Qt4.8.4, MinGW that ships with Qt5.2.1, AVG Virus Scanner

    Description

      Hi,

      we ported a large Qt project from Qt4 to Qt5 and noticed, that Qt5 qmake is ca. 8 times slower that Qt4 qmake.
      The attached QtCreator output shows the two qmake runs for the same project. The Qt4 qmake run needs 26 seconds but the Qt5 qmake needs 3 minutes and 18 seconds. That is ca. 8 times slower.

      The Qt5 qmake is the qmake.exe that ships with the Qt 5.2.1 MinGW installation. The Qt4 qmake has been build with the exact same compiler – so this is not related to compiler.

      The complete output is available here: http://pastebin.com/ysH2B1RU

          Qt4 qmake run
          =======================================
          07:49:47: Führe Schritte für Projekt qtlabb aus...
          07:49:47: Starte "c:\codingxp\qt\qt\bin\qmake.exe" C:\CodingXP\cetoni_repository\usl\env\qt\qtlabb\qtlabb.pro -r -spec win32-g++ "CONFIG+=declarative_debug"
          Reading C:/CodingXP/cetoni_repository/usl/env/qt/qtlabb/common/common.pro [C:/CodingXP/cetoni_projects/build-qtlabb-Desktop_Qt_4_8_4-Debug/common]
          Reading C:/CodingXP/cetoni_repository/usl/env/qt/qtlabb/3rdparty/3rdparty.pro [C:/CodingXP/cetoni_projects/build-qtlabb-Desktop_Qt_4_8_4-Debug/3rdparty]
          ...
          07:50:13: Der Prozess "c:\codingxp\qt\qt\bin\qmake.exe" wurde normal beendet.
          07:50:13: Verstrichene Zeit: 00:26.
           
           
          Qt5 qmake run
          ====================================
          07:52:00: Führe Schritte für Projekt qtlabb aus...
          07:52:00: Starte "C:\CodingXP\Qt5.0.2\5.0.2\mingw47_32\bin\qmake.exe" C:\CodingXP\cetoni_repository\usl\env\qt\qtlabb\qtlabb.pro -r -spec win32-g++ "CONFIG+=debug" "CONFIG+=declarative_debug" "CONFIG+=qml_debug"
          Reading C:/CodingXP/cetoni_repository/usl/env/qt/qtlabb/common/common.pro [C:/CodingXP/cetoni_projects/build-qtlabb-Desktop_Qt_5_0_2_mingw47_32-Debug/common]
          Reading C:/CodingXP/cetoni_repository/usl/env/qt/qtlabb/3rdparty/3rdparty.pro [C:/CodingXP/cetoni_projects/build-qtlabb-Desktop_Qt_5_0_2_mingw47_32-Debug/3rdparty]
          Reading C:/CodingXP/cetoni_repository/usl/env/qt/qtlabb/widgets/widgets.pro [C:/CodingXP/cetoni_projects/build-qtlabb-Desktop_Qt_5_0_2_mingw47_32-Debug/widgets]
          Reading C:/CodingXP/cetoni_repository/usl/env/qt/qtlabb/itemviews/itemviews.pro [C:/CodingXP/cetoni_projects/build-qtlabb-Desktop_Qt_5_0_2_mingw47_32-Debug/itemviews]
          Reading C:/CodingXP/cetoni_repository/usl/env/qt/qtlabb/hid/hid.pro [C:/CodingXP/cetoni_projects/build-qtlabb-Desktop_Qt_5_0_2_mingw47_32-Debug/hid]
          ...
          07:55:18: Der Prozess "C:\CodingXP\Qt5.0.2\5.0.2\mingw47_32\bin\qmake.exe" wurde normal beendet.
          07:55:18: Verstrichene Zeit: 03:18.
      
      

      qmake4 duration: 00:26
      qmake5 duration: 03:18

      Attachments

        1. image-2019-03-21-15-19-50-638.png
          image-2019-03-21-15-19-50-638.png
          11 kB
        2. promotest.zip
          2 kB
        3. qmake_fast.png
          qmake_fast.png
          11 kB
        4. qmake_slow.png
          qmake_slow.png
          9 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kkohne Kai Köhne
              ukindler Uwe Kindler
              Votes:
              9 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes