summaryrefslogtreecommitdiff
path: root/benchmarks/matvec_small.dx
blob: be7ac4a6e505b9a70259ec9cde8ba58646fe3601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
n = 10
width = 10000

ms = for i:(Fin width). rand_mat(n, n, randn, new_key 0)
vs = for i:(Fin width). rand_vec(n, randn, new_key 1)

%bench "matvec_small"
res = for i. ms[i] **. vs[i]
>
> matvec_small
> Compile time: 29.506 ms
> Run time:     387.630 us 	(based on 1 run)