-
-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
performanceMust go fasterMust go fasterregressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous version
Description
Taking the following code, which measures iteration over ChainecVector
, I see a ~2x slowdown from Julia 1.5.4 -> 1.6 on macOS.
using SentinelArrays, BenchmarkTools
A = ChainedVector([[j for j = 1:1000] for i = 1:8])
function eachind2(A)
x = 0
for y in A
x += y
end
return x
end
1.5.4:
julia> @btime eachind2(A)
11.285 μs (1 allocation: 16 bytes)
4004000
1.6:
julia> @btime eachind2(A)
20.675 μs (1 allocation: 16 bytes)
4004000
Metadata
Metadata
Assignees
Labels
performanceMust go fasterMust go fasterregressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous version