view benchmark.m @ 926:60a3bc79835a feature/utux2D

Make multiblock.setAllInterfaceOptions set opts only for those entries where grid.connections indicates interface couplings.
author Martin Almquist <malmquist@stanford.edu>
date Mon, 03 Dec 2018 12:02:27 -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