File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -284,19 +284,20 @@ using OffsetArrays, BenchmarkTools
284
284
end
285
285
286
286
VERSION > v " 1.1" && @testset " allocation tests" begin
287
- # For sure these fail on Julia 1.0, not sure about 1.1 to 1.5
287
+ # For sure these fail on Julia 1.0, not sure about 1.3 etc.
288
+ # Each "@test 33 > ..." is zero on nightly, 32 on 1.5.
288
289
289
290
pvec = ProjectTo (rand (10 ^ 3 ))
290
- VERSION >= v " 1.7- " && @test 0 == @ballocated $ pvec (dx) setup= (dx= rand (10 ^ 3 )) # pass through
291
+ @test 0 == @ballocated $ pvec (dx) setup= (dx= rand (10 ^ 3 )) # pass through
291
292
@test 90 > @ballocated $ pvec (dx) setup= (dx= rand (10 ^ 3 ,1 )) # reshape
292
293
293
- @test 0 == @ballocated ProjectTo (x)(dx) setup= (x= rand (10 ^ 3 ); dx= rand (10 ^ 3 )) # including construction
294
+ @test 33 > @ballocated ProjectTo (x)(dx) setup= (x= rand (10 ^ 3 ); dx= rand (10 ^ 3 )) # including construction
294
295
295
296
padj = ProjectTo (adjoint (rand (10 ^ 3 )))
296
297
@test 0 == @ballocated $ padj (dx) setup= (dx= adjoint (rand (10 ^ 3 )))
297
298
@test 0 == @ballocated $ padj (dx) setup= (dx= transpose (rand (10 ^ 3 )))
298
299
299
- VERSION >= v " 1.7- " && @test 0 == @ballocated ProjectTo (x' )(dx' ) setup= (x= rand (10 ^ 3 ); dx= rand (10 ^ 3 ))
300
+ @test 33 > @ballocated ProjectTo (x' )(dx' ) setup= (x= rand (10 ^ 3 ); dx= rand (10 ^ 3 ))
300
301
301
302
pdiag = ProjectTo (Diagonal (rand (10 ^ 3 )))
302
303
@test 0 == @ballocated $ pdiag (dx) setup= (dx= Diagonal (rand (10 ^ 3 )))
You can’t perform that action at this time.
0 commit comments