# yugabyte/yugabyte-db SLOC report

> As of 2026-09-29 (commit 9942489597ca), yugabyte/yugabyte-db contains 6,675,097 total lines: 4,757,041 code, 1,147,822 comments, 770,234 blank, across 17,959 files in 57 languages (top: C 26.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

yugabyte/yugabyte-db has 4,757,041 source lines of code out of 6,675,097 total lines across 17,959 files, counted from the 9942489597ca7e0d85861e89c65deeaf5353deec ref at commit 9942489597ca by the OctoCounts tokei engine on 2026-09-29. 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 9942489597ca, 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.3% of all lines, comments represent 17.2%, and the repository averages 265 code lines per file. C accounts for 26.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 1,760 | 1,906,707 | 1,246,600 | 430,218 | 229,889 |
| C++ | 1,888 | 1,023,174 | 766,042 | 114,431 | 142,701 |
| Rust | 442 | 419,750 | 400,906 | 7,929 | 10,915 |
| SQL | 1,933 | 466,731 | 392,509 | 31,654 | 42,568 |
| Java | 2,267 | 449,360 | 354,902 | 49,817 | 44,641 |
| PO File | 366 | 669,500 | 292,368 | 249,391 | 127,741 |
| C Header | 2,933 | 510,971 | 288,796 | 146,369 | 75,806 |
| JSON | 89 | 222,666 | 222,660 | 0 | 6 |
| TSX | 1,085 | 200,212 | 180,723 | 6,205 | 13,284 |
| Go | 1,149 | 146,424 | 117,675 | 10,949 | 17,800 |
| Python | 280 | 93,666 | 72,140 | 8,272 | 13,254 |
| TypeScript | 524 | 82,787 | 69,700 | 7,823 | 5,264 |

Top language (C 26.2%). Generated at 2026-09-29T17:35:36.501151145+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/9942489597ca7e0d85861e89c65deeaf5353deec?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,675,097 total lines, including 4,757,041 code lines, 1,147,822 comment lines, and 770,234 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 9942489597ca, 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 9942489597ca7e0d85861e89c65deeaf5353deec at commit 9942489597ca on 2026-09-29T17:35:36.501151145+00:00.

## Similar repository reports

- [wireshark/wireshark](https://octocounts.com/github/wireshark/wireshark) — C, 5,711,814 code lines
- [zephyrproject-rtos/zephyr](https://octocounts.com/github/zephyrproject-rtos/zephyr) — C, 3,694,916 code lines
- [gnutools/binutils-gdb](https://octocounts.com/github/gnutools/binutils-gdb) — C, 7,014,846 code lines
- [reactos/reactos](https://octocounts.com/github/reactos/reactos) — C, 7,775,276 code lines
- [libretro/RetroArch](https://octocounts.com/github/libretro/RetroArch) — C, 2,384,310 code lines
- [libretro/retroarch](https://octocounts.com/github/libretro/retroarch) — C, 2,366,948 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)
