view benchmark.m @ 883:76efb6a7b466 feature/poroelastic

Add Jonatans bugfix to bcSetup.
author Martin Almquist <malmquist@stanford.edu>
date Fri, 02 Nov 2018 10:44:59 -0700
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