From: jcb@... (MetalOne) Date: 2002-11-22T06:56:05+09:00 Subject: Re: Ruby is too slow Thomas Gagn� wrote in message news:<3DDCFB97.1040505@wide-open-west.com>... > Do I have the Smalltalk version right? > > size := 640*480*2. > image := ByteArray new: size withAll: 0. > lookup := ByteArray new: size withAll: 0. > > Time millisecondsToRun: [ > 1 to: size do: [ :i | > image at: i put: (lookup at: (image at: i ) + 1) > ] > ] > > "159" I don't know smalltalk, but it looks close enough. I don't see the reason for the + 1. The lookup table was actually only 1024 elements, but it doesn't really matter. What kind of processor did you run the test on.