Skip to content

Commit d3efd65

Browse files
committed
Next try
1 parent 0415b2a commit d3efd65

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/bench_simplify.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
# Copyright (c) 2024, 2025 Bart van de Lint, Uwe Fechner
22
# SPDX-License-Identifier: MIT
33

4+
function is_running_on_github_ci()
5+
return get(ENV, "CI", "") == "true" &&
6+
get(ENV, "GITHUB_ACTIONS", "") == "true" &&
7+
haskey(ENV, "GITHUB_RUN_ID")
8+
end
9+
410
SIMPLE = false
511
T_REF = 48.0 # AMD Ryzen 7840U, Julia 1.11, no sys image [s]
612
# 37s with sys image
713
if VERSION.minor==12
814
T_REF /= 0.70 # Julia 1.12 is about 30% slower on AMD Ryzen 7 7840U
15+
if is_running_on_github_ci()
16+
T_REF /= 0.85 # GitHub CI is about 15% slower than local Ryzen 7 7840U
17+
end
918
end
1019
if Sys.iswindows()
1120
T_REF /= 0.75 # Windows is about 25% slower than Linux on same hardware

0 commit comments

Comments
 (0)