Floating point performance

Questions about the BASICtools and MakeItC
Post Reply
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Floating point performance

Post by YahooArchive »

I've been checking the performance using this simple loop test program

for j=1 to 100000
' Insert expression to be timed here.
'Leave empty to get loop overhead time (=null)
next j
print "Execute time =",0.00001*(time-null),"uS"

Hardware is a vintage ARMmite - no mods.
The results are impressive! Especially divide...

Empty Loop takes 0.97uS
a=3.123 takes 0.40uS
a=3.123*2.456 takes 1.72uS
a=3.123/2.456 takes 3.53uS
a=fix(3.123) takes 2.75uS


Post Reply