Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / comparing speeds of variables (real/int,big/small,more/less digits)

Author
Message
qwe
22
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 16th Nov 2003 01:59
to test speeds:


my result:
small integer:31
large integer:33
small real#:73
large real#:57
less digits after decimal#:59
more digits after decimal#:383

some later tests:
(3 before and 6 after decimal):341
(7 before and 6 after decimal):335

just thought this might be useful to some people
if u have more information on this it would be appreciated

i thought the computer treated a real number as x.000000, but i guess it treats it as x, and when there are more digits x takes more time to calculate. from the tests i also assume it stores reals as 000000x.0 and 00xxxxx.0 (donno what exact number of 0s before x would be)

thanks to STE for the code

Chris
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 16th Nov 2003 02:07
You should have a few seconds delay before performing speed comparison tests to settle Windows back down, certainly on my systems there's a momentary lag about a second or so after DBPro starts up.


God created the world in 7 days, but we're still waiting for the patch.

Login to post a reply

Server time is: 2026-07-26 14:30:58
Your offset time is: 2026-07-26 14:30:58