• 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: TID speed test (Was Re: change case script)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >TID speed test (Was Re: change case script) (From: Greg Back <email@hidden>)

  • Prev by Date: SoundJam had it first (was Re: iTunes coupe)
  • Next by Date: Re: Script objects 'as string' in an identifiable way
  • Previous by thread: TID speed test (Was Re: change case script)
  • Next by thread: on machine eppc: ...
  • Index(es):
    • Date
    • Thread