view benchmark.m @ 689:60eb7f46d8d9 feature/poroelastic

Bugfix get_boundary_op in Elastic2d and Heat2d
author Martin Almquist <malmquist@stanford.edu>
date Thu, 15 Feb 2018 16:38:36 -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