Re: TID speed test (Was Re: change case script)
Re: TID speed test (Was Re: change case script)
- Subject: Re: TID speed test (Was Re: change case script)
- From: Paul Skinner <email@hidden>
- Date: Mon, 05 Nov 2001 09:01:02 -0500
on 11/3/01 9:59 PM, Greg Back wrote:
>
>
Run on my machine (imac DV 400 OS 9.2.1 AS 1.6 SE 1.6), the following script
>
returns
>
-->{10,12}
>
(varies from 9-10 and 11-13)
>
>
set time1 to (the ticks) as integer
>
repeat 5000 times
>
set text item delimiters to ""
>
end repeat
>
set time2 to the ticks
>
repeat 5000 times
>
set text item delimiters to {""}
>
end repeat
>
set time3 to the ticks
>
(time2 - time1) & (time3 - time2)
>
And here it's similar.
PB G3 Series 400 / OS 10.1 / 9.2.1
Classic environment.
--Timer code
set iterations to 1000
set timerReference to install precision timer
repeat iterations times
--Timer code
set AppleScript's text item delimiters to ""
--Timer code
end repeat
set timeElapsed to stop precision timer timerReference
return ((1 div (timeElapsed / iterations)) as text) & " iterations/second."
--Timer code
-->"10684 iterations/second."
--Timer code
set iterations to 1000
set timerReference to install precision timer
repeat iterations times
--Timer code
set AppleScript's text item delimiters to {""}
--Timer code
end repeat
set timeElapsed to stop precision timer timerReference
return ((1 div (timeElapsed / iterations)) as text) & " iterations/second."
--Timer code
-->"8487 iterations/second."
--
Paul Skinner