2006b runs M-file faster than 2011a
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi, A M-file runs in Version 2006b in 22seconds whereas the same file takes 4 times to run in 2011a,more than a minute.The file will be 4000 lines approximately.Why?
댓글 수: 3
Walter Roberson
2012년 4월 16일
Which kind of processor do you have? In particular does it happen to be an i5 or i7 ?
Andreas Goser
2012년 4월 16일
Walter, do you have a specifc issue in mind? I actually have right now a customer with a i5 to i7 system migration issue.
Jan
2012년 4월 16일
@Andreas: There have been some reports of slow i5/i7 interpretation on 64 bit systems in this forum.
답변 (3개)
Jan
2012년 4월 16일
2 개 추천
Without seeing the code it is impossible to guess the reason. Speed issues on modern processors and 32/64 bit versions have been reported repeatedly in this forum, see: Answers: Search slow+i5, e.g.:
댓글 수: 0
Daniel Shub
2012년 4월 16일
1 개 추천
There is a bench type function on the FEX: href=""<http://www.mathworks.com/matlabcentral/fileexchange/11984-benchmark</a>> that can be used across versions.
I thought that TMW made the bench test from different versions available, although I cannot find them.
댓글 수: 0
Andreas Goser
2012년 4월 16일
This answer is about the first steps to indentify reasons. First of all, it is assumed both installations are on the same machine. Otherwise the comparison is not so valid.
1. Run
bench(5)
on both installations and see if the results differ a lot and if yes in which category most. You may find information about a certain slowdown in the community or through Technical Support.
2. Run the profiler File -> Desktop -> Profiler or through the PROFILE command for both installations and see whether there is a certain line of code that dominates the slowdown. Again yu may find information about a certain slowdown in the community or through Technical Support.
댓글 수: 2
Friedrich
2012년 4월 16일
Beware of bench, because the size of the tested problems can change between releases. So it will most likely show that 6b is a way faster than 11a when using bench.
Jan
2012년 4월 16일
@Friedrich: Thanks for mentioning this "surprising" behavior of BENCH. It has been a bad idea to modify the problem size of a function, which should help to compare different platforms.
이 질문은 마감되었습니다.
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!