pyperf
pyperf copied to clipboard
gh-187: Support environment variables PYTHON_GIL / PYTHON_CPU_COUNT
- https://docs.python.org/3.13/using/cmdline.html#envvar-PYTHON_CPU_COUNT
- https://docs.python.org/3.13/using/cmdline.html#envvar-PYTHON_GIL
cc @tonybaloney
@hugovk PTAL for this PR too :)
Remark: If clearing env vars is a surprising/bad default behavior for end users, we can also just remove it? I did it to make benchmarks easier to reproduce.
Remark: If clearing env vars is a surprising/bad default behavior for end users, we can also just remove it? I did it to make benchmarks easier to reproduce.
I think that the propagation is the more precise way. I prefer to support it as same as currently.