Re: [Cppcms-users] cppcms & embdedded & google page speed
Brought to you by:
artyom-beilis
|
From: Christian G. <chr...@gm...> - 2012-06-06 09:00:00
|
Hi
2012/6/6 Artyom Beilis <art...@ya...>:
>
>
> ----- Original Message -----
>> From: Christian Gmeiner <chr...@gm...>
>> To: cpp...@li...
>> Cc:
>> Sent: Tuesday, June 5, 2012 2:18 PM
>> Subject: [Cppcms-users] cppcms & embdedded & google page speed
>>
>> Hi all,
>>
>> I am developing a system administration webapp for a linux based
>> system and I am in the stage of profiling and
>> optimizing. As I am on a quite slow system (500 MHz with 512 MB Ram) I
>> am using the embedded http
>> service to serve the webapp. Now it is possible t run the webapp
>> directly on the device, which has a touch
>> screen. Atm I am using google chrome, but loading of a page takes
>> about 1.5 seconds, which is quite slow.
>
>
> - How does much it takes to downlaod the page? (you can check with time wget URL)
> - How big is the page?
root@CHGM:~# http_proxy="" wget http://localhost/tssw
--2012-06-06 08:32:49-- http://localhost/tssw
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: /tssw/login [following]
--2012-06-06 08:32:49-- http://localhost/tssw/login
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 Ok
Length: unspecified [text/html]
Saving to: `tssw'
[ <=>
] 1,226
--.-K/s in 0s
2012-06-06 08:32:49 (14.8 MB/s) - `tssw' saved [1226]
>
>> So I started Googles Page Speed on the device to see what could be improved:
>>
>> - activate compression
>> - activate Keep-Alive
>> - use Browser-Caching
>> - use Cache-Validators
>
> These are mostly irrelevant for localhost communication
>
>> - reduce JavaScript
>
> If the page uses heavy JS it may slow down the browser.
>
It is not really much JS involved here... jquery with a subset of jquery-ui
It got a benefit in loading times by minifying css and js files and I am using
only one js and only one css file now.
>> What could be done on cppcms side?
>
> Depends on what the bottle neck...
>
Atm I am looking to find the bottle neck, which is not a easy task as there are
three components involved:
Browser <-- http --> Webapp <-- DBus --> System Services like UDisks
What I can say is that from my working PC it takes about 374 ms to
load with about 430 kb transfered.
Thanks
---
Christian Gmeiner, MSc
|