Commit 31caac64 authored by s.zitz's avatar s.zitz
Browse files

These performance tests are somewhat useless but okay

parent 68a7c7ec
Pipeline #22875 failed with stage
in 5 minutes and 38 seconds
...@@ -248,14 +248,14 @@ end ...@@ -248,14 +248,14 @@ end
benchres = @benchmark slippage!($f.x, $f.y, $mom.height, $mom.velocity.x, $mom.velocity.y, $col) benchres = @benchmark slippage!($f.x, $f.y, $mom.height, $mom.velocity.x, $mom.velocity.y, $col)
benchtime = median(benchres).time/10^6 benchtime = median(benchres).time/10^6
t0 = 0.01 t0 = 0.01 + t0/100*10
@test benchtime t0 @test benchtime t0
end end
@testset "Thermal fluctuations" begin @testset "Thermal fluctuations" begin
col = JuThinFilm.collisionparams{Float64}(kᵦT=11/6, μ=2.0) col = JuThinFilm.collisionparams{Float64}(kᵦT=11/6, μ=2.0)
benchres = @benchmark thermalfluctuations!($f, $mom, $col) benchres = @benchmark thermalfluctuations!($f, $mom, $col)
benchtime = median(benchres).time/10^6 benchtime = median(benchres).time/10^6
t0 = 0.01 t0 = 0.01 + t0/100*10
@test benchtime t0 @test benchtime t0
end end
@testset "Pressure gradient" begin @testset "Pressure gradient" begin
...@@ -263,7 +263,7 @@ end ...@@ -263,7 +263,7 @@ end
padpressure = padarray(pressure, Pad(:circular, 1, 1)) padpressure = padarray(pressure, Pad(:circular, 1, 1))
benchres = @benchmark h∇p!($f.x, $f.y, $mom.height, $padpressure) benchres = @benchmark h∇p!($f.x, $f.y, $mom.height, $padpressure)
benchtime = median(benchres).time/10^6 benchtime = median(benchres).time/10^6
t0 = 0.01 t0 = 0.015 + t0/100*10
@test benchtime t0 @test benchtime t0
end end
@testset "Inclined plane" begin @testset "Inclined plane" begin
...@@ -271,7 +271,7 @@ end ...@@ -271,7 +271,7 @@ end
mag = 0.001 mag = 0.001
benchres = @benchmark inclinedplane!($f.x, $f.y, $mom.height, $t, $mag, $true, $true) benchres = @benchmark inclinedplane!($f.x, $f.y, $mom.height, $t, $mag, $true, $true)
benchtime = median(benchres).time/10^6 benchtime = median(benchres).time/10^6
t0 = 0.005 t0 = 0.005 + t0/100*10
@test benchtime t0 @test benchtime t0
end end
@testset "Summation of forces" begin @testset "Summation of forces" begin
...@@ -282,7 +282,7 @@ end ...@@ -282,7 +282,7 @@ end
f2.y .= -0.2; f3.y .= -0.3; f4.y .= -0.4 f2.y .= -0.2; f3.y .= -0.3; f4.y .= -0.4
benchres = @benchmark sumforces!($f.x, $f.y, $f2.x, $f2.y, $f3.x, $f3.y, $f4.x, $f4.y) benchres = @benchmark sumforces!($f.x, $f.y, $f2.x, $f2.y, $f3.x, $f3.y, $f4.x, $f4.y)
benchtime = median(benchres).time/10^6 benchtime = median(benchres).time/10^6
t0 = 0.005 t0 = 0.005 + t0/100*10
@test benchtime t0 @test benchtime t0
end end
end end
\ No newline at end of file
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