Skip to content

Commit

Permalink
Add test to check regression in allocations
Browse files Browse the repository at this point in the history
Currently I get 4609144 bytes allocated, whilst with `callback = (args...) -> false` I get 69929923 which should be a lower bound if the fixes in this pr were undone.
  • Loading branch information
Zentrik committed Sep 30, 2023
1 parent 679c401 commit 868f4ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/OptimizationBBO/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ using Test
sol = solve(prob, BBO_adaptive_de_rand_1_bin_radiuslimited())
@test 10 * sol.objective < l1

@test (@allocated solve(prob, BBO_adaptive_de_rand_1_bin_radiuslimited())) < 1e7

prob = Optimization.OptimizationProblem(optprob, nothing, _p, lb = [-1.0, -1.0],
ub = [0.8, 0.8])
sol = solve(prob, BBO_adaptive_de_rand_1_bin_radiuslimited())
Expand Down

0 comments on commit 868f4ca

Please sign in to comment.