Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/cudf/source/_static/polars_pdsds_sf1k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/cudf/source/_static/polars_pdsds_sf3k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/cudf/source/_static/polars_pdsh_sf1k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/cudf/source/_static/polars_pdsh_sf3k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 36 additions & 19 deletions docs/cudf/source/cudf_polars/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,32 +50,49 @@ available engines, {doc}`options` for the

## Benchmark

```{note}
The following benchmarks were performed with the `POLARS_GPU_ENABLE_CUDA_MANAGED_MEMORY`
environment variable set to `"0"`. Using managed memory (the default) imposes a performance cost
in order to avoid out of memory errors. Peak performance can still be attained by setting the
environment variable to `0`.
```
Polars delivers high performance across a wide range of data scales through multiple execution engines. The default CPU engine is highly optimized for interactive and medium-scale analytics on a single node. The Polars GPU engine lets you move seamlessly to GPU nodes, providing meaningful acceleration when your dataset grows to tens or hundreds of gigabytes or more.

We reproduced the [Polars Decision Support (PDS)](https://github.com/pola-rs/polars-benchmark)
benchmark to compare Polars GPU engine with the default CPU settings across several dataset sizes.
Here are the results:
We ran the Polars Decision Support (PDS) benchmarks to compare the Polars GPU engine with the CPU engine at larger scale factors to show how the GPU engine delivers meaningful speedups as dataset size grows:

```{figure} ../_static/pds_benchmark_polars.png
:width: 600px
```
```{eval-rst}
.. list-table::
:widths: 50 50
:align: center

* - .. figure:: ../_static/polars_pdsh_sf1k.png
:width: 100%
:alt: PDS-H benchmark at scale factor 1k

You can see up to 13x speedup using the GPU engine on the compute-heavy PDS queries involving
complex aggregation and join operations. Below are the speedups for the top performing queries:
PDS-H (SF1k)

```{figure} ../_static/compute_heavy_queries_polars.png
:width: 1000px
- .. figure:: ../_static/polars_pdsds_sf1k.png
:width: 100%
:alt: PDS-DS benchmark at scale factor 1k

PDS-DS (SF1k)
```

*PDS-H benchmark | GPU: NVIDIA H100 PCIe | CPU: Intel Xeon W9-3495X (Sapphire Rapids) | Storage:
Local NVMe*
On a single GPU, you can run TB-scale workloads with significant speedups compared to running on CPU. You can also scale up to run on multiple GPUs for processing even larger workloads:

```{eval-rst}
.. list-table::
:widths: 50 50
:align: center

* - .. figure:: ../_static/polars_pdsh_sf3k.png
:width: 100%
:alt: PDS-H benchmark at scale factor 3k

PDS-H (SF3k)

- .. figure:: ../_static/polars_pdsds_sf3k.png
:width: 100%
:alt: PDS-DS benchmark at scale factor 3k

PDS-DS (SF3k)
```

You can reproduce the results by visiting the [Polars Decision Support (PDS) GitHub repository](https://github.com/pola-rs/polars-benchmark).
For more information on the benchmarks being run, see the PDS-DS queries in the [cuDF GitHub repository](https://github.com/rapidsai/cudf/tree/main/python/cudf_polars/cudf_polars/streaming/benchmarks).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should point at the release branch, not main. Also, this doesn't give the reader enough information to reproduce, because there are a bunch of non-default parameters (hopefully fewer than there used to be) being passed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally if Polars adds TPC-DS queries to their polars-benchmark repo we should point there (like we did previously for TPC-H). Today our benchmarking is not easily reproducible due to the data generation process. Is it better to link to the queries for some context or just drop this altogether?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's ok to be imperfect. When we write up the point-in-time benchmark statement we should have an audit trail though.

I was just wondering, since this goes in both "release" and "nightly" docs if it makes sense to always link to what is equivalent to "nightly" code.


## Learn More

Expand Down
Loading