Skip to content

Commit

Permalink
added test that Window(async=true) is faster than async=false.
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly committed Sep 24, 2018
1 parent 1d81745 commit 10cc2ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/AtomShell/window.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@ using Test
size(w, 200,200)
@test size(w) == [200,200]
end

@testset "async" begin
# Test that async Window() creation is faster than synchronous creation.
# (Repeat the test a few times, just to be sure it's consistent.)
for _ in 1:5
(@timed Window(Blink.@d(:show => false), async=true))[2] <
(@timed Window(Blink.@d(:show => false), async=false))[2]
end
end

0 comments on commit 10cc2ba

Please sign in to comment.