Mercurial > repos > public > sbplib_julia
comparison laplace_benchmark.m @ 873:9929c99754fb laplace_benchmarks
Add some benchmarks using the Laplace Operator Set
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Wed, 19 Jan 2022 13:15:45 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
865:545a6c1a0a0e | 873:9929c99754fb |
---|---|
1 m = 4001; | |
2 ops = sbp.D2Standard(m,{0,1},4); | |
3 D2 = ops.D2; | |
4 u = linspace(0,1,m)'; | |
5 f = zeros(size(u)); | |
6 | |
7 nsample = 10000; | |
8 ts = zeros(nsample,1); | |
9 | |
10 for i = 1:nsample | |
11 tic; f = D2*u; t = toc; | |
12 ts(i) = t; | |
13 end | |
14 min(ts) |