Skip to content

performance regression for min_fast and Float16 on master #48848

@matthias314

Description

@matthias314

Current master is almost 6x slower than before:

julia> v = rand(Float16, 2^10);
julia> @btime @fastmath foldl(min, $v)
  1.103 μs (0 allocations: 0 bytes)   # 1.9.0-beta4
  6.352 μs (0 allocations: 0 bytes)   # 1.10.0-DEV.680

max_fast is not affected, nor are Float32 and Float64.

Julia Version 1.10.0-DEV.680
Commit e2390597241 (2023-03-01 10:07 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 1 on 4 virtual cores

Metadata

Metadata

Assignees

No one assigned

    Labels

    float16performanceMust 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