Post

Fun fact: DuckDB is faster at counting the lines of a CSV file than the UNIX word count command – and it also parses the file to identify its dialect (separator, quote character, etc.). Here are the timings for a 3 GB CSV file: 2.966 seconds for `wc -l` and 1.261 seconds for DuckDB.

The results also hold up for warm runs, see the output of the Hyperfine benchmark tool.

0 reposts9 likes

No replies yet.