Why is my code running slow on an PC with more power?
6 views (last 30 days)
Show older comments
I have an code from my professor, which i need for my bachelor work. On the student PC at the university the code is running faster than on my PC at home. I don't understand this because my PC at home has much more power than the student PC at university. When i look in the task manager under perfomance it tells me Matlab just uses 25-30% of my CPU power but uses all of the 4 cores. Also it just uses 5,5-6 GB Ram from my 16GB.
Are there any options which limit the power Matlab can use?
1 Comment
dpb
on 11 Feb 2015
Which version on the two machines?
Very difficult question to answer in detail; there are many factors affecting actual performance between two machines; internal cache sizes and bus speeds can be bottlenecks on some machines even though their listed clock speeds are as good or better. It's all kinds of these (unknownst to us) that will have affects.
And, of course, OS and level, antivirus software perhaps, video cards/drivers, possible infection w/ malware/adware/etc., ... Just too many things possible to say anything at all definitive w/o much more information.
Answers (1)
Amit
on 11 Feb 2015
Moved: Sabin
on 18 Dec 2022
What do you mean by more power? do you mean processor or just yours have more RAM?
I know because I have been this path before. A same code was running much faster on my laptop than supposedly beast computing machine with more RAM. Later on a more detailed look clarified that my laptop had a rather newish processor with higher single thread capabilities than the computing machine which is why the code was running faster on mine. You can ask the student about his processor and compare it with yours (there are many places on the web where you can do this comparison).
0 Comments
See Also
Categories
Find more on Image Data Workflows in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!