As of 2026-08-02 (commit b7b6d7c8c06b), facebook/rocksdb contains 1,014,341 total lines: 719,993 code, 169,495 comments, 124,853 blank, across 2,149 files in 26 languages (top: C++ 69.6%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving facebook/rocksdb to commit b7b6d7c8c06b, 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 large codebase by counted code lines. Code represents 71.0% of all lines, comments represent 16.7%, and the repository averages 335 code lines per file. C++ accounts for 69.6% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 752 | 650971 | 500904 | 73019 | 77048 |
| C Header | 625 | 202055 | 118381 | 56898 | 26776 |
| Java | 330 | 73509 | 43395 | 21902 | 8212 |
| Python | 61 | 20516 | 16257 | 1974 | 2285 |
| JSON | 7 | 10168 | 10168 | 0 | 0 |
| Bitbake | 28 | 10158 | 8111 | 43 | 2004 |
| C | 3 | 7083 | 5847 | 269 | 967 |
| Shell | 46 | 6534 | 4613 | 1098 | 823 |
| Makefile | 8 | 4768 | 3596 | 458 | 714 |
| CMake | 16 | 3070 | 2709 | 149 | 212 |
| Sass | 16 | 2087 | 1730 | 78 | 279 |
| BASH | 4 | 1261 | 901 | 230 | 130 |
Top language (C++ 69.6%). Generated at 2026-08-02T11:12:02.838245730+00:00.
facebook/rocksdb has 1,014,341 total lines, including 719,993 code lines, 169,495 comment lines, and 124,853 blank lines.
OctoCounts resolved the public GitHub repository to commit b7b6d7c8c06b, 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 main at commit b7b6d7c8c06b on 2026-08-02T11:12:02.838245730+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: