Such a small benchmark

Travis Griggs tgriggs at keyww.com
Wed Oct 16 19:08:43 UTC 2002


Viktor wrote:
>  > To be a little bit more fair you should write the Squeak benchmark 
> exactly
>  > like the C++ one:
>  >
>  > | a |
>  > a := Array new: 1.
>  > 1 to: 10000000 do: [:i| a at: 1 put: 3.]
>  >
>  > Using #to:do: gives a speed-up by 100% here!
>  >
>  > -- Bert
>  >
>  > PS: of course, we should change the implementation of #timesRepeat:
>  >     accordingly
> 
> No, it is not "more fair". All Smalltalks run the same code, C++ was here
> just for... I don't know exactly why... just for fun?

I know that many fortran compilers would just optimize the whole loop 
away. Are you certain that the compiled C program wasn't also 
similiarily affected?

-- 
Travis Griggs
Key Technology
One man's Pink Plane is another man's Blue Plane




More information about the Squeak-dev mailing list