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

[Reg 5.14.2 -> 5.15.0] Significant performance decrease when loading QtWebEngine pages simultaneously in many windows

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • 26429d108 (6.5), 3cbb89595 (dev), f235ebd6f (6.6), f46e2f2d6 (dev), 5c442bb23 (6.6), 30c141c64 (6.5)

    Description

      There is significant decrease in performance when loading QtWebEngine pages simultaneously in many windows.

      Testing was done initially by comparing Qt 5.12.12 with Qt 5.15 and Qt 6.2.9 and Qt 6.5.2. Last known good seems to be Qt 5.14.2

      Qt 5.12.12 outperforms the latest supported versions when downloading simultaneously multiple heavy webpages. Please find the reproducer attached. The test program uses yahoo finance to load the webpages, please note that traffic can vary when stock trading is open vs closed, increasing the number of opened windows makes the difference more evident, if one cannot reproduce with default.

      Additionally if testing in EU, the test breaks due to EU's requirement for using cookie pop ups for data collection approvals etc. so using VPN/proxy to route via US is recommended in order to avoid pop ups.

      In general, testing is better to be done in release mode due to:
      https://bugreports.qt.io/browse/QTBUG-110504

      Way to reproduce:
      1) Build and run the attached example in Release mode with unaffected version of Qt (E.g. 5.12.12) and after one has done testing (letting it run couple of times from yellow to green/red should be enough), build and run with affected version of Qt (E.g. 6.5.2)

      2) Application opens 20 windows and starts to download webpages, color in side of the window is yellow when downloading is in progress, and turns green once finished unless it downloads longer than 60s (color turns to red) and when subsequent test runs for windows that were green starts (automatically) windows which have been red are turned to purple.

      3) Comparing performance between unaffected version (5.12.12) and affected version (6.2.9/6.5.2) it can easily be seen that performance has significantly decreased, with affected versions producing much more "red/purple" windows than unaffected Qt 5.12.12

      Attachments

        1. 20230823_valgrindQt5tna03_xNotReached.jpg
          20230823_valgrindQt5tna03_xNotReached.jpg
          318 kB
        2. 20230823_valgrindQt6agc06_xNotReached.jpg
          20230823_valgrindQt6agc06_xNotReached.jpg
          401 kB
        3. anti-external-starvation.diff
          2 kB
        4. anti-starvation2.diff
          3 kB
        5. Events.zip
          3 kB
        6. image-2023-09-05-10-34-35-054.png
          image-2023-09-05-10-34-35-054.png
          188 kB
        7. image-2023-09-05-10-35-27-159.png
          image-2023-09-05-10-35-27-159.png
          19 kB
        8. qtbug116478.zip
          2 kB
        9. rhel8.6_gpu.txt
          14 kB
        10. slowdown-quickwidget-updates.diff
          2 kB
        11. valgrind_qt5_qt6.tar.gz
          7.54 MB
        12. win10_gpu.txt
          12 kB

        Issue Links

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

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              foxxx Tuukka Kettunen
              Votes:
              1 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: