change @benchmark to @btime
This commit is contained in:
parent
bbc69df85a
commit
4a18a70154
6
ch04.jl
6
ch04.jl
@ -69,9 +69,9 @@ axes(aq, 2)
|
|||||||
|
|
||||||
using BenchmarkTools
|
using BenchmarkTools
|
||||||
x = ones(10^7, 10)
|
x = ones(10^7, 10)
|
||||||
@benchmark [mean(@view $x[:, j]) for j in axes($x, 2)]
|
@btime [mean(@view $x[:, j]) for j in axes($x, 2)];
|
||||||
@benchmark [mean($x[:, j]) for j in axes($x, 2)]
|
@btime [mean($x[:, j]) for j in axes($x, 2)];
|
||||||
@benchmark mean($x, dims=1)
|
@btime mean($x, dims=1);
|
||||||
|
|
||||||
# Code for section 4.1.5
|
# Code for section 4.1.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user