Skip to content

Commit 788ce4e

Browse files
committed
Merge pull request #10935 from RafalSkolasinski/docfix
DOC: clarification on -b flag in asv
2 parents 8a7d9fc + 6d83805 commit 788ce4e

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

doc/source/contributing.rst

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,15 +517,18 @@ performance regressions. *pandas* is in the process of migrating to the
517517
`asv library <https://github.com/spacetelescope/asv>`__
518518
to enable easy monitoring of the performance of critical *pandas* operations.
519519
These benchmarks are all found in the ``pandas/asv_bench`` directory. *asv*
520-
supports both python2 and python3.
520+
supports both python2 and python3.
521521

522522
.. note::
523523

524524
The *asv* benchmark suite was translated from the previous framework, vbench,
525525
so many stylistic issues are likely a result of automated transformation of the
526526
code.
527527

528-
To install asv::
528+
To use ''asv'' you will need either ''conda'' or ''virtualenv''. For more details
529+
please check installation webpage http://asv.readthedocs.org/en/latest/installing.html
530+
531+
To install ''asv''::
529532

530533
pip install git+https://github.com/spacetelescope/asv
531534

@@ -546,6 +549,25 @@ to the Pull Request to show that the committed changes do not cause unexpected
546549
performance regressions.
547550

548551
You can run specific benchmarks using the *-b* flag which takes a regular expression.
552+
For example this will only run tests from a ``pandas/asv_bench/benchmarks/groupby.py``
553+
file::
554+
555+
asv continuous master -b groupby
556+
557+
If you want to run only some specific group of tests from a file you can do it
558+
using ``.`` as a separator. For example::
559+
560+
asv continuous master -b groupby.groupby_agg_builtins1
561+
562+
will only run a ``groupby_agg_builtins1`` test defined in a ``groupby`` file.
563+
564+
It is also useful to run tests in your current environment. You can simply do it by::
565+
566+
asv dev
567+
568+
which would be equivalent to ``asv run --quick --show-stderr --python=same``. This
569+
will launch every test only once, display stderr from the benchmarks and use your
570+
local ``python'' that comes from your $PATH.
549571
550572
Information on how to write a benchmark can be found in
551573
`*asv*'s documentation http://asv.readthedocs.org/en/latest/writing_benchmarks.html`.

0 commit comments

Comments
 (0)