view benchmark.m @ 361:4a5d83324ec1 feature/hypsyst

Meged with default
author Ylva Rydin <ylva.rydin@telia.com>
date Thu, 08 Dec 2016 13:38:04 +0100
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