__speed__
Time an expression for growing problem sizes and fit a model T = a*n^p.
speed (F1) speed (F1, INIT, MAX_N, F2, TOL) [F, P, R] = speed (…)
F1 is an expression (a string) using the size N. INIT, evaluated for each N before timing, creates its data (default "x = randn (n, 1)"). N runs over a roughly logarithmic series up to MAX_N (default 100). With F2 the two expressions are timed and compared; when their results differ by more than TOL (default eps) an error is raised.
F is a structure with the fitted exponent P and constant A, P holds the timings of F1 for each size and R those of F2 (or of F1 when F2 is absent).