Documentation

Code Performance

Measure and profile MATLAB® code to improve performance

Functions

timeit Measure time required to run function
tic Start stopwatch timer
toc Read elapsed time from stopwatch
cputime Elapsed CPU time
profile Profile execution time for functions
bench MATLAB benchmark
Was this topic helpful?