Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to know clock cycles, overall performance, etc... of program?

I have 3 different algorithms which all calculate the same stuff. My goal is to compare all three algorithms, i.e. clock cycles, "how intensive it is for the processor", time needed to get the final result, the overall performance etc...

How can I see/get/analyze all of this information?

I am programming in Matlab and in C-language in code composer studio for an embedded system.

EDIT: memory usage/management would be usefull as well for the embedded system especially

like image 1000
privetDruzia Avatar asked Nov 18 '25 13:11

privetDruzia


1 Answers

First you can compare the size of your Output-files. Most times the bigger one is slower.

Get the exactly clock cycles is not easy. you must know how many clock cycles your Assembler command Needs and calculate it for your code.

If you are running it directly on your Hardware, you can toggle a port at the start and end Point and do a Timing measurement. (Regard there are may Interrupts, that can slow you down)


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!