QB64.org Forum
Active Forums => Programs => Topic started by: bplus on April 10, 2022, 01:55:11 pm
-
Can someone verify this code is correct and it takes under .5 secs to run, Aurel doesn't believe it.
http://basic4all.epizy.com/index.php?topic=21.0
BTW oddly it does better with Double than with Single default.
-
it times at .25 seconds on my PC
but as a benchmark it's lame, a good compiler will eliminate the loop entirely and therefore give a meaningless result
-
Thank you Jack! Keybonic Plague also gets way better time than I with optimized QB64 dev 2.1
I know it's lame I didn't make it up just comparing times with other PL's and Basic's.
So I didn't screw up, it's possible to get under .5 secs.
-
I meant no offense to you bplus, I know who came up with the code
but if you want to do a benchmark you need to do some computations that can't be optimized out and print the result for verification
-
4.07s on my ancient machine.