From 4a18a7015429d8abf3313a95fcbcd7d71cd4c1c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Tue, 22 Mar 2022 18:10:15 +0100 Subject: [PATCH] change @benchmark to @btime --- ch04.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ch04.jl b/ch04.jl index 866700c..ac7c442 100644 --- a/ch04.jl +++ b/ch04.jl @@ -69,9 +69,9 @@ axes(aq, 2) using BenchmarkTools x = ones(10^7, 10) -@benchmark [mean(@view $x[:, j]) for j in axes($x, 2)] -@benchmark [mean($x[:, j]) for j in axes($x, 2)] -@benchmark mean($x, dims=1) +@btime [mean(@view $x[:, j]) for j in axes($x, 2)]; +@btime [mean($x[:, j]) for j in axes($x, 2)]; +@btime mean($x, dims=1); # Code for section 4.1.5