[issue35537] use os.posix_spawn in subprocess

STINNER Victor report at bugs.python.org
Tue Jan 15 19:49:00 EST 2019


STINNER Victor <vstinner at redhat.com> added the comment:

subprocess_bench_stdout.py: benchmark for PR 11575 using stdout=subprocess.PIPE, /usr/bin/pwd, and allocate 2 GiB of memory in the parent process. Result on my laptop:

Mean +- std dev: [fork_exec] 28.2 ms +- 0.3 ms -> [posix_spawn] 561 us +- 209 us: 50.25x faster (-98%)

----------
Added file: https://bugs.python.org/file48057/subprocess_bench_stdout.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35537>
_______________________________________


More information about the Python-bugs-list mailing list