# databendlabs/databend SLOC report

> As of 2026-07-16 (commit 5876b2de8e35), databendlabs/databend contains 787,352 total lines: 637,220 code, 68,903 comments, 81,229 blank, across 3,670 files in 20 languages (top: Rust 95.5%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving databendlabs/databend to commit 5876b2de8e35, 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 large codebase by counted code lines. Code represents 80.9% of all lines, comments represent 8.8%, and the repository averages 174 code lines per file. Rust accounts for 95.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 3,083 | 739,728 | 608,834 | 55,043 | 75,851 |
| Python | 40 | 9,019 | 7,414 | 280 | 1,325 |
| TOML | 148 | 6,519 | 5,323 | 416 | 780 |
| Shell | 69 | 6,207 | 4,832 | 423 | 952 |
| SQL | 139 | 3,057 | 2,980 | 16 | 61 |
| Protocol Buffers | 40 | 3,469 | 2,105 | 753 | 611 |
| YAML | 26 | 2,116 | 1,910 | 77 | 129 |
| JSON | 4 | 1,194 | 1,194 | 0 | 0 |
| C | 3 | 1,232 | 1,028 | 58 | 146 |
| Jinja2 | 1 | 985 | 803 | 0 | 182 |
| Lua | 2 | 340 | 229 | 59 | 52 |
| Dockerfile | 10 | 225 | 166 | 18 | 41 |

Top language (Rust 95.5%). Generated at 2026-07-16T17:18:08.716514611+00:00. Canonical report: https://octocounts.com/github/databendlabs/databend

## Report FAQ

### How many lines of code does databendlabs/databend have?

databendlabs/databend has 787,352 total lines, including 637,220 code lines, 68,903 comment lines, and 81,229 blank lines.

### How was the databendlabs/databend line count measured?

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

### What commit was counted for databendlabs/databend?

This OctoCounts report was generated from main at commit 5876b2de8e35 on 2026-07-16T17:18:08.716514611+00:00.

## Similar repository reports

- [GreptimeTeam/greptimedb](https://octocounts.com/github/GreptimeTeam/greptimedb) — Rust, 637,097 code lines
- [bifrost-proxy/bifrost](https://octocounts.com/github/bifrost-proxy/bifrost) — Rust, 623,283 code lines
- [tikv/tikv](https://octocounts.com/github/tikv/tikv) — Rust, 623,206 code lines
- [1jehuang/jcode](https://octocounts.com/github/1jehuang/jcode) — Rust, 617,746 code lines
- [brightwave-inc/tidebreak](https://octocounts.com/github/brightwave-inc/tidebreak) — Rust, 601,204 code lines
- [astral-sh/ruff](https://octocounts.com/github/astral-sh/ruff) — Rust, 600,198 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)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
