# ClickHouse/ClickHouse SLOC report

> As of 2026-09-16 (commit a38068f43d5a), ClickHouse/ClickHouse contains 3,087,049 total lines: 2,377,034 code, 277,792 comments, 432,223 blank, across 11,093 files in 31 languages (top: C++ 63.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

ClickHouse/ClickHouse has 2,377,034 source lines of code out of 3,087,049 total lines across 11,093 files, counted from the a38068f43d5a7b76d6463a9ec85f242256a70deb ref at commit a38068f43d5a by the OctoCounts tokei engine on 2026-09-16. 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 ClickHouse/ClickHouse to commit a38068f43d5a, 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 77.0% of all lines, comments represent 9.0%, and the repository averages 214 code lines per file. C++ accounts for 63.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 4,912 | 1,860,849 | 1,504,677 | 120,309 | 235,863 |
| C Header | 4,805 | 638,565 | 401,986 | 113,361 | 123,218 |
| GNU Style Assembly | 97 | 318,094 | 271,603 | 1,749 | 44,742 |
| Python | 274 | 110,470 | 89,586 | 9,888 | 10,996 |
| C | 109 | 59,250 | 44,694 | 8,407 | 6,149 |
| CMake | 423 | 37,922 | 30,735 | 3,791 | 3,396 |
| Shell | 80 | 12,960 | 8,647 | 2,907 | 1,406 |
| JavaScript | 44 | 5,645 | 4,246 | 776 | 623 |
| Autoconf | 26 | 6,770 | 4,204 | 1,168 | 1,398 |
| Protocol Buffers | 5 | 3,429 | 2,847 | 204 | 378 |
| C++ Header | 13 | 4,022 | 2,820 | 576 | 626 |
| Java | 5 | 2,300 | 2,151 | 28 | 121 |

Top language (C++ 63.3%). Generated at 2026-09-16T09:27:58.438617314+00:00. Canonical report: https://octocounts.com/github/ClickHouse/ClickHouse

## Reproduce this report

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

ClickHouse/ClickHouse has 3,087,049 total lines, including 2,377,034 code lines, 277,792 comment lines, and 432,223 blank lines.

### How was the ClickHouse/ClickHouse line count measured?

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

### What commit was counted for ClickHouse/ClickHouse?

This OctoCounts report was generated from a38068f43d5a7b76d6463a9ec85f242256a70deb at commit a38068f43d5a on 2026-09-16T09:27:58.438617314+00:00.

## Similar repository reports

- [microsoft/onnxruntime](https://octocounts.com/github/microsoft/onnxruntime) — C++, 2,408,506 code lines
- [swiftlang/swift](https://octocounts.com/github/swiftlang/swift) — C++, 2,131,342 code lines
- [Open-Cascade-SAS/OCCT](https://octocounts.com/github/Open-Cascade-SAS/OCCT) — C++, 2,027,728 code lines
- [ceph/ceph](https://octocounts.com/github/ceph/ceph) — C++, 1,911,970 code lines
- [v8/v8](https://octocounts.com/github/v8/v8) — C++, 1,569,920 code lines
- [LadybirdBrowser/ladybird](https://octocounts.com/github/LadybirdBrowser/ladybird) — C++, 1,565,247 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)
- [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)
