Mercurial > repos > public > sbplib_julia
view benchmarks/laplace_benchmark.m @ 1894:7a79e7f36ad4 laplace_benchmarks
Close branch
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 31 Jan 2025 10:56:57 +0100 |
parents | 4f3924293894 |
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)