PDA

View Full Version : QWebview's performance vs other browsers - win7



herend
26th February 2012, 16:15
Hi,

i've tested a simple Qwebview application's speed performance against the other browsers (ff, chrome, ie).

Downloading the same site is much slower in Qt (tested in 4.7 and 4.8).
ff, chrome, ie: < 1s
Qt: >3-6s

This is the experience even with browser demo application shipped with Qt sdk.

I've tried to find the reason of this, and i've seen the following in the web servers log: Qt downloads 6 urls at a time, and between every 6 urls it 'waits' 800-900ms, and then asks for the next 6 urls.

For example a page contains 20-25 items (js, css, images, etc):
Qt downloads this way from aspect of web server:


GET index.html
nothing for 800-900millisec
GET style1.css
GET style2.css
GET style3.css
GET style4.css
GET style5.css
GET style6.css
nothing for 800-900millisec
GET sth1.js
GET sth2.js
GET sth3.js
GET sth4.js
GET sth5.js
GET sth6.js
nothing for 800-900millisec
...


If i download the same page with ff, chrome or ie, the web log doesn't contain the 'sleeping periods'. They are much faster.
Interesting details, that this happens in windows vista and win7. In xp there is no speed problem.

I' ve found that Qt has a limit of parallel connections for http (http://www.qtcentre.org/threads/37530-QNetworkAccessManager-only-6-requests-are-executed-in-parallel-for-one-host)

But this speed performance is poor.

Is there any idea to improve it?
Thanks