Polars 2.0 beats DuckDB and DataFusion in TPC-H and TPC-DS benchmarks
Release of Polars 2.0
Polars 2.0 ships with streaming and out-of-core enabled by default, first-class SQL support, and a new Map datatype. In TPC-H and TPC-DS benchmarks, Polars outperforms DuckDB 1.5.6, DuckDB 2.0 alpha, and DataFusion 54.0.0 on both 16-core and 192-core machines, though its default settings struggle with small data on high core counts.
We observe that default Polars is fastest on all but one benchmarks.
- sureglymop
I've used Polars before and can only recommend it.
It's like you get a really good 'query planner' like a DB would give you, but for your notebooks/scripts/etc. Much better than pandas imo.
- gozzoo
I'm not following the trends closely, but has Polars become a full replacement for Pandas? Are there use cases where one is better suited than the other?
- tomrod
Well done, Polars team!
Everything that I build greenfield moving forward I plan to use DuckDB, Polars, or PyArrow. Pandas was a great grandfather of a project (I actually cut my OSS contrib teeth on it, how the time flies)! I'll always appreciate the improvement pandas brought over SAS.
- popularonion
I worked on benchmarking in the past, including TPC benchmarks.
When you see a blog post like this, never interpret it as “database A is X% faster than database B”, there are just too many factors.
It’s more like “we put focused work into performance improvements and we expect certain workloads to perform better than the previous release”.
This seems like a good project, and benchmarking is a good way for a development team to iterate on performance. Just want to get my take out there.
- therno
I use Polars 2.0(rc) to (pre)calculate billions of weather scores on https://therno.com and it has been a lifesaver
Happy that I can upgrade to 2.0 final tonight.
- niltecedu
A bit surprised about the datafusion results from the post, I have tried it time and time again, but datafusion has always been the leading/trading blowers with polars for our workfloads with duckdb being vastly slower.
- sgarland
TIL that Polars supports SQL. Amazing.
- dkgs
A coincidence with the fact duckdb is supposed to release 2.0.0 very soon? :)