# openbsd/src SLOC report

> openbsd/src: 20,711,629 code lines at commit 9fac596822d6, counted with tokei-15.0.0 on 2026-11-11. Saved result 9d69e60843d45cfde4ad4481770bb577d7d13dc524be2a9b9e1a262097b80ec2.

openbsd/src has 20,711,629 source lines of code out of 28,284,785 total lines across 53,462 files, counted with tokei from the 9fac596822d66939ffcbabd48ae500666f5dbe03 ref at commit 9fac596822d6 on November 11, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving openbsd/src to commit 9fac596822d6, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

openbsd/src: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 73.2% of all lines, comments represent 16.7%, and the repository averages 387 code lines per file. C accounts for 36.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 14,788 | 10,189,224 | 7,465,918 | 1,470,802 | 1,252,504 |
| C Header | 18,342 | 9,008,301 | 6,888,463 | 1,533,314 | 586,524 |
| C++ | 6,550 | 4,810,697 | 3,580,792 | 645,076 | 584,829 |
| Perl | 2,572 | 1,186,129 | 967,592 | 96,794 | 121,743 |
| Bitbake | 540 | 573,790 | 558,575 | 5,873 | 9,342 |
| PO File | 155 | 490,867 | 201,489 | 185,348 | 104,030 |
| Autoconf | 1,526 | 196,305 | 162,607 | 12,420 | 21,278 |
| GNU Style Assembly | 825 | 162,349 | 113,512 | 32,688 | 16,149 |
| Shell | 1,162 | 149,936 | 111,499 | 22,842 | 15,595 |
| Happy | 91 | 122,942 | 110,717 | 0 | 12,225 |
| Python | 544 | 116,826 | 92,908 | 8,785 | 15,133 |
| Makefile | 2,423 | 85,005 | 61,043 | 8,081 | 15,881 |
| CMake | 1,015 | 59,899 | 48,316 | 5,026 | 6,557 |
| Module-Definition | 214 | 51,827 | 45,462 | 0 | 6,365 |
| M4 | 207 | 57,947 | 40,622 | 13,467 | 3,858 |
| HTML | 36 | 37,204 | 36,091 | 390 | 723 |
| Assembly | 86 | 38,357 | 35,724 | 630 | 2,003 |
| C++ Header | 285 | 54,232 | 33,449 | 12,072 | 8,711 |
| ASP.NET | 2 | 28,487 | 27,348 | 0 | 1,139 |
| Scala | 158 | 19,532 | 16,328 | 1,359 | 1,845 |
| Automake | 37 | 18,570 | 16,295 | 1,068 | 1,207 |
| Alex | 19 | 17,248 | 14,165 | 0 | 3,083 |
| JSON | 42 | 11,269 | 11,267 | 0 | 2 |
| Lex | 34 | 14,338 | 10,838 | 1,972 | 1,528 |
| AWK | 428 | 12,179 | 10,026 | 1,417 | 736 |
| Objective-C++ | 7 | 8,702 | 6,818 | 812 | 1,072 |
| SWIG | 135 | 6,659 | 6,066 | 5 | 588 |
| TeX | 1 | 6,931 | 3,961 | 2,381 | 589 |
| Go | 5 | 4,483 | 3,703 | 178 | 602 |
| FORTRAN Modern | 73 | 4,539 | 3,535 | 740 | 264 |
| OCaml | 22 | 5,909 | 3,144 | 1,807 | 958 |
| XML | 43 | 3,282 | 3,125 | 7 | 150 |
| YAML | 55 | 2,841 | 2,751 | 50 | 40 |
| Pan | 4 | 3,445 | 2,525 | 504 | 416 |
| TypeScript | 18 | 2,041 | 1,623 | 243 | 175 |
| JavaScript | 7 | 2,011 | 1,417 | 421 | 173 |
| Emacs Lisp | 9 | 1,963 | 1,293 | 459 | 211 |
| BASH | 6 | 1,615 | 1,217 | 248 | 150 |
| Korn shell | 86 | 2,058 | 1,217 | 447 | 394 |
| CSS | 14 | 1,242 | 1,080 | 64 | 98 |
| Batch | 34 | 1,004 | 805 | 105 | 94 |
| Scheme | 3 | 829 | 626 | 127 | 76 |
| Forth | 1 | 880 | 596 | 162 | 122 |
| Objective-C | 13 | 707 | 516 | 4 | 187 |
| Monkey C | 1 | 602 | 500 | 0 | 102 |
| Vim Script | 12 | 542 | 473 | 34 | 35 |
| ReStructuredText | 3 | 594 | 419 | 0 | 175 |
| FORTRAN Legacy | 15 | 743 | 401 | 237 | 105 |
| Jupyter Notebooks | 3 | 630 | 324 | 219 | 87 |
| R | 48 | 336 | 298 | 12 | 26 |
| LD Script | 2 | 353 | 290 | 44 | 19 |
| Dockerfile | 7 | 484 | 262 | 167 | 55 |
| RPM Specfile | 3 | 331 | 252 | 6 | 73 |
| Protocol Buffers | 4 | 767 | 246 | 390 | 131 |
| D | 47 | 204 | 190 | 7 | 7 |
| XSL | 1 | 242 | 187 | 9 | 46 |
| Forge Config | 7 | 221 | 158 | 21 | 42 |
| HICAD | 2 | 158 | 158 | 0 | 0 |
| Nix | 1 | 152 | 106 | 44 | 2 |
| Device Tree | 2 | 139 | 90 | 29 | 20 |
| TOML | 5 | 80 | 70 | 1 | 9 |
| Java | 3 | 76 | 47 | 24 | 5 |
| GDB Script | 1 | 35 | 31 | 2 | 2 |
| Ada | 4 | 81 | 23 | 45 | 13 |
| ASP | 2 | 18 | 18 | 0 | 0 |
| INI | 1 | 26 | 16 | 0 | 10 |
| Lua | 1 | 3 | 2 | 1 | 0 |
| Prolog | 2 | 2 | 2 | 0 | 0 |
| Q | 2 | 2 | 2 | 0 | 0 |
| Markdown | 237 | 246,044 | 0 | 218,796 | 27,248 |
| Plain Text | 429 | 457,319 | 0 | 443,981 | 13,338 |

Top language: C 36.0%. Generated on November 11, 2026. Canonical report: https://octocounts.com/github/openbsd/src/commit/9fac596822d66939ffcbabd48ae500666f5dbe03?reportId=9d69e60843d45cfde4ad4481770bb577d7d13dc524be2a9b9e1a262097b80ec2&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/openbsd/src/commit/9fac596822d66939ffcbabd48ae500666f5dbe03?reportId=9d69e60843d45cfde4ad4481770bb577d7d13dc524be2a9b9e1a262097b80ec2&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does openbsd/src have?

openbsd/src has 20,711,629 lines of code, plus 4,732,257 comment lines and 2,840,899 blank lines, for 28,284,785 total lines at commit 9fac596822d6 on November 11, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the openbsd/src line count measured?

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

### What commit was counted for openbsd/src?

This OctoCounts report was generated from 9fac596822d66939ffcbabd48ae500666f5dbe03 at commit 9fac596822d6 on November 11, 2026.

## Similar repository reports

- [Maccraft123/linux-duet](https://octocounts.com/github/Maccraft123/linux-duet) — C, 21,512,207 code lines
- [freebsd/freebsd-src](https://octocounts.com/github/freebsd/freebsd-src) — C, 22,335,858 code lines
- [VirtualBox/virtualbox](https://octocounts.com/github/VirtualBox/virtualbox) — C, 16,046,794 code lines
- [DeusData/codebase-memory-mcp](https://octocounts.com/github/DeusData/codebase-memory-mcp) — C, 14,326,096 code lines
- [ARARAT33/AWEOS](https://octocounts.com/github/ARARAT33/AWEOS) — C, 32,335,471 code lines
- [torvalds/linux](https://octocounts.com/github/torvalds/linux) — C, 32,873,144 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
