It’s been a long time since I last wrote about the relative performance between the Polars and DuckDB libraries. Back then, Polars was at version 0.18.4, and DuckDB was at version 0.9.1.
My conclusion at the end of the article was that, aside from an issue reading Postgres data that Polars had trouble with, they were pretty much equal in performance, give or take a few seconds here or there.
Now, almost 3 years later, with both having recently released version 2 of their libraries, I thought it would be useful to revisit the subject and see whether either has pulled ahead.
In their own tests, the folks at DuckDB found that version 2.0 was 6 times faster than their current 1.56 release when processing the TPC-H SF300 dataset.…