summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-10-12 15:53:46 (GMT)
committerGitHub <noreply@github.com>2022-10-12 15:53:46 (GMT)
commitd09d2c7c916eb4007f57f2a39c1198004e916b51 (patch)
treeb7f3a42f362b575bdf33187a72cbbe80b9faa0a2 /Tools
parent342b1151ae7e6ae849c1ed7c8a2cbfdb4edcf51c (diff)
downloadcpython-d09d2c7c916eb4007f57f2a39c1198004e916b51.zip
cpython-d09d2c7c916eb4007f57f2a39c1198004e916b51.tar.gz
cpython-d09d2c7c916eb4007f57f2a39c1198004e916b51.tar.bz2
gh-97669: Remove Tools/scripts/startuptime.py (#98214)
The "pyperf command" tool be used instead. Example: $ python3 -m pyperf command -- python3 -c pass ..................... command: Mean +- std dev: 17.8 ms +- 0.4 ms pyperf also computes the standard deviation which gives an idea of the benchmark looks reliable or not.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/scripts/startuptime.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/Tools/scripts/startuptime.py b/Tools/scripts/startuptime.py
deleted file mode 100644
index 1bb5b20..0000000
--- a/Tools/scripts/startuptime.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# Quick script to time startup for various binaries
-
-import subprocess
-import sys
-import time
-
-NREPS = 100
-
-
-def main():
- binaries = sys.argv[1:]
- for bin in binaries:
- t0 = time.time()
- for _ in range(NREPS):
- result = subprocess.run([bin, "-c", "pass"])
- result.check_returncode()
- t1 = time.time()
- print(f"{(t1-t0)/NREPS:6.3f} {bin}")
-
-
-if __name__ == "__main__":
- main()