Author Topic: AVR speed benchmarks; how to calculate time to do stuff  (Read 5272 times)

0 Members and 1 Guest are viewing this topic.

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
AVR speed benchmarks; how to calculate time to do stuff
« on: January 23, 2009, 04:54:37 AM »
Have you ever wondered how fast your processor needs to be for *your* algorithm?

This really neat benchmark list is what you need to calculate it. Its based on Avr-gcc version 4.2.3.

http://www.gnu.org/savannah-checkouts/non-gnu/avr-libc/user-manual/benchmarks.html

So lets say you are using the Axon, at 16MHz.

16MHz = 16000000 clock cycles per second

Now lets say you want to know how long your Axon will take to calculate cos (1.2345).

Looking at the chart, you see 1665.

Doing the math, that's:
1665/16000000 = 0.0001040625 seconds, or ~.1ms


Ok so it doesn't benchmark some stuff, but it does cover most of the more processor intensive stuff.

 


Get Your Ad Here

data_list