summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-07-22 20:17:23 (GMT)
committerGitHub <noreply@github.com>2019-07-22 20:17:23 (GMT)
commit2406672984e4c1b18629e615edad52928a72ffcc (patch)
treed29ab852958b125ff79525e23f36604a9fb3aaa2 /Makefile.pre.in
parent5b398520a8ff397b5a7cc28851a582faaa5ee492 (diff)
downloadcpython-2406672984e4c1b18629e615edad52928a72ffcc.zip
cpython-2406672984e4c1b18629e615edad52928a72ffcc.tar.gz
cpython-2406672984e4c1b18629e615edad52928a72ffcc.tar.bz2
bpo-36044: Reduce number of unit tests run for PGO build (GH-14702)
Reduce the number of unit tests run for the PGO generation task. This speeds up the task by a factor of about 15x. Running the full unit test suite is slow. This change may result in a slightly less optimized build since not as many code branches will be executed. If you are willing to wait for the much slower build, the old behavior can be restored using './configure [..] PROFILE_TASK="-m test --pgo-extended"'. We make no guarantees as to which PGO task set produces a faster build. Users who care should run their own relevant benchmarks as results can depend on the environment, workload, and compiler tool chain. (cherry picked from commit 4e16a4a3112161a5c6981c0588142d4a4673a934) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 88abb56..6a9f4b5 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -255,9 +255,10 @@ TCLTK_INCLUDES= @TCLTK_INCLUDES@
TCLTK_LIBS= @TCLTK_LIBS@
# The task to run while instrumented when building the profile-opt target.
-# We exclude unittests with -x that take a rediculious amount of time to
-# run in the instrumented training build or do not provide much value.
-PROFILE_TASK=-m test.regrtest --pgo
+# To speed up profile generation, we don't run the full unit test suite
+# by default. The default is "-m test --pgo". To run more tests, use
+# PROFILE_TASK="-m test --pgo-extended"
+PROFILE_TASK= @PROFILE_TASK@
# report files for gcov / lcov coverage report
COVERAGE_INFO= $(abs_builddir)/coverage.info