view benchmark.m @ 605:0f9d20dbb7ce feature/utux2D

Add centered interface coupling in addition to upwind
author Martin Almquist <malmquist@stanford.edu>
date Thu, 05 Oct 2017 20:21:20 -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