Bun vs Deno: source lines of code compared
As of 2026-08-14, oven-sh/bun contains 2,039,877 total lines (1,540,528 code) across 4,130 files, while denoland/deno contains 1,184,418 total lines (940,039 code) across 2,014 files as of 2026-08-14. oven-sh/bun is about 1.6x the size of denoland/deno by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | oven-sh/bun | denoland/deno |
|---|
| Files | 4,130 | 2,014 |
| Total lines | 2,039,877 | 1,184,418 |
| Code lines | 1,540,528 | 940,039 |
| Comment lines | 336,449 | 169,783 |
| Blank lines | 162,900 | 74,596 |
| Languages counted | 12 | 12 |
Top languages in oven-sh/bun: Rust (50.8% of code), C++ (15.6% of code), C (13.0% of code). Top languages in denoland/deno: Rust (52.9% of code), JavaScript (29.6% of code), TypeScript (15.0% of code). Rust, C, TypeScript, JavaScript appear in both top language lists; C++ appears only in oven-sh/bun's top languages; TOML appears only in denoland/deno's top languages.
Methodology: both counts come from cached OctoCounts reports generated with tokei. oven-sh/bun was counted at ref main (commit eabb96de728f) on 2026-08-14; denoland/deno was counted at ref main (commit a883d1377529) on 2026-08-14. See the counting methodology for ignored directories and analysis options.
Evidence and next steps:
Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.