Skip to content

Commit

Permalink
test(perf): more experiments for #1527
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jan 7, 2023
1 parent b3b05bd commit dc4f0c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lab/benchmark.py
Expand Up @@ -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():
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -570,6 +573,7 @@ def run_experiment(
if 1:
run_experiment(
py_versions=[
Python(3, 9),
Python(3, 11),
],
cov_versions=[
Expand Down

0 comments on commit dc4f0c1

Please sign in to comment.