David Golden wrote:
On 1/25/07, Malcolm Nooning <[EMAIL PROTECTED]> wrote:
A fairly large (~5MB) application was created. Just counting in my
head, comparing the same previously created application with the newly
created one, I am not seeing a difference. The initial
unbundling/execution takes about ten seconds for each. The subsequent
ones take about 3 seconds for each
The time savings that Steffen found were on the order of 1/2 second --
if your startup time is significantly higher, it might be getting lost
in the noise. Can you profile it somehow and see where the time is
going? (not my area of expertise so I can't tell you how to do that)
David
Hello,
I did the actual timing, but I still cannot detect a difference. It
looks like a 12 second unbundling/execution time, with a 3 second
subsequent execution time. However, multiple tests show a one second
difference from time to time on the same variant, which means that
trying to catch a 1/2 second difference in a 12 second time frame on
Windows is too much to ask for.
If interested further, here is my method of test:
I have a roughly 5MB app.exe made last week and one made today after
installing the new PAR as mentioned earlier. The app is such that it
will die if it finds that an instance of it is already running. By that
time app.exe will have been unbundled and be executing. Therefore, to
time the unbundling I merely have to have the old app.exe running and
try the new, and then remove the caches and do the reverse, with code
similar to whay I will paste below.
-----------paste code
my $start_time = localtime();
system("C:/aaa/app.exe",);
my $end_time = localtime();
print ("end_time is $end_time\n");
print ("Start_time is $start_time\n");
-----------end paste code
---------paste results
C:\aaa>get_new_time.pl
end_time is Thu Jan 25 12:57:43 2007
Start_time is Thu Jan 25 12:57:31 2007
C:\aaa>get_new_time.pl
end_time is Thu Jan 25 12:58:24 2007
Start_time is Thu Jan 25 12:58:22 2007
------------------------------------------
C:\aaa>get_old_time.pl
end_time is Thu Jan 25 13:01:38 2007
Start_time is Thu Jan 25 13:01:26 2007
C:\aaa>get_old_time.pl
end_time is Thu Jan 25 13:02:06 2007
Start_time is Thu Jan 25 13:02:03 2007
------------------------------------------