summaryrefslogtreecommitdiffstats
path: root/src/corelib/arch/qatomic_mips.h
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2014-12-29 19:40:30 +0100
committerRobin Burchell <robin.burchell@viroteck.net>2014-12-30 19:25:58 +0100
commit442eee3cdab67300f96547bc4d6897391b7becd8 (patch)
tree91a75688386ee1a7f19d56e3cf7d61495ea87158 /src/corelib/arch/qatomic_mips.h
parent8bd84b11d34ad7a7d01f46f157c1a31485eef2e2 (diff)
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>
Diffstat (limited to 'src/corelib/arch/qatomic_mips.h')
0 files changed, 0 insertions, 0 deletions