Executable startup/run time
- From: "Robert " <r.a.brookhuis@xxxxxxxxx>
- Date: Sun, 30 Sep 2007 15:52:49 +0000 (UTC)
Hi,
I have made a executable of my function in Matlab using the
mcc command. This function reads from a file and writes a
result to a another file depending on the command line
options. At the begin and end of this function I have placed
the tic/toc commands to measure the execution time.
The first problem:
When the m-file is executed from Matlab, the elapsed tic/toc
time is 0.35 seconds. When I run the Matlab Executable, the
elapsed tic/toc time is 1.36 seconds.
Can anyone tell where this difference comes from and how it
can be reduced?
The second problem:
When I measure the whole execution time of the Matlab
Executable by hand, so from executing the command until the
function is ready, this takes about 5 seconds! It seems to
me that the MCR needs some ‘startup’ time.
Since I want to run the executable several times, I would
like to know if there is a possibility to reduce this
‘startup’ time. Is there a way to keep the MCR running, or
something like that?
Thanks in advance,
Robert
P.S.: Matlab version R2006a
.
- Prev by Date: Re: ill-conditioned matrices and what to do about them?
- Next by Date: Re: How to determine the length of a spline curve
- Previous by thread: economics, intertemporal problem
- Next by thread: Modelling of sensors
- Index(es):
Relevant Pages
|