Re: Eu vs PowerBasic
- Posted by LarryMiller Jun 11, 2009
- 1291 views
jeremy said...
useless said...
Jeremy, any idea why the execution time on v3.1 and v4 exploded to 40+ seconds on the last 3 iterations?
Hm. No idea but I'm glad you found it. I modified your program slightly:
without type_check atom x = 1, y = 1.000001, t for repeatloop = 1 to 10 do t = time() for i = 1 to 100000000 do x = x * y end for ? time() - t end for
and submitted it as a bug because I get:
2.375 2.375 2.36 2.359 2.375 2.375 2.375 13.734 15 14.985
Something is obviously not right. http://sourceforge.net/tracker/?func=detail&aid=2804581&group_id=182827&atid=902782
Jeremy
I tried this program with a slight modification. I printed the value of x after each loop. Since this variable is never reset the value continues to grow after each loop. Sometime during the 8th iteration the value overflowed and produced inf as the value. I suspect that multiplying this value is slower than normal.
Larry