logo       

RE: RE: Why Squeak is so sloooow?: msg#00149

lang.smalltalk.squeak.beginners

Subject: RE: RE: Why Squeak is so sloooow?


> Gasp, sorry, didn't see that. I've loaded it now. Here are
> the benchmark results:
>
> [
> 1 to: 10 do: [ :i |
> XYPlotter example1 plot asMorph openInWorld.
> XYPlotter example2 plot asMorph openInWorld.
> XYPlotter example3 plot asMorph openInWorld.
> XYPlotter example4 plot asMorph openInWorld.
> XYPlotter example5 plot asMorph openInWorld.
> XYPlotter example6 plot asMorph openInWorld.
> ]
> ] timeToRun.
>
> 15000

Slightly off topic, but this is a noob list, maybe some will find this
interesting. If you aren't using the index in #to:do:, why not simply...

10 timesRepeat: [
XYPlotter example1 plot asMorph openInWorld.
XYPlotter example2 plot asMorph openInWorld.
XYPlotter example3 plot asMorph openInWorld.
XYPlotter example4 plot asMorph openInWorld.
XYPlotter example5 plot asMorph openInWorld.
XYPlotter example6 plot asMorph openInWorld.
]


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise