Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terrible performance with Julia 1.10+ProgressMeter 1.10 #323

Closed
MarcMush opened this issue Jul 13, 2024 · 1 comment · Fixed by #325
Closed

Terrible performance with Julia 1.10+ProgressMeter 1.10 #323

MarcMush opened this issue Jul 13, 2024 · 1 comment · Fixed by #325

Comments

@MarcMush
Copy link
Collaborator

using ProgressMeter

function prog_perf(n)
    prog = Progress(n, enabled=false)
    x = 0.0
    for i in 1:n
        x += rand()
        next!(prog)
    end
    return x
end

function noprog_perf(n)
    x = 0.0
    for i in 1:n
        x += rand()
    end
    return x
end

time on windows:
noprog: ~0.01 sec
julia 1.10, ProgressMeter 1.10: 8.0 sec
julia 1.9, ProgressMeter 1.10 : 0.17 sec
julia 1.11-rc1, ProgressMeter 1.10 : 2.28 sec
julia 1.10, ProgressMeter 1.9: 0.11 sec

similar times on Linux

profiling seems to inidicate a lot of time in getproperty and setproperty!, so it might be because of ProgressCore, but it doesn't happen in julia 1.9 so it's weird

@MarcMush
Copy link
Collaborator Author

JuliaLang/julia#55117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant