DuckDB and Polars were benchmarked on datasets up to 2 TB to compare performance and memory usage under extreme conditions. DuckDB maintained peak memory below 2.5 GB across all tests while Polars consumed up to 17 GB on large single files due to mmap-based I/O, though this dropped to 4.3 GB with partitioned data. Polars with

Sort: