Skip to content

Commit

Permalink
switch back to processpoolexecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
Fidget-Spinner committed Dec 16, 2024
1 parent aefde59 commit 0cfc548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyperformance/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def run_benchmarks(should_run, python, options):
executor_input = [(i+1, len(to_run), python, options, bench)
for i, bench in enumerate(to_run[1:])]
# It's fine to set a higher worker count, because this is IO-bound anyways.
with concurrent.futures.ThreadPoolExecutor(max_workers=max(1, len(to_run))) as executor:
with concurrent.futures.ProcessPoolExecutor() as executor:
for bench, venv_root, venv, bench_runid, cons_output in list(executor.map(setup_single_venv, executor_input)):
if venv_root is not None:
venvs.add(venv_root)
Expand Down

0 comments on commit 0cfc548

Please sign in to comment.