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

qvector is 2 to 3 times slower than std::vector

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.2, 5.4.0 Alpha
    • None
    • Windows 7 32 bit, Visual Studio 2008, 2013

    Description

      My tests show that QVector is significantly slower (up to 3 times) on insert and remove operations than standart vector class.

      There is example cpp file which includes very simple benchmark.
      In order to insert/delete 50000000 integers, on my PC
      QVector needs 350 ms, while std::vector only 130 ms.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            ars.masiuk Ars Masiuk
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes