summaryrefslogtreecommitdiffstats
path: root/conanfile.py
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-07-20 14:45:10 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-07-23 18:35:23 +0000
commitb47df246f64c70bc19ecb3f612a9d884c548532e (patch)
treef7aed64c401245a567eec7bf066a5659b2bec8ec /conanfile.py
parent68c57e14cef20affb0d68cb31bc21b2d935a95b6 (diff)
Make QSqlRecord benchmarks non-fatuous
Because QBENCHMARK re-runs its block repeatedly, to get sensible data, the block needs to actually do something when repeated. Since these tests had blocks that looped while (qry.next()), they left qry at its end state, so such repeats tested nothing. Use seek(0) at the start of each cycle to actually do the work repeatedly when the block is repeated. As a drive-by, split a long line. Task-number: QTBUG-91713 Change-Id: Id46f77dc5e71335871af79ff61e1980b5f636179 Reviewed-by: Andy Shaw <andy.shaw@qt.io> (cherry picked from commit 432eab3bc09bd4c6e6904905fae53f64227a1518) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'conanfile.py')
0 files changed, 0 insertions, 0 deletions