view benchmark.m @ 914:50cafc4b9e40 feature/utux2D

Make default_field overwrite if field exists but is empty. Refactor interface method in Utux2d.
author Martin Almquist <malmquist@stanford.edu>
date Sun, 25 Nov 2018 21:09:22 -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