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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes