Society of Robots
     | Robot Forum | Robot Tutorials | Robot FAQ |
September 02, 2010, 09:48:23 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: March 18th - Buy an Axon or Axon II, build a great robot, and support SoR.

Robot Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: AVR speed benchmarks; how to calculate time to do stuff  (Read 1604 times)
0 Members and 1 Guest are viewing this topic.
AdminTopic starter
Administrator
Supreme Robot
*****

Helpful? 110
Offline Offline

Posts: 9,833



View Profile WWW
« 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.
Logged

Pages: [1]
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Calculate velocity of movement
Mechanics and Construction
kennykck 9 2129 Last post December 10, 2007, 05:59:46 AM
by Admin
Free Stuff - Samples and Give Aways *NEW STUFF ADDED* :D
Misc
DC-Electronics 19 3654 Last post January 31, 2009, 01:21:44 AM
by Joesavage1
how to calculate quadroped stability
Mechanics and Construction
US Ajayvignesh 7 1592 Last post October 30, 2008, 11:32:37 PM
by Admin
How to calculate the time for one clock cycle
Electronics
roi_tau 7 4239 Last post December 04, 2008, 09:45:00 PM
by Admin
Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!


Advertise on this Forum