# yugabyte/yugabyte-db SLOC report

> As of 2026-08-27 (commit daa8bac23494), yugabyte/yugabyte-db contains 6,551,516 total lines: 4,654,940 code, 1,134,718 comments, 761,858 blank, across 17,804 files in 57 languages (top: C 26.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

yugabyte/yugabyte-db has 4,654,940 source lines of code out of 6,551,516 total lines across 17,804 files, counted from the master ref at commit daa8bac23494 by the OctoCounts tokei engine on 2026-08-27. 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 yugabyte/yugabyte-db to commit daa8bac23494, 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 71.1% of all lines, comments represent 17.3%, and the repository averages 261 code lines per file. C accounts for 26.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 1,759 | 1,902,470 | 1,243,759 | 429,219 | 229,492 |
| C++ | 1,864 | 996,776 | 746,972 | 110,182 | 139,622 |
| SQL | 1,923 | 465,501 | 391,546 | 31,509 | 42,446 |
| Java | 2,251 | 442,386 | 349,767 | 48,463 | 44,156 |
| Rust | 450 | 359,602 | 342,423 | 7,531 | 9,648 |
| PO File | 366 | 669,500 | 292,368 | 249,391 | 127,741 |
| C Header | 2,916 | 506,239 | 286,453 | 144,654 | 75,132 |
| JSON | 87 | 221,675 | 221,669 | 0 | 6 |
| TSX | 1,074 | 197,145 | 177,965 | 6,109 | 13,071 |
| Go | 1,137 | 142,941 | 114,821 | 10,585 | 17,535 |
| TypeScript | 518 | 81,629 | 68,785 | 7,678 | 5,166 |
| Python | 272 | 88,706 | 68,399 | 7,663 | 12,644 |

Top language (C 26.7%). Generated at 2026-08-27T23:43:44.899522522+00:00. Canonical report: https://octocounts.com/github/yugabyte/yugabyte-db

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/yugabyte/yugabyte-db/commit/daa8bac234943a90d4a14d2bc2ebc7bf7e7e63af?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).

## Report FAQ

### How many lines of code does yugabyte/yugabyte-db have?

yugabyte/yugabyte-db has 6,551,516 total lines, including 4,654,940 code lines, 1,134,718 comment lines, and 761,858 blank lines.

### How was the yugabyte/yugabyte-db line count measured?

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

### What commit was counted for yugabyte/yugabyte-db?

This OctoCounts report was generated from master at commit daa8bac23494 on 2026-08-27T23:43:44.899522522+00:00.

## Similar repository reports

- [TelegramMessenger/Telegram-iOS](https://octocounts.com/github/TelegramMessenger/Telegram-iOS) — C, 5,285,043 code lines
- [vcvkk/Telegram-iOS](https://octocounts.com/github/vcvkk/Telegram-iOS) — C, 5,661,625 code lines
- [zephyrproject-rtos/zephyr](https://octocounts.com/github/zephyrproject-rtos/zephyr) — C, 3,583,127 code lines
- [libretro/retroarch](https://octocounts.com/github/libretro/retroarch) — C, 2,366,948 code lines
- [tsirysndr/rockbox-zig](https://octocounts.com/github/tsirysndr/rockbox-zig) — C, 2,061,816 code lines
- [tsirysndr/rockboxd](https://octocounts.com/github/tsirysndr/rockboxd) — C, 2,041,434 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)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [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)
