Skip to content

Commit 8faf12f

Browse files
committed
add our patch to give more warmup to graalpython
1 parent 0f72f81 commit 8faf12f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

graalpython/lib-graalpython/patches/asv/sdist/asv-0.5.1.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
diff --git a/asv/benchmark.py b/asv/benchmark.py
2+
index 6411894..05f0678 100644
3+
--- a/asv/benchmark.py
4+
+++ b/asv/benchmark.py
5+
@@ -535,6 +535,8 @@ def run(self, *param):
6+
if warmup_time < 0:
7+
if '__pypy__' in sys.modules:
8+
warmup_time = 1.0
9+
+ elif '__graalpython__' in sys.modules:
10+
+ warmup_time = 5.0
11+
else:
12+
# Transient effects exist also on CPython, e.g. from
13+
# OS scheduling
114
diff --git a/asv/benchmarks.py b/asv/benchmarks.py
215
index 6411894..05f0678 100644
316
--- a/asv/benchmarks.py

0 commit comments

Comments
 (0)