Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit db29d34

Browse filesBrowse files
fix bug
1 parent ecbfbf0 commit db29d34
Copy full SHA for db29d34

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎pyperformance/run.py

Copy file name to clipboardExpand all lines: pyperformance/run.py
+1-1Lines 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.ProcessPoolExecutor(max_workers=len(to_run)-1) as executor:
145+
with concurrent.futures.ProcessPoolExecutor(max_workers=max(1, len(to_run))) as executor:
146146
for bench, venv_root, venv, bench_runid, cons_output in 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.