-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
WEB: Add page about benchmarks #56907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
59fb94b
WEB: Add page about benchmarks
datapythonista ad1a7b6
Merge branch 'main' into web_benchmarks
datapythonista c77a01e
Merge remote-tracking branch 'upstream/main' into web_benchmarks
datapythonista d204734
Change conbench link, add server configuration section
datapythonista 79d88db
Merge branch 'web_benchmarks' of github.com:datapythonista/pandas int…
datapythonista 9a31a22
Merge branch 'main' into web_benchmarks
datapythonista cbd7b0b
Adding link to the running benchmarks documentation
datapythonista 3b5b635
Merge remote-tracking branch 'upstream/main' into web_benchmarks
datapythonista d42d6b3
Merge branch 'web_benchmarks' of github.com:datapythonista/pandas int…
datapythonista File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -326,34 +326,6 @@ a milestone before tagging, you can request the bot to backport it with: | |
@Meeseeksdev backport <branch> | ||
|
||
|
||
.. _maintaining.asv-machine: | ||
|
||
Benchmark machine | ||
----------------- | ||
|
||
The team currently owns dedicated hardware for hosting a website for pandas' ASV performance benchmark. The results | ||
are published to https://asv-runner.github.io/asv-collection/pandas/ | ||
|
||
Configuration | ||
````````````` | ||
|
||
The machine can be configured with the `Ansible <http://docs.ansible.com/ansible/latest/index.html>`_ playbook in https://github.com/tomaugspurger/asv-runner. | ||
|
||
Publishing | ||
`````````` | ||
|
||
The results are published to another GitHub repository, https://github.com/tomaugspurger/asv-collection. | ||
Finally, we have a cron job on our docs server to pull from https://github.com/tomaugspurger/asv-collection, to serve them from ``/speed``. | ||
Ask Tom or Joris for access to the webserver. | ||
|
||
Debugging | ||
````````` | ||
|
||
The benchmarks are scheduled by Airflow. It has a dashboard for viewing and debugging the results. You'll need to setup an SSH tunnel to view them | ||
|
||
ssh -L 8080:localhost:8080 [email protected] | ||
|
||
|
||
.. _maintaining.release: | ||
|
||
Release process | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Benchmarks | ||
|
||
Benchmarks are tests to measure the performance of pandas. There are two different | ||
kinds of benchmarks relevant to pandas: | ||
|
||
* Internal pandas benchmarks to measure speed and memory usage over time | ||
* Community benchmarks comparing the speed or memory usage of different tools at | ||
doing the same job | ||
|
||
## pandas benchmarks | ||
|
||
pandas benchmarks are implemented in the [asv_bench](https://github.com/pandas-dev/pandas/tree/main/asv_bench) | ||
directory of our repository. The benchmarks are implemented for the | ||
[airspeed velocity](https://asv.readthedocs.io/en/v0.6.1/) (asv for short) framework. | ||
|
||
The benchmarks can be run locally by any pandas developer. This can be done | ||
with the `asv run` command, and it can be useful to detect if local changes have | ||
an impact in performance, by running the benchmarks before and after the changes. | ||
More information on running the performance test suite is found | ||
[here](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#running-the-performance-test-suite). | ||
|
||
Note that benchmarks are not deterministic, and running in different hardware or | ||
running in the same hardware with different levels of stress have a big impact in | ||
the result. Even running the benchmarks with identical hardware and almost identical | ||
conditions produces significant differences when running the same exact code. | ||
|
||
## pandas benchmarks servers | ||
|
||
We currently have two physical servers running the benchmarks of pandas for every | ||
(or almost every) commit to the `main` branch. The servers run independently from | ||
each other. The original server has been running for a long time, and it is physically | ||
located with one of the pandas maintainers. The newer server is in a datacenter | ||
kindly sponsored by [OVHCloud](https://www.ovhcloud.com/). More information about | ||
pandas sponsors, and how your company can support the development of pandas is | ||
available at the [pandas sponsors]({{ base_url }}about/sponsors.html) page. | ||
|
||
Results of the benchmarks are available at: | ||
|
||
- Original server: [asv](https://asv-runner.github.io/asv-collection/pandas/) | ||
- OVH server: [asv](https://pandas.pydata.org/benchmarks/asv/) (benchmarks results can | ||
also be visualized in this [Conbench PoC](http://57.128.112.95:5000/) | ||
|
||
### Original server configuration | ||
|
||
The machine can be configured with the Ansible playbook in | ||
[tomaugspurger/asv-runner](https://github.com/tomaugspurger/asv-runner). | ||
The results are published to another GitHub repository, | ||
[tomaugspurger/asv-collection](https://github.com/tomaugspurger/asv-collection). | ||
|
||
The benchmarks are scheduled by [Airflow](https://airflow.apache.org/). | ||
It has a dashboard for viewing and debugging the results. | ||
You’ll need to setup an SSH tunnel to view them: | ||
|
||
``` | ||
ssh -L 8080:localhost:8080 [email protected] | ||
``` | ||
|
||
### OVH server configuration | ||
|
||
The server used to run the benchmarks has been configured to reduce system | ||
noise and maximize the stability of the benchmarks times. | ||
|
||
The details on how the server is configured can be found in the | ||
[pandas-benchmarks repository](https://github.com/pandas-dev/pandas-benchmarks). | ||
There is a quick summary here: | ||
|
||
- CPU isolation: Avoid user space tasks to execute in the same CPU as benchmarks, possibly interrupting them during the execution (include all virtual CPUs using a physical core) | ||
- NoHZ: Stop the kernel tick that enables context switching in the isolated CPU | ||
- IRQ affinity: Ban benchmarks CPU to avoid many (but not all) kernel interruption in the isolated CPU | ||
- TurboBoost: Disable CPU scaling based on high CPU demand | ||
- P-States: Use "performance" governor to disable P-States and CPU frequency changes based on them | ||
- C-States: Set C-State to 0 and disable changes to avoid slower CPU after system inactivity | ||
|
||
## Community benchmarks | ||
|
||
The main benchmarks comparing dataframe tools that include pandas are: | ||
|
||
- [H2O.ai benchmarks](https://h2oai.github.io/db-benchmark/) | ||
- [TPCH benchmarks](https://pola.rs/posts/benchmarks/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.