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

QList - double performance drop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.0
    • 6.0.0 Alpha
    • None
    • core i7-8700
    • Windows
    • 8
    • Qt6_Foundation_Sprint 20, Qt6_Foundation_Sprint 21, Qt6_Foundation_Sprint 22

    Description

      This simple code show QList double performance drop for Qt 6

      QElapsedTimer timer;
      timer.start();    
      QList<QString> list;
      int count = 1000000;
      for (int i = 0; i < count; i++) {
           list.append(QString::number(i));
      }    
      qDebug() << timer.elapsed();
      

      On my machine it prints (release build):

      Qt 5.15.1: 117

      Qt 6.0 alpha: 321

      Attachments

        1. image-2020-10-14-21-15-15-976.png
          183 kB
          Andreas Buhr
        2. image-2020-10-15-02-27-47-947.png
          109 kB
          Andreas Buhr
        3. image-2020-10-15-02-29-09-196.png
          112 kB
          Andreas Buhr

        Issue Links

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

          Activity

            People

              agolubev Andrei Golubev
              n_r_w n_r_w
              Maurice Kalinowski Maurice Kalinowski
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: