@@ -517,15 +517,18 @@ performance regressions. *pandas* is in the process of migrating to the
517
517
`asv library <https://github.com/spacetelescope/asv >`__
518
518
to enable easy monitoring of the performance of critical *pandas * operations.
519
519
These benchmarks are all found in the ``pandas/asv_bench `` directory. *asv *
520
- supports both python2 and python3.
520
+ supports both python2 and python3.
521
521
522
522
.. note ::
523
523
524
524
The *asv * benchmark suite was translated from the previous framework, vbench,
525
525
so many stylistic issues are likely a result of automated transformation of the
526
526
code.
527
527
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''::
529
532
530
533
pip install git+https://github.com/spacetelescope/asv
531
534
@@ -546,6 +549,25 @@ to the Pull Request to show that the committed changes do not cause unexpected
546
549
performance regressions.
547
550
548
551
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.
549
571
550
572
Information on how to write a benchmark can be found in
551
573
`*asv*'s documentation http://asv.readthedocs.org/en/latest/writing_benchmarks.html`.
0 commit comments