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

Performance changes and updates for Julia v1.11 #16

Merged
merged 10 commits into from
Nov 30, 2024
Merged

Conversation

ConnectedSystems
Copy link
Owner

# HyMod
julia> @time run_node!(hymod_node, climate);
  0.075078 seconds (1.86 M allocations: 45.034 MiB, 12.45% gc time)

# After optimizations
julia> @time run_node!(hymod_node, climate);
  0.017009 seconds (395.05 k allocations: 12.057 MiB)

  
# SYMHYD
julia> @time run_node!(symhyd_node, climate)
  0.094059 seconds (2.09 M allocations: 50.622 MiB, 12.94% gc time)
  
# After optimizations
julia> @time run_node!(symhyd_node, climate);
  0.020182 seconds (656.82 k allocations: 15.046 MiB)
  

# GR4J
julia> @time run_node!(gr4j_node, climate);
  0.061611 seconds (1.18 M allocations: 39.326 MiB)

# After Optimizations

julia> @time run_node!(gr4j_node, climate);
  0.015513 seconds (150.55 k allocations: 4.451 MiB)
  

# IHACRES
julia> @time run_node!(ihacres_node, climate);
  0.159082 seconds (1.50 M allocations: 47.337 MiB, 7.26% gc time)
  
# After Optimizations

julia> @time run_node!(ihacres_node, climate);
  0.108612 seconds (902.87 k allocations: 23.967 MiB)

Note the ModelParameters.jl dependency currently has a bug. A fix is in the works but for the moment, use the fix-62-array-methoderror branch.

@ConnectedSystems ConnectedSystems merged commit 112d0a3 into main Nov 30, 2024
0 of 7 checks passed
@ConnectedSystems ConnectedSystems deleted the migration branch November 30, 2024 05:12
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 this pull request may close these issues.

1 participant