Skip to content

Commit bb41bda

Browse files
committed
Update numpy benchmarks version
1 parent 7ec0928 commit bb41bda

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

mx.graalpython/mx_graalpython_python_benchmarks.py

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -656,22 +656,17 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
656656

657657

658658
class NumPySuite(PySuite):
659-
VERSION = "v1.23.5"
660-
661-
PREREQUISITES = """
662-
setuptools==63.1.0
663-
wheel==0.37.1
664-
"""
665-
666-
BENCHMARK_REQ = f"""
667-
asv==0.5.1
668-
distlib==0.3.6
669-
filelock==3.8.0
670-
platformdirs==2.5.2
671-
six==1.16.0
672-
virtualenv==20.16.3
673-
numpy=={VERSION}
674-
"""
659+
VERSION = "v1.26.4"
660+
661+
BENCHMARK_REQ = [
662+
"asv==0.5.1",
663+
"distlib==0.3.6",
664+
"filelock==3.8.0",
665+
"platformdirs==2.5.2",
666+
"six==1.16.0",
667+
"virtualenv==20.16.3",
668+
f"numpy=={VERSION}",
669+
]
675670

676671
def name(self):
677672
return "numpy-suite"
@@ -730,13 +725,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
730725

731726
vm.run(workdir, ["-m", "venv", join(workdir, vm_venv)])
732727
pip = join(workdir, vm_venv, "bin", "pip")
733-
requirements_txt = join(workdir, "requirements.txt")
734-
with open(requirements_txt, "w") as f:
735-
f.write(self.PREREQUISITES)
736-
mx.run([pip, "install", "-r", requirements_txt], cwd=workdir)
737-
with open(requirements_txt, "w") as f:
738-
f.write(self.BENCHMARK_REQ)
739-
mx.run([pip, "install", "-r", requirements_txt], cwd=workdir)
728+
mx.run([pip, "install", *self.BENCHMARK_REQ], cwd=workdir)
740729
mx.run(
741730
[join(workdir, vm_venv, "bin", "asv"), "machine", "--yes"], cwd=benchdir
742731
)

0 commit comments

Comments
 (0)