psf / pyperf

Toolkit to run Python benchmarks
http://pyperf.readthedocs.io/
MIT License
771 stars 74 forks source link

gh-187: Support environment variables PYTHON_GIL / PYTHON_CPU_COUNT #188

Closed corona10 closed 2 months ago

corona10 commented 2 months ago
corona10 commented 2 months ago

cc @tonybaloney

corona10 commented 2 months ago

@hugovk PTAL for this PR too :)

vstinner commented 2 months ago

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.

corona10 commented 2 months ago

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.