qt5base-lts/tests/benchmarks/corelib/tools
Robin Burchell 442eee3cda QStack: Add a simple benchmark.
This covers the only real additions over QVector: push and pop. Really, there
isn't too much specific to benchmark here, but we're interested in one specific
case: that of pushing and popping a single item repeatedly.

With the current QVector behavior, this causes constant deallocation, which
makes it morbidly slow. This behavior will be reviewed in a subsequent commit.

Results (not that anyone really cares) for me:
    PASS   : tst_QStack::qstack_push()
    RESULT : tst_QStack::qstack_push():
         1.9 msecs per iteration (total: 61, iterations: 32)
    PASS   : tst_QStack::qstack_pop()
    RESULT : tst_QStack::qstack_pop():
         8.2 msecs per iteration (total: 66, iterations: 8)
    PASS   : tst_QStack::qstack_pushpopone()
    RESULT : tst_QStack::qstack_pushpopone():
         80 msecs per iteration (total: 80, iterations: 1)

Change-Id: I3530888abbfcfcef39318d6be6d5b07306a4704e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-12-30 19:25:58 +01:00
..
containers-associative Update license headers and add new license files 2014-09-24 12:26:19 +02:00
containers-sequential Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qalgorithms Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qbytearray Merge remote-tracking branch 'origin/5.4' into dev 2014-09-29 14:08:49 +02:00
qchar Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qcontiguouscache Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qcryptographichash Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qdatetime Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qhash Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qlist Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qlocale Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmap Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qrect Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qregexp Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qringbuffer Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qset Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qstack QStack: Add a simple benchmark. 2014-12-30 19:25:58 +01:00
qstring Add benchmark for QString::section() 2014-10-04 13:57:55 +02:00
qstringbuilder Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qstringlist Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qvector Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tools.pro QStack: Add a simple benchmark. 2014-12-30 19:25:58 +01:00