# protocolbuffers/protobuf SLOC report

> As of 2026-08-26 (commit ff028f2fb402), protocolbuffers/protobuf contains 1,121,457 total lines: 866,669 code, 135,309 comments, 119,479 blank, across 2,849 files in 41 languages (top: C++ 28.8%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving protocolbuffers/protobuf to commit ff028f2fb402, 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 304 code lines per file. C++ accounts for 28.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 518 | 305,089 | 249,556 | 22,780 | 32,753 |
| C# | 223 | 191,186 | 161,422 | 15,832 | 13,932 |
| C Header | 606 | 210,666 | 146,447 | 38,662 | 25,557 |
| C | 138 | 91,516 | 72,015 | 8,482 | 11,019 |
| Objective-C | 80 | 70,151 | 56,433 | 5,803 | 7,915 |
| Java | 161 | 66,087 | 46,165 | 13,239 | 6,683 |
| Python | 102 | 44,286 | 35,634 | 3,075 | 5,577 |
| Bazel | 214 | 32,017 | 27,566 | 1,639 | 2,812 |
| Protocol Buffers | 294 | 34,249 | 22,567 | 6,528 | 5,154 |
| Bitbake | 17 | 16,129 | 14,114 | 642 | 1,373 |
| PHP | 136 | 23,487 | 11,566 | 9,529 | 2,392 |
| Rust | 72 | 9,974 | 7,781 | 865 | 1,328 |

Top language (C++ 28.8%). Generated at 2026-08-26T18:42:38.594649791+00:00. Canonical report: https://octocounts.com/github/protocolbuffers/protobuf

## Report FAQ

### How many lines of code does protocolbuffers/protobuf have?

protocolbuffers/protobuf has 1,121,457 total lines, including 866,669 code lines, 135,309 comment lines, and 119,479 blank lines.

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

OctoCounts resolved the public GitHub repository to commit ff028f2fb402, 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 main at commit ff028f2fb402 on 2026-08-26T18:42:38.594649791+00:00.

## Similar repository reports

- [apache/trafficserver](https://octocounts.com/github/apache/trafficserver) — C++, 859,668 code lines
- [organicmaps/organicmaps](https://octocounts.com/github/organicmaps/organicmaps) — C++, 887,058 code lines
- [OpenRCT2/OpenRCT2](https://octocounts.com/github/OpenRCT2/OpenRCT2) — C++, 840,716 code lines
- [telegramdesktop/tdesktop](https://octocounts.com/github/telegramdesktop/tdesktop) — C++, 956,148 code lines
- [facebook/rocksdb](https://octocounts.com/github/facebook/rocksdb) — C++, 719,993 code lines
- [dolphin-emu/dolphin](https://octocounts.com/github/dolphin-emu/dolphin) — C++, 1,014,271 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)
