diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-01-07 23:13:16 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-01-07 23:13:16 -0500 |
commit | 02f788e73556b90f40acf4b08b27411eb6fc8deb (patch) | |
tree | e24482aacf30ee05c1abc29fe6957a472d29908c /exercises.py | |
parent | 9f37366aab9cd8f6baa23e6a77cfdb8daf97757e (diff) | |
download | python-setuptools-git-feature/distutils-hack-startup-perf.tar.gz |
Capture performance of interpreter startup. Ref #3006.feature/distutils-hack-startup-perf
Diffstat (limited to 'exercises.py')
-rw-r--r-- | exercises.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/exercises.py b/exercises.py new file mode 100644 index 00000000..76176be5 --- /dev/null +++ b/exercises.py @@ -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']) |