From 6500e00bf36d2a7c9fdcf871a6deaf3266d53193 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Mon, 31 May 2021 08:54:46 -0400 Subject: [PATCH] consolidate --- test/core.jl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/core.jl b/test/core.jl index 9919bb7..a5c6652 100644 --- a/test/core.jl +++ b/test/core.jl @@ -43,11 +43,10 @@ function noprog_perf(n) return x end -prog_perf(10^7) -noprog_perf(10^7) -@time prog_perf(10^7) -@time noprog_perf(10^7) - -if get(ENV, "GITHUB_ACTIONS", "false") != "true" # CI environment is too unreliable for performance tests +if get(ENV, "GITHUB_ACTIONS", "false") != "true" # CI environment is too unreliable for performance tests + prog_perf(10^7) + noprog_perf(10^7) + @time prog_perf(10^7) + @time noprog_perf(10^7) @test @elapsed(prog_perf(10^7)) < 9*@elapsed(noprog_perf(10^7)) end