duckdb/duckdb has 1,103,882 source lines of code out of 1,419,097 total lines across 5,744 files, counted from the v2.0-cyanoptera ref at commit 469826fbe4c5 by the OctoCounts tokei engine on 2026-10-13. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-13 (commit 469826fbe4c5), duckdb/duckdb contains 1,419,097 total lines: 1,103,882 code, 170,096 comments, 145,119 blank, across 5,744 files in 20 languages (top: C++ 56.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving duckdb/duckdb to commit 469826fbe4c5, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a very large codebase by counted code lines. Code represents 77.8% of all lines, comments represent 12.0%, and the repository averages 192 code lines per file. C++ accounts for 56.2% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 2103 | 756978 | 620357 | 57711 | 78910 |
| C++ Header | 1836 | 326374 | 246976 | 41156 | 38242 |
| C Header | 455 | 152472 | 80359 | 57595 | 14518 |
| SQL | 560 | 44350 | 43653 | 204 | 493 |
| YAML | 79 | 31799 | 29647 | 1138 | 1014 |
| Python | 134 | 32815 | 27444 | 863 | 4508 |
| C | 66 | 34329 | 25893 | 4403 | 4033 |
| JSON | 110 | 15195 | 15170 | 0 | 25 |
| CMake | 223 | 7213 | 6331 | 342 | 540 |
| Swift | 45 | 8209 | 4912 | 2329 | 968 |
| Makefile | 3 | 1094 | 897 | 28 | 169 |
| Shell | 18 | 1174 | 816 | 160 | 198 |
Top language (C++ 56.2%). Generated at .
duckdb/duckdb has 1,419,097 total lines, including 1,103,882 code lines, 170,096 comment lines, and 145,119 blank lines.
OctoCounts resolved the public GitHub repository to commit 469826fbe4c5, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from v2.0-cyanoptera at commit 469826fbe4c5 on 2026-10-13T08:41:05.558582263+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for duckdb/duckdb on this page — 1,103,882 code lines across 12 languages, counted by tokei.