view benchmark.m @ 1078:532b58a9e849

Bugfix in multiblock.domain.Line method getGrid.
author Martin Almquist <malmquist@stanford.edu>
date Wed, 20 Feb 2019 12:32: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