We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c714cb3 commit d203cd1Copy full SHA for d203cd1
test/bench.jl
@@ -194,5 +194,15 @@ using LinearAlgebra
194
@info "Calculate Results Allocations: $(result.allocs) Memory: $(result.memory)"
195
@test result.allocs ≤ 300
196
end
197
+
198
+ @testset "Allocation Tests for solve() and solve!()" begin
199
+ # Step 5: Solve using both methods
200
+ result = @benchmark solve_base!($solver, $body_aero, nothing) samples=1 evals=1 # 51 allocations
201
+ @test result.allocs <= 55
202
+ # time Python: 32.0 ms Ryzen 7950x
203
+ # time Julia: 0.45 ms Ryzen 7950x
204
+ result = @benchmark sol = solve!($solver, $body_aero, nothing) samples=1 evals=1 # 85 allocations
205
+ @test result.allocs <= 89
206
+ end
207
208
test/bench2.jl
0 commit comments