go_away

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

0 Members and 1 Guest are viewing this topic.

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,585
  • 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.

 

Related Topics

  Subject / Started by Replies Last post
19 Replies
5400 Views
Last post January 31, 2009, 01:21:44 AM
by Joesavage1
7 Replies
12470 Views
Last post December 04, 2008, 09:45:00 PM
by Admin
2 Replies
535 Views
Last post September 24, 2011, 07:36:45 PM
by Mastermime
5 Replies
555 Views
Last post November 04, 2012, 06:39:00 AM
by dunz


Get Your Ad Here