numpy
99 строк · 4.0 Кб
1// This config file is almost similar to 'asv.conf.json' except it contains
2// custom tokens that can be substituted by 'runtests.py' and ASV,
3// due to the necessity to add custom build options when `--bench-compare`
4// is used.
5{
6// The version of the config file format. Do not change, unless
7// you know what you are doing.
8"version": 1,
9
10// The name of the project being benchmarked
11"project": "numpy",
12
13// The project's homepage
14"project_url": "https://www.numpy.org/",
15
16// The URL or local path of the source code repository for the
17// project being benchmarked
18"repo": "..",
19
20// List of branches to benchmark. If not provided, defaults to "master"
21// (for git) or "tip" (for mercurial).
22"branches": ["HEAD"],
23
24// The DVCS being used. If not set, it will be automatically
25// determined from "repo" by looking at the protocol in the URL
26// (if remote), or by looking for special directories, such as
27// ".git" (if local).
28"dvcs": "git",
29
30// The tool to use to create environments. May be "conda",
31// "virtualenv" or other value depending on the plugins in use.
32// If missing or the empty string, the tool will be automatically
33// determined by looking for tools on the PATH environment
34// variable.
35"environment_type": "virtualenv",
36
37// the base URL to show a commit for the project.
38"show_commit_url": "https://github.com/numpy/numpy/commit/",
39
40// The Pythons you'd like to test against. If not provided, defaults
41// to the current version of Python used to run `asv`.
42// "pythons": ["3.9"],
43
44// The matrix of dependencies to test. Each key is the name of a
45// package (in PyPI) and the values are version numbers. An empty
46// list indicates to just test against the default (latest)
47// version.
48"matrix": {
49"Cython": [],
50"setuptools": ["59.2.0"],
51"packaging": []
52},
53
54// The directory (relative to the current directory) that benchmarks are
55// stored in. If not provided, defaults to "benchmarks"
56"benchmark_dir": "benchmarks",
57
58// The directory (relative to the current directory) to cache the Python
59// environments in. If not provided, defaults to "env"
60// NOTE: changes dir name will requires update `generate_asv_config()` in
61// runtests.py
62"env_dir": "env",
63
64
65// The directory (relative to the current directory) that raw benchmark
66// results are stored in. If not provided, defaults to "results".
67"results_dir": "results",
68
69// The directory (relative to the current directory) that the html tree
70// should be written to. If not provided, defaults to "html".
71"html_dir": "html",
72
73// The number of characters to retain in the commit hashes.
74// "hash_length": 8,
75
76// `asv` will cache wheels of the recent builds in each
77// environment, making them faster to install next time. This is
78// number of builds to keep, per environment.
79"build_cache_size": 8,
80
81"build_command" : [
82"python setup.py build {numpy_build_options}",
83// pip ignores '--global-option' when pep517 is enabled, we also enabling pip verbose to
84// be reached from asv `--verbose` so we can verify the build options.
85"PIP_NO_BUILD_ISOLATION=false python {build_dir}/benchmarks/asv_pip_nopep517.py -v {numpy_global_options} --no-deps --no-index -w {build_cache_dir} {build_dir}"
86],
87// The commits after which the regression search in `asv publish`
88// should start looking for regressions. Dictionary whose keys are
89// regexps matching to benchmark names, and values corresponding to
90// the commit (exclusive) after which to start looking for
91// regressions. The default is to start from the first commit
92// with results. If the commit is `null`, regression detection is
93// skipped for the matching benchmark.
94//
95// "regressions_first_commits": {
96// "some_benchmark": "352cdf", // Consider regressions only after this commit
97// "another_benchmark": null, // Skip regression detection altogether
98// }
99}
100