diff options
author | Qiyu8 <fangchunlin@huawei.com> | 2020-03-03 10:23:21 +0800 |
---|---|---|
committer | Qiyu8 <fangchunlin@huawei.com> | 2020-03-03 10:23:21 +0800 |
commit | cae33e2f730f0ce05fc6fb560dbbd7848737edfa (patch) | |
tree | 757ef8be3bc23136905759b31107bf53b3410b09 /benchmarks | |
parent | 36eea370c6fc83ab2863ce4d224cfde9ad59d563 (diff) | |
download | numpy-cae33e2f730f0ce05fc6fb560dbbd7848737edfa.tar.gz |
improving benchmark doc according the suggestion
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/README.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/benchmarks/README.rst b/benchmarks/README.rst index 029a260b3..df2167716 100644 --- a/benchmarks/README.rst +++ b/benchmarks/README.rst @@ -16,7 +16,7 @@ unless told otherwise. Some of the benchmarking features in ``runtests.py``. To run the benchmarks, you do not need to install a development version of NumPy to your current Python environment. -*Before beginning, ensure that* airspeed velocity *is installed.* +Before beginning, ensure that *airspeed velocity* is installed. By default, `asv` ships with support for anaconda and virtualenv:: pip install asv @@ -31,7 +31,10 @@ the command line and execute:: python runtests.py --bench where ``--bench`` activates the benchmark suite instead of the -test suite. This builds NumPy and runs the benchmarks. +test suite. This builds NumPy and runs all available benchmarks +defined in ``benchmarks/``.*(Note: this could take a while. Benchmarks +often take longer to run than unit tests, and each benchmark is run +multiple times to measure the distribution in execution times.)* To run benchmarks from a particular benchmark module, such as ``bench_core.py``, simply append the filename without the extension:: @@ -55,13 +58,10 @@ have results saved for future comparison you can run ASV commands (record results and generate HTML):: cd benchmarks - asv run --skip-existing-commits --steps 10 ALL + asv run HEAD asv publish asv preview -ASV will report that it is running a server. Using any browser, -you can review the results by navigating to http://127.0.0.1:8080. - More on how to use ``asv`` can be found in `ASV documentation`_ Command-line help is available as usual via ``asv --help`` and ``asv run --help``. |