Re: Days and hours
Re: Days and hours
- Subject: Re: Days and hours
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 20 Oct 2005 13:16:19 -0400
On 10/20/05,
Emmanuel <
email@hidden> wrote:
At 1:19 AM -0400 10/20/05, Mark J. Reed wrote:
>FYI, some timing results for 5,000 iterations on my Tiger mini.
>Note that in the case of the shell scripts, in each case I pre-built
>the entire command line outside the loop and did nothing but "do
>shell script cmdString" in the loop body.
Mark, you're doing 5000 iterations because maybe your timer is not
fine enough: if you use "chrono" one iteration is enough (chrono
resolves approx. 1/10 ms).
One iteration is never enough; there are all sorts of random factors
involves in how long a given operation takes, even on an otherwise
mostly-inactive machine. Timer granularity is the reason I chose
5,000 instead of 1,000, however. But I'm not using SMILE, and
chrono, like change, is a SMILE-only feature.
The reason I mention that is that the
first time you launch a command it will be longer, or very much
longer, to run than the second time.
I don't see why a given shell script command line would take longer to
run from AppleScript the first time than the second time. It's
not as if the shell compiles the string, or AS can compile it
into any form that the shell will understand faster...
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden