Skip to content

Commit aefde59

Browse files
Use threads because windows is unhappy
1 parent db29d34 commit aefde59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyperformance/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def run_benchmarks(should_run, python, options):
142142
executor_input = [(i+1, len(to_run), python, options, bench)
143143
for i, bench in enumerate(to_run[1:])]
144144
# It's fine to set a higher worker count, because this is IO-bound anyways.
145-
with concurrent.futures.ProcessPoolExecutor(max_workers=max(1, len(to_run))) as executor:
146-
for bench, venv_root, venv, bench_runid, cons_output in executor.map(setup_single_venv, executor_input):
145+
with concurrent.futures.ThreadPoolExecutor(max_workers=max(1, len(to_run))) as executor:
146+
for bench, venv_root, venv, bench_runid, cons_output in list(executor.map(setup_single_venv, executor_input)):
147147
if venv_root is not None:
148148
venvs.add(venv_root)
149149
benchmarks[bench] = (venv, bench_runid)

0 commit comments

Comments
 (0)