diff --git a/docs/cudf/source/_static/polars_pdsds_sf1k.png b/docs/cudf/source/_static/polars_pdsds_sf1k.png new file mode 100644 index 000000000000..87ffeed2df1a Binary files /dev/null and b/docs/cudf/source/_static/polars_pdsds_sf1k.png differ diff --git a/docs/cudf/source/_static/polars_pdsds_sf3k.png b/docs/cudf/source/_static/polars_pdsds_sf3k.png new file mode 100644 index 000000000000..5661c2699d3f Binary files /dev/null and b/docs/cudf/source/_static/polars_pdsds_sf3k.png differ diff --git a/docs/cudf/source/_static/polars_pdsh_sf1k.png b/docs/cudf/source/_static/polars_pdsh_sf1k.png new file mode 100644 index 000000000000..09ceeae8120c Binary files /dev/null and b/docs/cudf/source/_static/polars_pdsh_sf1k.png differ diff --git a/docs/cudf/source/_static/polars_pdsh_sf3k.png b/docs/cudf/source/_static/polars_pdsh_sf3k.png new file mode 100644 index 000000000000..083486edc275 Binary files /dev/null and b/docs/cudf/source/_static/polars_pdsh_sf3k.png differ diff --git a/docs/cudf/source/cudf_polars/index.md b/docs/cudf/source/cudf_polars/index.md index be531568441a..d14b5882a9a0 100644 --- a/docs/cudf/source/cudf_polars/index.md +++ b/docs/cudf/source/cudf_polars/index.md @@ -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 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/release/26.06/python/cudf_polars/cudf_polars/streaming/benchmarks). ## Learn More