Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QTestLib, benchmarks and iterations | Improving the accuracy of benchmarks with the -minimumtotal option
Qt 6.11 is out! See what's new in the release blog

QTestLib, benchmarks and iterations | Improving the accuracy of benchmarks with the -minimumtotal option

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    miroslav
    wrote on last edited by
    #1

    QTestLib comes with quite useful benchmarking functionality. All it takes to make an existing unit test into a benchmark is to wrap the relevant code with the QBENCHMARK macro. Benchmarks are often influenced by warm-up biases and jitter, leading to variance of results when repeating the same benchmark. The option -iterations can be used to specify how many times a benchmark should be executed and the results aggregated. The displayed result will be the average of the benchmark runs, reducing that variance. Some benchmarks, however, cannot be repeated like that, because they will not execute the same operations when repeated. To control the variance of benchmark results in such situations, the -minimumtotal option was added to QTestLib benchmarks. "Read more...":http://creative-destruction.me/2013/03/18/qtestlib-benchmarks-minimumtotal/

    Mirko Boehm | mirko@kde.org | KDE e.V.
    FSFE Fellow
    Qt Certified Specialist

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved