10000 switch back to processpoolexecutor · python/pyperformance@0cfc548 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cfc548

Browse files
switch back to processpoolexecutor
1 parent aefde59 commit 0cfc548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyperformance/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ 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.ThreadPoolExecutor(max_workers=max(1, len(to_run))) as executor:
145+
with concurrent.futures.ProcessPoolExecutor() as executor:
146146
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)

0 commit comments

Comments
 (0)
0