필터 지우기
필터 지우기

How to get the exact CPU usage in percentage to run a program in MATLAB?

조회 수: 5 (최근 30일)
Kushal Khaitan
Kushal Khaitan 2013년 4월 7일
I have implemented several cryptographic algorithms like DES and AES and would like to know the exact CPU usage and the throughput of the algorithm. How will I be able to calculate the throughput as well as the CPU usage of the algorithm.
  댓글 수: 1
Kushal Khaitan
Kushal Khaitan 2013년 4월 7일
The parameters for evaluation of the algorithm are CPU usage and throughput so how should I go about it

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2013년 4월 7일
It is quite tricky to model CPU usage on modern computer systems, and it is effectively impossible when you add the layer of MATLAB as we have little information about how exactly MATLAB does its computations.
The best you are going to be able to do is to measure actual CPU usage over a number of tests. See the timex contribution in the File Exchange.
  댓글 수: 3
Walter Roberson
Walter Roberson 2013년 4월 8일
Sorry, I should have said timeit, the link that Jan gives.
Image Analyst
Image Analyst 2013년 4월 8일
With Process Explorer ( http://technet.microsoft.com/en-us/sysinternals) you can get way more information than you can probably digest. So much in fact that it will be hard to extract out just the MATLAB stuff. You'd be surprised at how many things are going on at one time in a computer - just run Process Explorer to see.

댓글을 달려면 로그인하십시오.


Jan
Jan 2013년 4월 8일
What is "the CPU usage" exactly? It can depend heavily on the CPU type, the number of unused cores, the number of other threads running in parallel and the cache sizes.
You can measure the runtime of a function by some TIC/TOCs, e.g. by FEX: timeit. The processor load can be determined by e.g. FEX: system-information-class-for-windows.

카테고리

Help CenterFile Exchange에서 Encryption / Cryptography에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by