how to calculate algorithm speed?

i have simple mat-lab algorithm and i would like to know how to calculate the speed of the algorithm?

 Risposta accettata

James Tursa
James Tursa il 13 Giu 2017
Modificato: James Tursa il 13 Giu 2017

0 voti

I would start with tic and toc. You could also use timeit.

Più risposte (1)

Walter Roberson
Walter Roberson il 13 Giu 2017

0 voti

You cannot. You can at best measure the speed of the implementation given those particular parameters, given whatever else the computer is doing at the same time (monitoring the mouse, checking for operating system updates, retrying to send the email messages stuck in the queue...)

Categorie

Scopri di più su Parallel Computing Toolbox in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by