view benchmark.m @ 150:d5a794c734bc feature/grids

Starting branch for adding abstract classes for grids, grid functions as well as implementing plotting and error calculation for these.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 21 Dec 2015 15:06:16 +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