[squeak-dev] The Inbox: Graphics-ct.410.mcz

Christoph Thiede christoph.thiede at student.hpi.uni-potsdam.de
Wed Aug 14 22:02:19 UTC 2019


[Color basicNew setHue: (-360 to: 720 by: 0.1) atRandom saturation: (-1 to: 2
by: 0.1) atRandom brightness: (-1 to: 2 by: 0.1) atRandom] benchFor: 180
seconds.
    "-> '300,000 per second. 3.33 microseconds per run.'"
[Color basicNew setHue: (-360 to: 720 by: 0.1) atRandom saturation: (-1 to:
2 by: 0.1) atRandom brightness: (-1 to: 2 by: 0.1) atRandom] benchFor: 180
seconds.
    "-> '370,000 per second. 2.71 microseconds per run.'"

Seems to be even faster. :o



--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html


More information about the Squeak-dev mailing list