Mercurial > repos > public > sbplib_julia
view benchmarks/laplace_benchmark.m @ 876:4f3924293894 laplace_benchmarks
Add examples and benchmarks folders
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 27 Jan 2022 11:00:31 +0100 |
parents | laplace_benchmark.m@9929c99754fb |
children |
line wrap: on
line source
m = 4001; ops = sbp.D2Standard(m,{0,1},4); D2 = ops.D2; u = linspace(0,1,m)'; f = zeros(size(u)); nsample = 10000; ts = zeros(nsample,1); for i = 1:nsample tic; f = D2*u; t = toc; ts(i) = t; end min(ts)