File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
13
13
UnPack = " 3a884ed6-31ef-47d7-9d2a-63182c4928ed"
14
14
15
15
[extras ]
16
+ BenchmarkTools = " 6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
16
17
Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
17
18
18
19
[targets ]
19
- test = [" Test" ]
20
+ test = [" BenchmarkTools " , " Test" ]
Original file line number Diff line number Diff line change 1
1
using NonlinearSolve
2
2
using StaticArrays
3
+ using BenchmarkTools
3
4
using Test
4
5
5
6
function benchmark_immutable (f, u0)
@@ -28,6 +29,6 @@ sol = benchmark_mutable(f, u0)
28
29
sol = benchmark_scalar (sf, su0)
29
30
@test sol * sol - 2 < 1e-9
30
31
31
- @allocated benchmark_immutable (f, u0)
32
- @allocated benchmark_mutable (f, u0)
33
- @allocated benchmark_scalar (sf, su0)
32
+ @test_broken ( @ballocated benchmark_immutable ($ f, $ u0)) == 0
33
+ @test_broken ( @ballocated benchmark_mutable ($ f, $ u0)) == 0
34
+ @test ( @ballocated benchmark_scalar ($ sf, $ su0)) == 0
You can’t perform that action at this time.
0 commit comments