techjunkie wrote:Why?!?! It's just empty loops... Don't get me wrong - I love PureBasic and like BlitzBasic (fill different needs), but why is it such a different in speed?
Because you have the debugger on? Because pointless benchmarks like those can be massivly skewed by even the slightest difference? Because PB's optimiser isn't as good as BB's? Because neither have an optimiser clever enough to remove pointless loops? You also don't show how you timed the code - at least provide the full code so people can repeat your tests if they want.
For the record, your first code took 7.5 seconds from PB and 8.4 seconds from BB (BB2D v1.68 demo - yes, I know not up-to-date) to run on my Duron 750 while playing MP3's and running all the crap I usually do (PB, Mozilla, IRC, Office, Word, various explorer windows, etc).
Edit: Damn, I was too slow ;p
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)