• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Days and hours
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Days and hours
      • From: Martin Orpen <email@hidden>
    • Re: Days and hours
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Re: Days and hours (From: Christopher Nebel <email@hidden>)
 >Re: Days and hours (From: "Gary (Lists)" <email@hidden>)
 >Re: Days and hours (From: "Mark J. Reed" <email@hidden>)
 >Re: Days and hours (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: string manipulation
  • Next by Date: re: string Manipulation
  • Previous by thread: Re: Days and hours
  • Next by thread: Re: Days and hours
  • Index(es):
    • Date
    • Thread