• 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: Highlights of AppleScript 1.5.5 in Mac OS 9.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1


  • Subject: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • From: email@hidden
  • Date: Fri, 12 Jan 2001 18:30:03 -0800

FWIW,

Here's the first results of the timing I tried comparing Mac OS 9.04 and 9.1.

I ran a timing script that called each of the following handlers 10 times.

on firstHandler(numberString)
repeat 100 times
the ticks
end repeat
return the result
end firstHandler

on secondHandler(numberString)
repeat 100 times
tell application "Finder"
the ticks
end tell
end repeat
return the result
end secondHandler

I ran the test 3 times on each system.

On 9.04 the "Second Handler" was slightly faster (7 or 8 ticks) than "First Handler", even though the Osax call was within a finder tell!

On 9.1 the "Second Handler" was slightly faster than "First Handler", and both handlers executed faster than on 9.04.

With 9.04 the "First Handler" took an average of:
1 seconds, 12.8 ticks
1 seconds, 12.4 ticks
1 seconds, 13.6 ticks

With 9.1 the "First Handler" took an average of:
39.0 ticks
38.3 ticks
40.2 ticks

With 9.1 the "Second Handler" took an average of
1 seconds, 3.7 ticks
1 seconds, 5.3 ticks
1 seconds, 7.3 ticks

With 9.1 the "Second Handler" took an average of:
46.6 ticks
46.6 ticks
47.2 ticks

With each run both handlers were run 12 times.

The slowest and fastest times were removed and the results were averaged.

So, 9.1 seems a bit faster and whatever caused the call to run faster within the Finder tell is gone.

I'm very curious if anyone else can reproduce these results. If you're interested in trying send me an email and I'll send you the timing script I
use.

ES


  • Prev by Date: Re: Photoshop 6.0 w/ Photoscripter
  • Next by Date: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • Previous by thread: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • Next by thread: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • Index(es):
    • Date
    • Thread