view benchmark.m @ 974:1c334842bf23 feature/poroelastic

Extract tuning from alpha.
author Martin Almquist <malmquist@stanford.edu>
date Tue, 25 Dec 2018 16:39:06 +0100
parents f9a65e62c5e5
children
line wrap: on
line source

function benchmark(func, N)
    default_arg('N',100);

    tic
    profile on

    for i = 1:N
        func();
    end

    profile viewer
end