Skip to content

~2x slowdown from 1.5.4 -> 1.6 #841

@quinnj

Description

@quinnj

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

No one assigned

    Labels

    performanceMust go fasterregressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions