diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/arrow/docs/source/python/benchmarks.rst | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/arrow/docs/source/python/benchmarks.rst')
-rw-r--r-- | src/arrow/docs/source/python/benchmarks.rst | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/arrow/docs/source/python/benchmarks.rst b/src/arrow/docs/source/python/benchmarks.rst new file mode 100644 index 000000000..aee83b778 --- /dev/null +++ b/src/arrow/docs/source/python/benchmarks.rst @@ -0,0 +1,56 @@ +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at + +.. http://www.apache.org/licenses/LICENSE-2.0 + +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. + +.. _python-benchmarks: + +Benchmarks +========== + +The ``pyarrow`` package comes with a suite of benchmarks meant to +run with `ASV`_. You'll need to install the ``asv`` package first +(``pip install asv`` or ``conda install -c conda-forge asv``). + +Running the benchmarks +---------------------- + +To run the benchmarks for a locally-built Arrow, run ``asv dev`` or +``asv run --python=same``. + +We use conda environments as part of running the benchmarks. To use the ``asv`` +setup, you must set the ``$CONDA_HOME`` environment variable to point to the +root of your conda installation. + +Running for arbitrary Git revisions +----------------------------------- + +ASV allows to store results and generate graphs of the benchmarks over +the project's evolution. You need to have the latest development version of ASV: + +.. code:: + + pip install git+https://github.com/airspeed-velocity/asv + +Now you should be ready to run ``asv run`` or whatever other command +suits your needs. Note that this can be quite long, as each Arrow needs +to be rebuilt for each Git revision you're running the benchmarks for. + +Compatibility +------------- + +We only expect the benchmarking setup to work on a Unix-like system with bash. + +.. _asv: https://asv.readthedocs.org/ |