how to improve performance? cpu vs ram vs operating system
Ältere Kommentare anzeigen
Hi,
I have recently started using matlab ( any type of programming actually) and I dont know if i need to buy a new laptop. I am keeping all my files on google drive and work from uni on desktop or home on laptop.
The desktop pc has i7 cpu at 3.2 Ghz and 6 GB ram, windows 8.1 enterprise.
Laptop has i5 cpu at 2.3 Ghz and 12 GB ram, windows 7 pro.
When i run the same code it takes 450 seconds on my desktop and 912 seconds on my laptop.
Do you think the difference is normal? Any suggestion?
Thanks
Turker
2 Kommentare
James Tursa
am 12 Jan. 2017
Given the different environments a 2x factor in execution timing is not necessarily out of the ordinary. We would have to know more about MATLAB versions used, what your code is doing, where it is reading files from in each case, etc. to give a more informed response.
ttopal
am 12 Jan. 2017
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 12 Jan. 2017
0 Stimmen
My laptop has an i7 at 2.6 GHz with 8 Gb of memory -- a slightly better CPU than yours, a slightly faster clock right, less memory. I would not say that my system is slow (but it could be faster.) I would not expect a 3.2 Ghz machine to run twice as fast, all other things being equal.
However:
- possibly the desktop has a faster disk drive and you might be handling files a lot
- possibly the desktop has more cores and your task might happen to work well with additional cores. If you are running vectorized calculations on fair-sized matrices, this is a definite possibility
My laptop has 4 physical cores; it would not be uncommon these days for a desktop to have 8 physical cores.
Kategorien
Mehr zu DSP Algorithm Acceleration finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!