# facebook/zstd SLOC report

> As of 2026-09-06 (commit d9c0c7e2cf8a), facebook/zstd contains 119,005 total lines: 76,962 code, 27,401 comments, 14,642 blank, across 249 files in 18 languages (top: C 76.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

facebook/zstd has 76,962 source lines of code out of 119,005 total lines across 249 files, counted from the d9c0c7e2cf8a8bf9fb98d3bee546dcf8dc9ac59a ref at commit d9c0c7e2cf8a by the OctoCounts tokei engine on 2026-09-06. 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 facebook/zstd to commit d9c0c7e2cf8a, 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 medium-sized codebase by counted code lines. Code represents 64.7% of all lines, comments represent 23.0%, and the repository averages 309 code lines per file. C accounts for 76.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 89 | 82,262 | 58,651 | 13,273 | 10,338 |
| C Header | 88 | 25,554 | 11,669 | 11,037 | 2,848 |
| Visual Studio Project | 5 | 2,207 | 2,207 | 0 | 0 |
| Makefile | 18 | 2,565 | 1,738 | 331 | 496 |
| C++ | 5 | 1,332 | 1,055 | 180 | 97 |
| Python | 1 | 774 | 641 | 32 | 101 |
| GNU Style Assembly | 1 | 766 | 549 | 126 | 91 |
| Shell | 7 | 395 | 168 | 168 | 59 |
| Visual Studio Solution | 2 | 80 | 80 | 0 | 0 |
| Lua | 2 | 87 | 70 | 3 | 14 |
| Batch | 1 | 55 | 48 | 0 | 7 |
| YAML | 1 | 28 | 28 | 0 | 0 |

Top language (C 76.2%). Generated at 2026-09-06T05:43:52.706188620+00:00. Canonical report: https://octocounts.com/github/facebook/zstd

## Reproduce this report

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

facebook/zstd has 119,005 total lines, including 76,962 code lines, 27,401 comment lines, and 14,642 blank lines.

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

OctoCounts resolved the public GitHub repository to commit d9c0c7e2cf8a, 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/zstd?

This OctoCounts report was generated from d9c0c7e2cf8a8bf9fb98d3bee546dcf8dc9ac59a at commit d9c0c7e2cf8a on 2026-09-06T05:43:52.706188620+00:00.

## Similar repository reports

- [coreutils/coreutils](https://octocounts.com/github/coreutils/coreutils) — C, 77,493 code lines
- [ithewei/libhv](https://octocounts.com/github/ithewei/libhv) — C, 80,309 code lines
- [emqx/neuron](https://octocounts.com/github/emqx/neuron) — C, 71,975 code lines
- [linux-pam/linux-pam](https://octocounts.com/github/linux-pam/linux-pam) — C, 69,002 code lines
- [apache/apr](https://octocounts.com/github/apache/apr) — C, 85,262 code lines
- [AstraThreshold/oled-ui-astra](https://octocounts.com/github/AstraThreshold/oled-ui-astra) — C, 85,505 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)
