What is versioninfo()
? I can’t reproduce this. There is an allocation difference, but not a runtime difference.
Note that I had to change your code slightly
# dual = get_dual_value(c1)
dual = JuMP.dual(c1)
With v1.15
julia> include("/tmp/hgh/main.jl")
1.712105 seconds (2.72 M allocations: 151.881 MiB, 1.48% gc time, 4.17% compilation time)
results[end - 10:end] = [(45.14943422829527, -1.7999816441116678), (44.61201275651888, -1.7999816441116678), (45.00089601640482, -1.7999816441116678), (45.02738605754217, -1.7999816441116678), (44.30705007850558, -1.7999816441116678), (44.67384855889918, -1.7999816441116678), (44.90472480670809, -1.7999816441116678), (44.930990587329006, -1.7999816441116678), (45.27071418963132, -1.7999816441116678), (45.743776687659434, -1.7999816441116678), (45.77088802257778, -1.7999816441116678)]
1.618252 seconds (2.69 M allocations: 150.069 MiB, 0.60% gc time)
results[end - 10:end] = [(45.14943422829527, -1.7999816441116678), (44.61201275651888, -1.7999816441116678), (45.00089601640482, -1.7999816441116678), (45.02738605754217, -1.7999816441116678), (44.30705007850558, -1.7999816441116678), (44.67384855889918, -1.7999816441116678), (44.90472480670809, -1.7999816441116678), (44.930990587329006, -1.7999816441116678), (45.27071418963132, -1.7999816441116678), (45.743776687659434, -1.7999816441116678), (45.77088802257778, -1.7999816441116678)]
(hgh) pkg> st
Status `/private/tmp/hgh/Project.toml`
[87dc4568] HiGHS v1.15.0
[4076af6c] JuMP v1.25.0
with v1.14
julia> include("/tmp/hgh/main.jl")
1.678923 seconds (2.37 M allocations: 138.781 MiB, 1.06% gc time, 4.30% compilation time)
results[end - 10:end] = [(45.14943422829527, -1.7999816441116678), (44.61201275651888, -1.7999816441116678), (45.00089601640482, -1.7999816441116678), (45.02738605754217, -1.7999816441116678), (44.30705007850558, -1.7999816441116678), (44.67384855889918, -1.7999816441116678), (44.90472480670809, -1.7999816441116678), (44.930990587329006, -1.7999816441116678), (45.27071418963132, -1.7999816441116678), (45.743776687659434, -1.7999816441116678), (45.77088802257778, -1.7999816441116678)]
1.614805 seconds (2.34 M allocations: 136.969 MiB, 0.86% gc time)
results[end - 10:end] = [(45.14943422829527, -1.7999816441116678), (44.61201275651888, -1.7999816441116678), (45.00089601640482, -1.7999816441116678), (45.02738605754217, -1.7999816441116678), (44.30705007850558, -1.7999816441116678), (44.67384855889918, -1.7999816441116678), (44.90472480670809, -1.7999816441116678), (44.930990587329006, -1.7999816441116678), (45.27071418963132, -1.7999816441116678), (45.743776687659434, -1.7999816441116678), (45.77088802257778, -1.7999816441116678)]
(hgh2) pkg> st
Status `/private/tmp/hgh2/Project.toml`
⌃ [87dc4568] HiGHS v1.14.0
[4076af6c] JuMP v1.25.0
Info Packages marked with ⌃ have new versions available and may be upgradable.