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.
As of 2026-11-11 (commit 9fac596822d6), openbsd/src contains 28,284,785 total lines: 20,711,629 code, 4,732,257 comments, 2,840,899 blank, across 53,462 files in 71 languages (top language: C 36.0%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
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.
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 | 14788 | 10189224 | 7465918 | 1470802 | 1252504 |
| C Header | 18342 | 9008301 | 6888463 | 1533314 | 586524 |
| C++ | 6550 | 4810697 | 3580792 | 645076 | 584829 |
| Perl | 2572 | 1186129 | 967592 | 96794 | 121743 |
| Bitbake | 540 | 573790 | 558575 | 5873 | 9342 |
| PO File | 155 | 490867 | 201489 | 185348 | 104030 |
| Autoconf | 1526 | 196305 | 162607 | 12420 | 21278 |
| GNU Style Assembly | 825 | 162349 | 113512 | 32688 | 16149 |
| Shell | 1162 | 149936 | 111499 | 22842 | 15595 |
| Happy | 91 | 122942 | 110717 | 0 | 12225 |
| Python | 544 | 116826 | 92908 | 8785 | 15133 |
| Makefile | 2423 | 85005 | 61043 | 8081 | 15881 |
Top language: C 36.0%. Generated on .
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.
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.
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.
This OctoCounts report was generated from 9fac596822d66939ffcbabd48ae500666f5dbe03 at commit 9fac596822d6 on November 11, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for openbsd/src on this page — 20,711,629 code lines across 71 languages, counted by tokei.