Skip to content

50% performance regression in map! #35914

@stevengj

Description

@stevengj

From discourse, I see a big performance regression compared to Julia 1.0 in a simple map! call starting in Julia 1.2:

using BenchmarkTools
test8!(D, A, B, C) = map!((a, b, c) -> a + b + c, D, A, B, C)
A = rand(1000,1000); B = rand(1000,1000); C = rand(1000,1000); D = zeros(1000,1000);
@btime test8!($D,$A,$B,$C);

Julia 1.0.4 gives 1.817 ms and Julia 1.1.0 gives 1.961 ms, but Julia 1.2.0 gives 3.004 ms, Julia 1.3.0 gives 3.091 ms, and Julia 1.4.0 gives 3.006 ms.

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