Matlab is too slow in processing
古いコメントを表示
Hello,
I have a problem with Matlab that it is too slow. My PC has 16GB RAM and the version I am using is 2021a.

I have checked the same code with another computer and it run the code much faster.
The CPU utilization shows in PC as 7-10% and if I test the same code in different computer it is like 60-65%.
And when I run 'bench' in matlab it shows my PC is having longest execution time than the other machine I tested my code though which is apperently bad in terms of properties compared to my PC.
Can anyone answer why this is happening ?
3 件のコメント
Steven Lord
2022 年 3 月 3 日
With the information you've given, no. You haven't told us what your code is doing.
It could be that the computation isn't the bottleneck, the bottleneck is reading your data files from a (slow) drive on this machine and a faster drive on the other.
It could be the other machine has enough memory it doesn't need to swap while this one does.
Do both machines have the same number of physical cores to perform equivalent multithreading?
Or it could be that the computations are slower on your machine. Without looking at the code there's no real way to know.
As for he bench results, show them. The bench function weights the computation and graphics tests equally, and often machines are lower on the list because the perform the 2D and 3D tasks more lowly than others they match on the numerics tasks.
Upeksha Kankanamge
2022 年 3 月 4 日
Benjamin Thompson
2022 年 3 月 4 日
What type of GPU is in both computers? If one has a GPU supported by MATLAB, the fft and conv processing could go to the GPU but not on a machine with an unsupported GPU. This could explain why one is much faster or uses the CPU less. You should also make sure background processes like backup and antivirus are not interfering with test results.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


