Execution time issue r2016

6 views (last 30 days)
Mustafa Khaleel
Mustafa Khaleel on 30 Aug 2020
Commented: Rik on 31 Aug 2020
hello there
I was using matlab on my laptop which has integrated intel graphic card , it takes long time to excuite SSIM
then I bought a brand new labtop with high specs and it still taking the same amount of time!
old labtop specs : core i5 2nd u
hdd hard drive
4 GB ram
New labtop specs : core i5 9th h
ssd m.2 hard drive
8 GB ram
Nvidia gtx 1650 GPU
  5 Comments
Raymond Norris
Raymond Norris on 31 Aug 2020
I agree with Rik. One other consideration, if possible, is to upgrade MATLAB.
Rik
Rik on 31 Aug 2020
Although generally execution speed will improve from release to release, this is not always the case and improvement will vary. (example below tested with my RegGrow FEX submission)
%the main calculation of RegGrow happens with convn() and mean()
%so this mainly benchmarks 2D convolutions and means of a vector
sz=[100 100];IM=1:prod(sz);IM=reshape(IM,sz);
testtime=zeros(1,20);for iteration=1:numel(testtime),tic,RegGrow(IM,'waitbar',false);testtime(iteration)=toc;end
clc,fprintf('median time of %d passes: %.3f seconds (version: %s)\n',numel(testtime),median(testtime),version);
% Results on the same computer:
% median time of 20 passes: 0.018 seconds (version: 9.8.0.1451342 (R2020a) Update 5)
% median time of 20 passes: 0.022 seconds (version: 9.4.0.813654 (R2018a))
% median time of 20 passes: 0.024 seconds (version: 8.5.0.197613 (R2015a))
% median time of 20 passes: 0.030 seconds (version: 7.12.0.635 (R2011a))
% median time of 20 passes: 0.117 seconds (version: 6.5.0.180913a (R13))
You need a benchmark like this for your specific application to really quantify the improvement. From time to time someone posts an example of a function or set of functions that are a lot slower, sometimes orders of magnitude.

Sign in to comment.

Answers (0)

Categories

Find more on Performance and Memory in Help Center and File Exchange

Products


Release

R2016a

Community Treasure Hunt

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

Start Hunting!