We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
update?()
update?_eachindex()
1 parent f77f7a7 commit 79af57cCopy full SHA for 79af57c
benchmark/benchmarks.jl
@@ -8,11 +8,15 @@ y = OffsetArray(Float64, -dim + 1 : dim)
8
9
fillx() = for i = 1:2*dim x[i] = i end
10
filly() = for i = -dim+1:dim y[i] = i end
11
-updatex() = for i = 1:2*dim x[i] = i end
12
-updatey() = for i = -dim+1:dim y[i] = i end
+updatex() = for i = 1:2*dim x[i] = x[i] + i end
+updatey() = for i = -dim+1:dim y[i] = y[i] + i end
13
+updatex_eachindex() = for i in eachindex(x) x[i] + i end
14
+updatey_eachindex() = for i in eachindex(y) y[i] = y[i] + i end
15
-@benchmark fillx()
16
+@benchmark fillx()
17
@benchmark filly()
-@benchmark updatex()
18
+@benchmark updatex()
19
@benchmark updatey()
20
+@benchmark updatex_eachindex()
21
+@benchmark updatey_eachindex()
22
0 commit comments