From dc4f0c1f82731250d0eb2a463b7867457e97c675 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 6 Jan 2023 06:36:38 -0500 Subject: [PATCH] test(perf): more experiments for #1527 --- lab/benchmark.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lab/benchmark.py b/lab/benchmark.py index 4c5de3c48..39f038229 100644 --- a/lab/benchmark.py +++ b/lab/benchmark.py @@ -123,6 +123,9 @@ def __init__(self): if self.git_url: self.slug = self.git_url.split("/")[-1] + def shell(self): + return ShellSession(f"output_{self.slug}.log") + def make_dir(self): self.dir = Path(f"work_{self.slug}") if self.dir.exists(): @@ -421,7 +424,7 @@ def run(self, num_runs: int = 3) -> None: for proj in self.projects: print(f"Testing with {proj.slug}") - with ShellSession(f"output_{proj.slug}.log") as shell: + with proj.shell() as shell: proj.make_dir() proj.get_source(shell) @@ -570,6 +573,7 @@ def run_experiment( if 1: run_experiment( py_versions=[ + Python(3, 9), Python(3, 11), ], cov_versions=[