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?

 Respuesta aceptada

James Tursa
James Tursa el 13 de Jun. de 2017
Editada: James Tursa el 13 de Jun. de 2017

0 votos

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

Más respuestas (1)

Walter Roberson
Walter Roberson el 13 de Jun. de 2017

0 votos

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...)

Categorías

Más información sobre Parallel Computing Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 12 de Jun. de 2017

Comentada:

el 15 de Jun. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by