Results 1 to 2 of 2

Thread: Howto benchmark QT correctly?

  1. #1

    Default Howto benchmark QT correctly?

    Hi,

    I would like to write a benchmarking application similar to GtkPerf for QT4, however I am quite new to Qt, so it would be great if somebody could give me some advices:

    1.) Whats the correct way of benchmarking QT?
    2.) Do all api-calls paint changes immediatly (e.g. setSize), or do I have to force QT to do what I asked and let it finish explicitly?

    Thank you in advace, Clemens

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Howto benchmark QT correctly?

    Quote Originally Posted by Linuxhippy View Post
    1.) Whats the correct way of benchmarking QT?
    QTime is your friend here.

    2.) Do all api-calls paint changes immediatly (e.g. setSize), or do I have to force QT to do what I asked and let it finish explicitly?
    Each such operation schedules a paintEvent, so the actual drawing takes place a bit later.

    Try searching the net for benchmarks using Qt. Search for Zack Rusin's benchmarks on graphics or Bradley Hughes' benchmark on strings.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.