|
| 1 | +[config] |
| 2 | +# Directory where JSON files are written. |
| 3 | +# - uploaded files are moved to json_dir/uploaded/ |
| 4 | +# - results of patched Python are written into json_dir/patch/ |
| 5 | +json_dir = TMPDIR/json |
| 6 | + |
| 7 | +# If True, compile CPython is debug mode (LTO and PGO disabled), |
| 8 | +# run benchmarks with --debug-single-sample, and disable upload. |
| 9 | +# |
| 10 | +# Use this option used to quickly test a configuration. |
| 11 | +debug = False |
| 12 | + |
| 13 | + |
| 14 | +[scm] |
| 15 | +# Directory of CPython source code (Git repository) |
| 16 | +repo_dir = TMPDIR/cpython |
| 17 | + |
| 18 | +# Update the Git repository (git fetch)? |
| 19 | +update = True |
| 20 | + |
| 21 | +# Name of the Git remote, used to create revision of |
| 22 | +# the Git branch. For example, use revision 'remotes/origin/3.6' |
| 23 | +# for the branch '3.6'. |
| 24 | +git_remote = remotes/origin |
| 25 | + |
| 26 | + |
| 27 | +[compile] |
| 28 | +# Create files into bench_dir: |
| 29 | +# - bench_dir/bench-xxx.log |
| 30 | +# - bench_dir/prefix/: where Python is installed |
| 31 | +# - bench_dir/venv/: Virtual environment used by pyperformance |
| 32 | +bench_dir = TMPDIR/bench_tmpdir |
| 33 | + |
| 34 | +# Link Time Optimization (LTO)? |
| 35 | +lto = True |
| 36 | + |
| 37 | +# Profiled Guided Optimization (PGO)? |
| 38 | +pgo = True |
| 39 | + |
| 40 | +# The space-separated list of libraries that are package-only, |
| 41 | +# i.e., locally installed but not on header and library paths. |
| 42 | +# For each such library, determine the install path and add an |
| 43 | +# appropriate subpath to CFLAGS and LDFLAGS declarations passed |
| 44 | +# to configure. As an exception, the prefix for openssl, if that |
| 45 | +# library is present here, is passed via the --with-openssl |
| 46 | +# option. Currently, this only works with Homebrew on macOS. |
| 47 | +# If running on macOS with Homebrew, you probably want to use: |
| 48 | +# pkg_only = openssl readline sqlite3 xz zlib |
| 49 | +# The version of zlib shipping with macOS probably works as well, |
| 50 | +# as long as Apple's SDK headers are installed. |
| 51 | +pkg_only = |
| 52 | + |
| 53 | +# Install Python? If false, run Python from the build directory |
| 54 | +# |
| 55 | +# WARNING: Running Python from the build directory introduces subtle changes |
| 56 | +# compared to running an installed Python. Moreover, creating a virtual |
| 57 | +# environment using a Python run from the build directory fails in many cases, |
| 58 | +# especially on Python older than 3.4. Only disable installation if you |
| 59 | +# really understand what you are doing! |
| 60 | +install = True |
| 61 | + |
| 62 | +# Specify '-j' parameter in 'make' command |
| 63 | +jobs = 24 |
| 64 | + |
| 65 | +[run_benchmark] |
| 66 | +# Run "sudo python3 -m pyperf system tune" before running benchmarks? |
| 67 | +system_tune = False |
| 68 | + |
| 69 | +# --manifest option for 'pyperformance run' |
| 70 | +manifest = |
| 71 | + |
| 72 | +# --benchmarks option for 'pyperformance run' |
| 73 | +benchmarks = |
| 74 | + |
| 75 | +# --affinity option for 'pyperf system tune' and 'pyperformance run' |
| 76 | +affinity = CPUID |
| 77 | + |
| 78 | +# Upload generated JSON file? |
| 79 | +# |
| 80 | +# Upload is disabled on patched Python, in debug mode or if install is |
| 81 | +# disabled. |
| 82 | +upload = True |
| 83 | + |
| 84 | +# Configuration to upload results to a Codespeed website |
| 85 | +[upload] |
| 86 | +url = https://speed.python.org/ |
| 87 | +# environment-name should be created on speed.python.org |
| 88 | +environment = environment-name |
| 89 | +executable = lto-pgo |
| 90 | +project = CPython |
| 91 | + |
| 92 | +[compile_all] |
| 93 | +# List of CPython Git branches |
| 94 | +branches = main |
| 95 | + |
| 96 | + |
| 97 | +# List of revisions to benchmark by compile_all |
| 98 | +[compile_all_revisions] |
| 99 | +# list of 'sha1=' (default branch: 'main') or 'sha1=branch' |
| 100 | +# used by the "pyperformance compile_all" command |
| 101 | +# e.g.: |
| 102 | +# 11159d2c9d6616497ef4cc62953a5c3cc8454afb = |
0 commit comments