comparison +noname/benchmark.m @ 115:1fe783681f9f

noname.benchmark: added deafult value to do_profile.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 14 Dec 2015 19:07:36 +0100
parents f121bf58c1b9
children
comparison
equal deleted inserted replaced
114:1035c190e8de 115:1fe783681f9f
5 % benchmark(discr,1000,'rk4') 5 % benchmark(discr,1000,'rk4')
6 6
7 function hand = benchmark(discretization,N ,time_method,do_profile) 7 function hand = benchmark(discretization,N ,time_method,do_profile)
8 default_arg('N',100); 8 default_arg('N',100);
9 default_arg('time_method',[]); 9 default_arg('time_method',[]);
10 default_arg('do_profile',true);
10 11
11 fprintf('Creating time discretization'); 12 fprintf('Creating time discretization');
12 tic 13 tic
13 ts = discretization.getTimestepper(time_method); 14 ts = discretization.getTimestepper(time_method);
14 fprintf(' - done %fs\n', toc()); 15 fprintf(' - done %fs\n', toc());