Matlab has timeit method which is helpful to compare the performance of an implementation with another. I couldn\'t find something similar in octave. I wrote this benchmark