Re: OSAX in Tells
Re: OSAX in Tells
- Subject: Re: OSAX in Tells
- From: Ed Stockly <email@hidden>
- Date: Fri, 19 Jan 2001 00:13:36 -0800
on 1/18/01 7:16 PM, email@hidden at
email@hidden wrote:
>
> I have run numerous tests on several different systems and found, to my
>
> surprise, that many OSAX calls actually go slightly faster within Finder
>
> tells than outside.
This is kind of interesting because I just ran a series of comparisons
between 9.04 and 9.1. It seems that in 9.1 OSAX calls outside of finder
tells are now consistently (but only slightly) faster than those inside.
Here's a typical set of results:
---------------------
9.1
---------------------
Thursday, January 18, 2001 11:06:41 PM
The "Random Plain" averaged 3.2 ticks faster than "Random Inside Finder
Tell"
The "Random Plain" took an average of 32.4 ticks
The "Random Inside Finder Tell" took an average of 35.6 ticks
Each of the two methods were run 12 times.
The slowest and fastest time were removed and the results were averaged.
This mac is a Power Macintosh running MacOS 9.1
This mac had been running 60 minutes, 10 seconds, 10.0 ticks when the test
was conducted.
Script Timing Application.1 was the process that launched the test
These processes were running during the test: Control Strip Extension, FBC
Indexing Scheduler, Time Synchronizer, Folder Actions, SimpleText,
Scripter., Script Timing Application.1
---------------------
9.04
---------------------
Thursday, January 18, 2001 11:53:55 PM
The "Random Inside Finder Tell" averaged 20.1 ticks faster than "Random
Plain"
The "Random Inside Finder Tell" took an average of 40.7 ticks
The "Random Plain" took an average of 1 seconds, 0.8 ticks
Each of the two methods were run 12 times.
The slowest and fastest time were removed and the results were averaged.
This mac is a Power Macintosh running MacOS 9.04
This mac had been running 24 minutes, 2 seconds, 2.0 ticks when the test was
conducted.
Script Timing Application.1 was the process that launched the test
These processes were running during the test: Control Strip Extension, EPSON
Launcher, FaxMonitor, Folder Actions, Open Transport SNMP, OSA Menu, PreFab
Player, ScriptStrip Runner, Time Synchronizer, Outlook Express, BBEdit 4.5,
SimpleText, Script Timing Application.1
__________________
Each script would run a repeat loop 100 times with a single command in the
loop. In one script the loop was inside the Tell and in the other it was
not.
>
>
Would you mind publishing that data? I'd be interested in seeing it.
>
>
Well, I'm tryng to come up with a nice simple way to display script timing
comparisons on a web page. In the meantime, I'd be happy to send my results
and the timing tools to anyone interesed.
ES
-- <
http://justapplescript.weblogs.com/>
-- <
http://justapplescript.weblogs.com/AppleScriptLearningResources>
-- Feedback welcome, join today!