Floating point performance

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

Floating point performance

Post by YahooArchive » Tue Feb 12, 2013 2:07 pm

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

timer=0
for j=1 to 100000
' Insert expression to be timed here.
'Leave empty to get loop overhead time (=null)
next j
time=timer
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

cp



Post Reply