Society of Robots
     | Robot Forum | Robot Tutorials | Robot FAQ |
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2009, 09:53:36 PM

Login with username, password and session length
Search:     Advanced search
Sept 30th - New Price - Axon is now $94

Robot Forum
72,667 Posts in 9,267 Topics by 5,292 Members
Latest Member: lepomis
* Home Help Help Login Register
0 Members and 1 Guest are viewing this topic.
Pages: [1] Print
Author Topic: AVR speed benchmarks; how to calculate time to do stuff  (Read 891 times)
AdminTopic starter
Administrator
Supreme Robot
*****

Helpful? 62
Online Online

Posts: 8,610



View Profile WWW
« on: January 23, 2009, 02: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 1597 Last post December 10, 2007, 03:59:46 AM
by Admin
expected efficiency to calculate RMF value
Mechanics and Construction
karmax 1 920 Last post February 05, 2008, 06:29:21 AM
by Admin
Free Stuff - Samples and Give Aways *NEW STUFF ADDED* :D
Misc
DC-Electronics 19 2943 Last post January 30, 2009, 11:21:44 PM
by Joesavage1
How to calculate the time for one clock cycle
Electronics
roi_tau 7 2186 Last post December 04, 2008, 07:45:00 PM
by Admin
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!


Advertise on this Forum