Changes between Version 4 and Version 5 of QtWebKitPerformanceUtilities
- Timestamp:
- Sep 29, 2009, 11:15:20 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QtWebKitPerformanceUtilities
v4 v5 88 88 The 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. 89 89 90 {{{ 91 $ cd loading 92 $ ./tst_loading 93 ./tst_loading 94 ********* Start testing of tst_Loading ********* 95 Config: Using QTest library 4.5.2, Qt 4.5.2 96 PASS : tst_Loading::initTestCase() 97 ... 98 99 RESULT : tst_Loading::load():"row34": 100 2,889 msec per iteration (total: 2889, iterations: 1) 101 PASS : tst_Loading::load() 102 ... 103 104 PASS : tst_Loading::cleanupTestCase() 105 Totals: 3 passed, 0 failed, 0 skipped 106 ********* Finished testing of tst_Loading ********* 107 }}} 108 90 109 ==== The painting test ==== 91 110 The 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. 92 111 112 {{{ 113 $ cd painting 114 $ ./tst_painting 115 ... 116 }}} 117 93 118 ==== The scrolling test ==== 94 119 The 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 }}}