Performing 100, 000 math operations [was: Squeak hangs when AVG virus scan is run]

Klaus D. Witzel klaus.witzel at cobss.com
Sat Jan 13 16:38:00 UTC 2007


On Sat, 13 Jan 2007 14:07:51 +0100, John Ersatznom wrote:

...
> There are also performance issues. Performing 100,000 math operations on  
> floats and small integers with some message passing, looping, and block  
> calling takes a full second or two on a 2GHz machine. Is that normal?

Sure, that's quite normal ;-) For example

  [(1 to: 123456) collect: [:smi | 1.0 raisedTo: smi]] timeToRun

takes 2 seconds here on my 1.73 GHz notebook ;-)

/Klaus




More information about the Squeak-dev mailing list