Skip to content

Overhead of deprecation warnings increased with 500x (linux) and ~10x (mac) vs 1.11 #58326

Open
@KristofferC

Description

@KristofferC

Linux:

# 1.12
$  julia +1.12-nightly --depwarn=yes -q
julia> using SpecialFunctions, BenchmarkTools

julia> @btime lgamma(2.0)
┌ Warning: `lgamma(x::Real)` is deprecated, use `(logabsgamma(x))[1]` instead.
│   caller = var"##core#279"() at execution.jl:598
└ @ Core ~/.julia/packages/BenchmarkTools/1i1mY/src/execution.jl:598
  36.587 ms (95 allocations: 12.99 KiB)

#1.11
$  julia +1.11 --depwarn=yes -q
julia> using SpecialFunctions, BenchmarkTools

julia> @btime lgamma(2.0)
┌ Warning: `lgamma(x::Real)` is deprecated, use `(logabsgamma(x))[1]` instead.
│   caller = var"##core#235"() at execution.jl:598
└ @ Main ~/.julia/packages/BenchmarkTools/1i1mY/src/execution.jl:598
  57.840 μs (111 allocations: 12.23 KiB)
0.0

Mac:

# 1.12
❯ julia +1.12-nightly --depwarn=yes -q
julia> using SpecialFunctions, BenchmarkTools

julia> @btime lgamma(2.0)
┌ Warning: `lgamma(x::Real)` is deprecated, use `(logabsgamma(x))[1]` instead.
│   caller = var"##core#279"() at execution.jl:598
└ @ Core ~/.julia/packages/BenchmarkTools/1i1mY/src/execution.jl:598
  660.375 μs (90 allocations: 11.66 KiB)
0.0

# 1.11
❯ julia +1.11 --depwarn=yes -q
julia> using SpecialFunctions, BenchmarkTools

julia> @btime lgamma(2.0)
┌ Warning: `lgamma(x::Real)` is deprecated, use `(logabsgamma(x))[1]` instead.
│   caller = var"##core#235"() at execution.jl:598
└ @ Main ~/.julia/packages/BenchmarkTools/1i1mY/src/execution.jl:598
  69.916 μs (107 allocations: 12.34 KiB)
0.0

This might be the reason that quite a few packages time out on 1.12 PkgEval?

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprecationThis change introduces or involves a deprecationperformanceMust 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