[Development] Question about QCoreApplicationData::*_libpaths
Marc Mutz
marc.mutz at kdab.com
Sat Jan 23 00:11:27 CET 2016
On Friday 22 January 2016 20:46:54 Marc Mutz wrote:
> Which one is faster? On a dual-core, probably QVector. On a 64-core
> processor, probably std::vector.
Running attached test program (4 cores + 2-fold HT), I get these numbers:
QVector;
1: 483
2: 492
4: 498
8: 503
16: 502
32: 513
64: 631
128: 615
256: 1070
512: 2202
1024: 3987
2048: 8531
4096: 16385
std::vector:
1: 132
2: 130
4: 125
8: 123
16: 140
32: 233
64: 370
128: 546
256: 994
512: 1931
1024: 3759
2048: 7383
4096: 14841
'Nuff said.
--
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 1292 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160123/86fae920/attachment.cpp>
More information about the Development
mailing list