Such a small benchmark

Bob Arning arning at charm.net
Wed Oct 16 19:35:53 UTC 2002


On Wed, 16 Oct 2002 18:12:21 +0200 "Viktor" <vi.ki at worldonline.cz> wrote:
>[
>| a |
>a := Array new: 1.
>10000000 timesRepeat: [ a at: 1 put: 3.]
>] millisecondsToRun
>
>Strongtalk (best time from 10 runs): 
> ... 45 ms ... 100 %

Hmm... that *real* fast. 10 million #at:put: in 45 ms equals 222 million per second. Or roughly one every 6 clock cycles on your computer. Six cycles for range-checking in addition to storing is just this side of amazing. How'd they do that?

Cheers,
Bob



More information about the Squeak-dev mailing list