view benchmark.m @ 677:eeaf9a00e304 feature/poroelastic

Correct factor of 2 in Dirichlet penalty parameter.
author Martin Almquist <malmquist@stanford.edu>
date Fri, 26 Jan 2018 15:17:49 -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