Commit bd4bbddc authored by Peter Jentsch's avatar Peter Jentsch
Browse files

duration tests

parent e1af0ccc
...@@ -59,7 +59,7 @@ using OnlineStats ...@@ -59,7 +59,7 @@ using OnlineStats
generate_contact_vectors!(dist[i,j],num_degrees_ii) generate_contact_vectors!(dist[i,j],num_degrees_ii)
@test iseven(sum(num_degrees_ii)) @test iseven(sum(num_degrees_ii))
@test mean(num_degrees_ii) mean(dist[i,j]) atol = 1e-2 @test mean(num_degrees_ii) mean(dist[i,j]) atol = 1e-2
@test var(num_degrees_ii) var(dist[i,j]) atol = 1e-1 @test var(num_degrees_ii) var(dist[i,j]) atol = 5e-1
@test skewness(num_degrees_ii) skewness(dist[i,j]) atol = 5e-1 @test skewness(num_degrees_ii) skewness(dist[i,j]) atol = 5e-1
end end
end end
......
...@@ -30,7 +30,7 @@ end ...@@ -30,7 +30,7 @@ end
@testset "perf" begin @testset "perf" begin
b = @belapsed CovidAlertVaccinationModel.bench() b = @belapsed CovidAlertVaccinationModel.bench()
@test 3.0 < b < 4.5 @test 2.5 < b < 4.0
if Threads.nthreads() == 25 if Threads.nthreads() == 25
b = @belapsed CovidAlertVaccinationModel.threaded_bench() b = @belapsed CovidAlertVaccinationModel.threaded_bench()
@test 12.0 < b < 16.00 @test 12.0 < b < 16.00
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment