You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>@benchmark$f +$f
BenchmarkTools.Trial:
memory estimate:2.00 MiB
allocs estimate:2--------------
minimum time:383.274 μs (0.00% GC)
median time:427.439 μs (0.00% GC)
mean time:466.831 μs (4.51% GC)
maximum time:35.951 ms (98.51% GC)
--------------
samples:10000
evals/sample:1
julia>@benchmark$g +$g
BenchmarkTools.Trial:
memory estimate:2.00 MiB
allocs estimate:2--------------
minimum time:256.351 μs (0.00% GC)
median time:285.444 μs (0.00% GC)
mean time:398.107 μs (9.17% GC)
maximum time:37.207 ms (97.67% GC)
--------------
samples:10000
evals/sample:1
I know #26891 was just merged and mentions some known performance regressions, although I'm not sure if this is those. I see some or most of this slowdown even before that commit.
In case it helps:
julia> versioninfo()
Julia Version 0.7.0-DEV.4959
Commit 509d6a1a88* (2018-04-27 21:12 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-5.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 1
The text was updated successfully, but these errors were encountered:
My guess is that previously LLVM had been able to hoist these bounds checks out of the loop. That's no longer the case. The quick fix here for you to restore the performance is by writing your own @boundscheck blocks or by using Base.@propagate_inbounds (the former is a bit better practice since you'll get better bounds error messages that are more relevant to the user).
I have a very basic "array wrapper" type (reduced from something more realistic),
On 0.6.2, it is exactly as fast as
Array
c.f. broadcasting,whereas with current master (509d6a1) I find,
I know #26891 was just merged and mentions some known performance regressions, although I'm not sure if this is those. I see some or most of this slowdown even before that commit.
In case it helps:
The text was updated successfully, but these errors were encountered: