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.

25 reposts132 likes

Correct. DuckDB's code path is a more generic one that also includes running the CSV sniffer to identify the CSV file's dialect, column names and types.