You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Playing around with pyperf, I can't help but think I'm going to end up reimplementing/importing a bunch of the pyperformance code around venvs. When testing performance of almost any Python code, I probably want to do it with it installed rather than from within a source tree, which means that any user of pyperf will end up implementing that.
I don't really know what makes the most sense API-wise; one obvious option would be a context manager which allows you to with runner.venv("requirements.txt") as env: env.bench_func("name", func) perhaps?
The text was updated successfully, but these errors were encountered:
I'm not really excited by the idea of moving the venv feature from pyperformance into pyperf. Can't you use another tool to setup a venv to run benchmarks? I would prefer to restrict pyperf to a single task: run benchmark (and analyze results and compare results).
Playing around with pyperf, I can't help but think I'm going to end up reimplementing/importing a bunch of the pyperformance code around venvs. When testing performance of almost any Python code, I probably want to do it with it installed rather than from within a source tree, which means that any user of pyperf will end up implementing that.
I don't really know what makes the most sense API-wise; one obvious option would be a context manager which allows you to
with runner.venv("requirements.txt") as env: env.bench_func("name", func)
perhaps?The text was updated successfully, but these errors were encountered: