This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [Benchmarks] Add --testonly argument to perf.py to run benchmarks only for correctness checking
Type: enhancement Stage: patch review
Components: Benchmarks Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, gregory.p.smith, pitrou, twouters, vstinner
Priority: normal Keywords: patch

Created on 2016-09-12 18:22 by twouters, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
benchmarks-testonly.diff twouters, 2016-09-12 18:22
Messages (3)
msg276086 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2016-09-12 18:22
The attached patch adds a --testonly mode to the 'perf.py' benchmark runner, which runs the selected benchmarks in the fastest possible way with just one interpreter (without filtering out slow benchmarks, or benchmarks that can't run in raw mode).

The intent is for this to be a relatively quick way to check that the benchmarks are not broken. I'm including the benchmarks in this mode in our continuous-build system (making sure the benchmarks will run when we need to do actual benchmarking), and this saves a significant amount of time while still allowing us to test all benchmarks (both --fast and --raw skip certain benchmarks).
msg276093 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2016-09-12 19:12
Is this against https://github.com/python/performance or hg.python.org/benchmarks?
msg276103 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-09-12 19:56
Please use the new benchmark suite: https://github.com/python/performance

performance already has such option: --debug-single-sample. It's already used by runtests.py which is run by tox and automatically by Travis CI. Enjoy!
History
Date User Action Args
2022-04-11 14:58:36adminsetgithub: 72293
2016-09-12 19:56:12vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg276103
2016-09-12 19:12:44brett.cannonsetmessages: + msg276093
2016-09-12 18:41:02serhiy.storchakasetnosy: + vstinner
2016-09-12 18:22:45twouterscreate