Comparison QB64 compiled with gcc optimizations and without
#50
Nice! Thanks for speed testing.

I developed my string math routine as a way to never get caught in "computer" binary math errors. VAL() even fails when strings get too big, so I took that into account, too. I find this to be a great system for big number accounting, probably useful for chemistry molar calculations, but too slow for the kinds of massive numbers produced, as when calculating pi.

BTW: The pi algorithm I used is based on Leibniz's formula. There are other methods, but I'm not sure which is the fastest or most accurate. What's funny is the stone age method of putting a thread around a cylinder of known diameter is faster at getting to 3.14. I imagine at 15min to get that with my routine using Leibniz calculations, it would take several hours to get anything better than 3.14159.

Pete Smile
If eggs are brain food, Biden takes his scrambled.
Reply


Messages In This Thread
RE: Comparison QB64 compiled with Ofast and without - by Pete - 08-15-2022, 04:22 PM



Users browsing this thread: 27 Guest(s)