Skip to content

Commit

Permalink
consolidate
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored May 31, 2021
1 parent 0f76ef5 commit 6500e00
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6500e00

Please sign in to comment.