04-26-2005, 09:51 PM
According to my tests, FB 0.13b for DOS seems faster than FB 0.13b for Windows.
Here are the results of my test program:
Tested on a P4, 3 GHz, Windows XP SP2
FB DOS was tested from a DOS box in Windows, not from plain DOS.
Here are the results of my test program:
Code:
' Time in seconds to evaluate 1,000,000 functions
' Some functions are built-in functions. They have their usual names
' Other functions are taken from my library
' ------------------------------------------------------------------
Windows DOS
Log 0.26 0.05
Ln 0.29 0.11
Log10 0.29 0.11
Log2 0.29 0.11
Exp 0.18 0.11
Expo 0.2 0.16
Exp10 0.21 0.17
Exp2 0.2 0.16
^ (power) 0.23 0.22
Sin 0.26 0.06
Cos 0.27 0.11
Tan 0.28 0.11
ASin 0.19 0.11
ACos 0.19 0.11
Atn 0.27 0.11
Atan2 0.22 0.11
Sinh 0.2 0.16
Cosh 0.21 0.17
Tanh 0.25 0.22
ASinh 0.38 0.11
ACosh 0.38 0.11
ATanh 0.3 0.11
Gamma 0.33 0.28
IGamma 1.42 0.93
Beta 1.6 0.99
IBeta 6.28 4.23
Erf 1.37 0.93
Erfc 1.37 0.88
RND 0.02 0.06
RanMWC 0.12 0.11
Tested on a P4, 3 GHz, Windows XP SP2
FB DOS was tested from a DOS box in Windows, not from plain DOS.
ean Debord
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip