Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/src/manual/performance-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -1446,15 +1446,15 @@ the optimizer from trying to be too clever and defeat our benchmark):
```julia
@noinline function inner(x, y)
s = zero(eltype(x))
for i=eachindex(x)
for i in eachindex(x, y)
@inbounds s += x[i]*y[i]
end
return s
end

@noinline function innersimd(x, y)
s = zero(eltype(x))
@simd for i = eachindex(x)
@simd for i in eachindex(x, y)
@inbounds s += x[i] * y[i]
end
return s
Expand Down