# protocolbuffers/protobuf SLOC report

> As of 2026-09-16 (commit fa153cf32201), protocolbuffers/protobuf contains 1,127,860 total lines: 871,834 code, 135,926 comments, 120,100 blank, across 2,860 files in 41 languages (top: C++ 28.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

protocolbuffers/protobuf has 871,834 source lines of code out of 1,127,860 total lines across 2,860 files, counted from the fa153cf32201dc5156b320591f2cd9153a7b40b8 ref at commit fa153cf32201 by the OctoCounts tokei engine on 2026-09-16. 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 protocolbuffers/protobuf to commit fa153cf32201, 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 77.3% of all lines, comments represent 12.1%, and the repository averages 305 code lines per file. C++ accounts for 28.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 518 | 307,211 | 251,218 | 23,005 | 32,988 |
| C# | 223 | 191,193 | 161,422 | 15,839 | 13,932 |
| C Header | 609 | 212,777 | 148,252 | 38,829 | 25,696 |
| C | 140 | 92,914 | 73,167 | 8,584 | 11,163 |
| Objective-C | 80 | 70,151 | 56,433 | 5,803 | 7,915 |
| Java | 161 | 66,148 | 46,210 | 13,253 | 6,685 |
| Python | 102 | 44,568 | 35,859 | 3,080 | 5,629 |
| Bazel | 213 | 32,056 | 27,604 | 1,639 | 2,813 |
| Protocol Buffers | 294 | 34,278 | 22,585 | 6,535 | 5,158 |
| Bitbake | 17 | 16,226 | 14,206 | 642 | 1,378 |
| PHP | 136 | 23,509 | 11,564 | 9,553 | 2,392 |
| Rust | 78 | 10,195 | 7,908 | 923 | 1,364 |

Top language (C++ 28.8%). Generated at 2026-09-16T09:21:10.059522907+00:00. Canonical report: https://octocounts.com/github/protocolbuffers/protobuf

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/protocolbuffers/protobuf/commit/fa153cf32201dc5156b320591f2cd9153a7b40b8?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 protocolbuffers/protobuf have?

protocolbuffers/protobuf has 1,127,860 total lines, including 871,834 code lines, 135,926 comment lines, and 120,100 blank lines.

### How was the protocolbuffers/protobuf line count measured?

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

### What commit was counted for protocolbuffers/protobuf?

This OctoCounts report was generated from fa153cf32201dc5156b320591f2cd9153a7b40b8 at commit fa153cf32201 on 2026-09-16T09:21:10.059522907+00:00.

## Similar repository reports

- [apache/trafficserver](https://octocounts.com/github/apache/trafficserver) — C++, 880,616 code lines
- [organicmaps/organicmaps](https://octocounts.com/github/organicmaps/organicmaps) — C++, 887,058 code lines
- [OpenRCT2/OpenRCT2](https://octocounts.com/github/OpenRCT2/OpenRCT2) — C++, 854,277 code lines
- [AyuGram/AyuGramDesktop](https://octocounts.com/github/AyuGram/AyuGramDesktop) — C++, 840,188 code lines
- [The-OpenROAD-Project/OpenROAD](https://octocounts.com/github/The-OpenROAD-Project/OpenROAD) — C++, 783,027 code lines
- [telegramdesktop/tdesktop](https://octocounts.com/github/telegramdesktop/tdesktop) — C++, 1,012,048 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)
