# facebook/rocksdb SLOC report

> 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.

## Repository size insights

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 | 650,971 | 500,904 | 73,019 | 77,048 |
| C Header | 625 | 202,055 | 118,381 | 56,898 | 26,776 |
| Java | 330 | 73,509 | 43,395 | 21,902 | 8,212 |
| Python | 61 | 20,516 | 16,257 | 1,974 | 2,285 |
| JSON | 7 | 10,168 | 10,168 | 0 | 0 |
| Bitbake | 28 | 10,158 | 8,111 | 43 | 2,004 |
| C | 3 | 7,083 | 5,847 | 269 | 967 |
| Shell | 46 | 6,534 | 4,613 | 1,098 | 823 |
| Makefile | 8 | 4,768 | 3,596 | 458 | 714 |
| CMake | 16 | 3,070 | 2,709 | 149 | 212 |
| Sass | 16 | 2,087 | 1,730 | 78 | 279 |
| BASH | 4 | 1,261 | 901 | 230 | 130 |

Top language (C++ 69.6%). Generated at 2026-08-02T11:12:02.838245730+00:00. Canonical report: https://octocounts.com/github/facebook/rocksdb

## Report FAQ

### How many lines of code does facebook/rocksdb have?

facebook/rocksdb has 1,014,341 total lines, including 719,993 code lines, 169,495 comment lines, and 124,853 blank lines.

### How was the facebook/rocksdb line count measured?

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.

### What commit was counted for facebook/rocksdb?

This OctoCounts report was generated from main at commit b7b6d7c8c06b on 2026-08-02T11:12:02.838245730+00:00.

## Similar repository reports

- [ggml-org/llama.cpp](https://octocounts.com/github/ggml-org/llama.cpp) — C++, 704,348 code lines
- [ARM-software/kleidiai](https://octocounts.com/github/ARM-software/kleidiai) — C++, 621,241 code lines
- [OpenRCT2/OpenRCT2](https://octocounts.com/github/OpenRCT2/OpenRCT2) — C++, 840,716 code lines
- [RPCS3/rpcs3](https://octocounts.com/github/RPCS3/rpcs3) — C++, 583,346 code lines
- [apache/trafficserver](https://octocounts.com/github/apache/trafficserver) — C++, 859,668 code lines
- [protocolbuffers/protobuf](https://octocounts.com/github/protocolbuffers/protobuf) — C++, 869,429 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
