필터 지우기
필터 지우기

SSD vs HDD Matlab

조회 수: 26 (최근 30일)
Emiliano Rosso
Emiliano Rosso 2016년 5월 17일
댓글: Joss Knight 2016년 5월 18일
How important is it to use a SSD to improve performance of Matlab, if I don't use the commands "load " "save" "but I read only the functions from HD to RAM? I don't care about the time the program starts but only the execution of the functions. Can I save or should I buy the SSD?
Thanks.

답변 (1개)

Todd Leonhardt
Todd Leonhardt 2016년 5월 18일
편집: Todd Leonhardt 2016년 5월 18일
Like almost any performance question of this nature, the answer is "It Depends". Specifically it depends on what exactly your code is doing and what aspect of your machine is limiting the performance. Are you doing anything else that involves reading from or writing to files on the disk (there are other functions that just load or save which would do this)?
If you are just using data in RAM and are not concerned with the initial time for MATLAB to startup, then save your money because a SSD isn't going to improve the performance of your MATLAB code greatly if you are limited by CPU, RAM, or GPU speeds.
MATLAB has an excellent built-in profiler which you can use to find out where your code is spending it's time. To use it do the following in MATLAB:
profile on
% Execute your code here ...
profile off
profile viewer
  댓글 수: 2
Walter Roberson
Walter Roberson 2016년 5월 18일
One bit to note is that MATLAB uses Just In Time compilation, so it might not read any particular .m or class into memory until the first time it is called upon. Because of this, there can be some reading from disk as the code executes. Typically it is not much, but there are some large packages out there.
Joss Knight
Joss Knight 2016년 5월 18일
The same is also true of many libraries, which are loaded dynamically when they are first needed. This can give a one-off performance hit the first time you run your code.

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

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by