Changes between Version 4 and Version 5 of QtWebKitPerformanceUtilities


Ignore:
Timestamp:
Sep 29, 2009 11:15:20 PM (11 years ago)
Author:
zecke@selfish.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • QtWebKitPerformanceUtilities

    v4 v5  
    8888The loading test can be found in the '''loading/''' subdirectory. The goal of this benchmark is to measure and analayse the loading of web pages. The loading is waiting for the ''QWebPage::loadFinished'' signal and the webpage is not shown to avoid to paint the page as painting will be tested separately.
    8989
     90{{{
     91$ cd loading
     92$ ./tst_loading
     93./tst_loading
     94********* Start testing of tst_Loading *********
     95Config: Using QTest library 4.5.2, Qt 4.5.2
     96PASS   : tst_Loading::initTestCase()
     97...
     98
     99RESULT : tst_Loading::load():"row34":
     100     2,889 msec per iteration (total: 2889, iterations: 1)
     101PASS   : tst_Loading::load()
     102...
     103
     104PASS   : tst_Loading::cleanupTestCase()
     105Totals: 3 passed, 0 failed, 0 skipped
     106********* Finished testing of tst_Loading *********
     107}}}
     108
    90109==== The painting test ====
    91110The painting test can be found in the '''painting/''' subdirectory. The goal of this benchmark is to measure the painting performance. For this the webpage is loaded and then viewport (first part of the page) is drawn repeatedly to a QPixmap. The painting is finished with a call to ''QApplication::syncX'' which should force the painting to happen.
    92111
     112{{{
     113$ cd painting
     114$ ./tst_painting
     115...
     116}}}
     117
    93118==== The scrolling test ====
    94119The scrolling test can be found in the '''scrolling/''' subdirectory. The goal of this benchmark is to measure the scrolling performance. The benchmark will load the site, wait for it to be loaded. Then it will measure the time it takes to scroll down and up. Scrolling is used as a test as most people reading a website will scroll down to read the text or search for the text. Scrolling will include painting, but depending on the content might also do further JavaScript processing. ''QCoreApplication::processEvents()'' is used after scrolling to force handling of events.
     120
     121{{{
     122$ cd scrolling
     123$ ./tst_scrolling
     124}}}