# duckdb/duckdb SLOC report

> As of 2026-10-24 (commit 1641475ef1db), duckdb/duckdb contains 1,456,964 total lines: 1,135,537 code, 173,753 comments, 147,674 blank, across 5,807 files in 20 languages (top: C++ 56.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

duckdb/duckdb has 1,135,537 source lines of code out of 1,456,964 total lines across 5,807 files, counted from the main ref at commit 1641475ef1db by the OctoCounts tokei engine on 2026-10-24. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving duckdb/duckdb to commit 1641475ef1db, 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.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 77.9% of all lines, comments represent 11.9%, and the repository averages 196 code lines per file. C++ accounts for 56.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 2,129 | 780,301 | 640,448 | 59,397 | 80,456 |
| C++ Header | 1,859 | 333,785 | 252,511 | 42,377 | 38,897 |
| C Header | 456 | 155,942 | 83,193 | 58,149 | 14,600 |
| SQL | 565 | 44,421 | 43,720 | 206 | 495 |
| YAML | 81 | 32,863 | 30,645 | 1,178 | 1,040 |
| Python | 138 | 34,904 | 29,278 | 904 | 4,722 |
| C | 66 | 34,329 | 25,893 | 4,403 | 4,033 |
| JSON | 111 | 15,413 | 15,388 | 0 | 25 |
| CMake | 223 | 7,284 | 6,397 | 345 | 542 |
| Swift | 45 | 8,209 | 4,912 | 2,329 | 968 |
| Makefile | 3 | 1,095 | 898 | 28 | 169 |
| Shell | 18 | 1,175 | 817 | 160 | 198 |

Top language (C++ 56.4%). Generated at 2026-10-24T09:56:13.063616961+00:00. Canonical report: https://octocounts.com/github/duckdb/duckdb

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/duckdb/duckdb/commit/1641475ef1db08ec063631ff6a8f08d9d6736ae7?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=e4229420482059cc22045586151da993630e375b71b100e9434a6e325b22f020).

## Report FAQ

### How many lines of code does duckdb/duckdb have?

duckdb/duckdb has 1,456,964 total lines, including 1,135,537 code lines, 173,753 comment lines, and 147,674 blank lines.

### How was the duckdb/duckdb line count measured?

OctoCounts resolved the public GitHub repository to commit 1641475ef1db, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for duckdb/duckdb?

This OctoCounts report was generated from main at commit 1641475ef1db on 2026-10-24T09:56:13.063616961+00:00.

## Similar repository reports

- [telegramdesktop/tdesktop](https://octocounts.com/github/telegramdesktop/tdesktop) — C++, 1,124,348 code lines
- [SerenityOS/serenity](https://octocounts.com/github/SerenityOS/serenity) — C++, 1,115,288 code lines
- [omnizs38/opengram](https://octocounts.com/github/omnizs38/opengram) — C++, 1,086,551 code lines
- [wxwidgets/wxwidgets](https://octocounts.com/github/wxwidgets/wxwidgets) — C++, 1,214,783 code lines
- [wxWidgets/wxWidgets](https://octocounts.com/github/wxWidgets/wxWidgets) — C++, 1,226,000 code lines
- [fbraz3/GeneralsX](https://octocounts.com/github/fbraz3/GeneralsX) — C++, 1,044,162 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
