Skip to content

Commit

Permalink
Capture performance of interpreter startup. Ref pypa#3006.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 8, 2022
1 parent 9f37366 commit 02f788e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def measure_startup_perf():
# run by pytest_perf
import subprocess
import sys # end warmup

subprocess.check_call([sys.executable, '-c', 'pass'])
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ testing =
# workaround for jaraco/skeleton#22
python_implementation != "PyPy"
pytest-enabler >= 1.0.1
pytest-perf

# local
mock
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ extras = testing
passenv =
SETUPTOOLS_USE_DISTUTILS
windir # required for test_pkg_resources
# honor git config in pytest-perf
HOME

[testenv:integration]
deps = {[testenv]deps}
Expand Down

0 comments on commit 02f788e

Please sign in to comment.