view benchmark.m @ 684:fcf004066ea9 feature/poroelastic

Add property lim to grid/Cartesian to make periodic discr easier.
author Martin Almquist <malmquist@stanford.edu>
date Thu, 08 Feb 2018 16:40:48 -0800
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