view benchmark.m @ 965:db3411264b96 feature/poroelastic

Remove use of tensor library in B assembly
author Martin Almquist <malmquist@stanford.edu>
date Sat, 22 Dec 2018 16:41:17 +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