You are not logged in.

#1 2010-05-28 12:08:49

cm100
Member
Registered: 2010-01-23
Posts: 16

measuring startup times of applications

Hi!

Is there a way to measure the startup time of an gui-application, for example firefox, beside using a real stopwatch :-)? I think the first problem is, to give a criterion, when the app. is fully loaded;  the second one is to measure this time.

cm100

Offline

#2 2010-05-28 12:56:11

geniuz
Member
Registered: 2010-04-10
Posts: 127

Re: measuring startup times of applications

$ man time

Offline

#3 2010-05-29 03:18:20

Kknd
Member
From: Brazil, Santa Catarina
Registered: 2007-08-15
Posts: 100
Website

Re: measuring startup times of applications

Take care, for most applications the loading time is dominated by loading libraries / other files from the file system. Due to cache, when you load the same application again or another application that share libraries, it will probably take less time to start, rendering the comparison incorrect (or at least incomplete).

Offline

#4 2010-05-30 09:27:56

cm100
Member
Registered: 2010-01-23
Posts: 16

Re: measuring startup times of applications

Thanks, "time" is nice. However is it possible to determine the moment when the app is fully loaded automatically?

Kknd wrote:

Take care, for most applications the loading time is dominated by loading libraries / other files from the file system. Due to cache, when you load the same application again or another application that share libraries, it will probably take less time to start, rendering the comparison incorrect (or at least incomplete).

Yes that's true. I am mainly interested in cold starts, but I think

echo 3 > /proc/sys/vm/drop_caches

should do the job !?

Offline

#5 2010-05-30 10:07:11

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: measuring startup times of applications

You'll have to create a counter in the source of the application that logs to a file or whatever.
time firefox will not work since it'll measure the time from that you've started it until you've terminated it.

Offline

#6 2010-05-30 10:13:12

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: measuring startup times of applications

Pro-tip for browsers: Make it load a site that's under your control (= you can read the webserver logs) at startup, via the homepage or session settings.


1000

Offline

#7 2010-05-30 10:17:52

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: measuring startup times of applications

Heh, that was nifty... But are you sure the browser is 'fully loaded'?

Offline

Board footer

Powered by FluxBB