cockroachdb/cockroach SLOC report

As of 2026-08-26 (commit 8812064a015d), cockroachdb/cockroach contains 4,182,809 total lines: 3,085,053 code, 698,670 comments, 399,086 blank, across 12,785 files in 40 languages (top: Go 84.1%). Counted with tokei via OctoCounts.

As of 2026-08-26 (commit 8812064a015d), cockroachdb/cockroach contains 4,182,809 total lines: 3,085,053 code, 698,670 comments, 399,086 blank, across 12,785 files in 40 languages (top: Go 84.1%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving cockroachdb/cockroach to commit 8812064a015d, 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 very large codebase by counted code lines. Code represents 73.8% of all lines, comments represent 16.7%, and the repository averages 241 code lines per file. Go accounts for 84.1% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Go890734716662593330544487333849
JSON201123345123334011
YAML10810885510261531143126
Bazel135181836782386422956
TSX518732786275142306297
TypeScript436393023073745074058
Happy4238882247101417
Protocol Buffers1753863415558182384838
Sass194145401145610522032
SQL9097449039558147
XML167810780109
Shell11510340704917421549

Top language (Go 84.1%). Generated at 2026-08-26T18:21:07.227774235+00:00.

Report FAQ

How many lines of code does cockroachdb/cockroach have?

cockroachdb/cockroach has 4,182,809 total lines, including 3,085,053 code lines, 698,670 comment lines, and 399,086 blank lines.

How was the cockroachdb/cockroach line count measured?

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

What commit was counted for cockroachdb/cockroach?

This OctoCounts report was generated from master at commit 8812064a015d on 2026-08-26T18:21:07.227774235+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity: