Code Performance

Profiler, improve performance and find potential problems in MATLAB® code


bench MATLAB benchmark
cputime Elapsed CPU time
memory Display memory information
profile Profile execution time for function
profsave Save profile report in HTML format
tic Start stopwatch timer
timeit Measure time required to run function
toc Read elapsed time from stopwatch
Was this topic helpful?