Thinpack.js Benchmarks (Linux x86_64)

All sizes below come directly from docs/benchmarks.md (recorded at commit 71dc765) and the CI-enforced regression baseline in tests/apps/baseline.toml.

Thinpack (QuickJS)
9.00 MiB
Bun 1.4.4 --compile
109.63 MiB
Node 26.8.1 SEA
149.82 MiB

typescript@5.9.3 (uncompressed binary): Thinpack 9.00 MiB · 12.2x smaller than Bun · 16.6x smaller than Node SEA · startup 578 ms cold / 347 ms warm

Thinpack runs tsc as shipped (--include for lib). Bun needs bin/tsc copied to *.js. Node SEA prints --version but fails to compile.

1. Side-by-Side: Thinpack vs Bun 1.4.4 vs Node 26.8.1 SEA

Measured on Linux x86_64 with QuickJS --rebuild, bun build --compile, and Node SEA using an esbuild --bundle --format=cjs blob injected via postject. Startup numbers are median cold / warm across seven --version runs.

Program Thinpack (MiB) Bun 1.4.4 (MiB) Node 26.8.1 SEA Thinpack cold / warm SEA startup
Hello World
hello.js
4.03 (~1.80 gz) 104.10 143.70 — Failed
tsc (TypeScript 5.9)
typescript@5.9.3
9.00 (5.65 gz) 109.63 (50.19 gz) 149.82 (45.35 gz) 578 / 347 ms 77 ms
ESLint 10
eslint@10.15.0
6.93 (3.60 gz) 107.15 (49.78 gz) 147.25 (44.96 gz) 288 / 186 ms 64 ms
Prettier 3
prettier@3.10.1
7.41 (4.14 gz) 110.04 (50.85 gz) 143.57 (44.32 gz) 235 / 155 ms Failed
Terser 5
terser@5.51.2
6.06 (2.91 gz) 105.38 (49.48 gz) 144.94 (44.57 gz) 226 / 145 ms 35 ms
js-yaml 5
js-yaml@5.5.0
5.80 (2.69 gz) 104.29 (49.28 gz) 143.75 (44.37 gz) 150 / 100 ms Failed
pi-coding-agent
@earendil-works/pi-coding-agent@1.5.0
12.42 (7.16 gz) 115.24 (51.30 gz) 157.75 (46.94 gz) 983 / 702 ms Failed

2. Current main CI Size Regression Baseline

The repository's GitHub Actions Size workflow runs cargo xtask apps on every PR and weekly schedule, failing the build if any packed fixture grows by more than 1% beyond tests/apps/baseline.toml.

Fixture App Artifact (MiB) gzip (MiB) Exact Bytes Files Capabilities
js-yaml 5
js-yaml@5.5.0
4.55 2.41 4,767,930 B 10 14
Terser 5
terser@5.51.2
4.82 2.64 5,056,302 B 37 14
ESLint 10
eslint@10.15.0
6.39 3.66 6,701,904 B 609 19
tsc (TypeScript 5.9)
typescript@5.9.3
6.53 3.88 6,846,258 B 107 18
Prettier 3
prettier@3.10.1
6.83 4.17 7,162,187 B 21 20
pi-coding-agent
@earendil-works/pi-coding-agent@1.5.0
12.58 7.90 13,195,923 B 2304 35

3. Base Runtime Template Sizes (Stripped, Small Profile)

Backend Core (no built-ins) All modules Notes
QuickJS (default) 5.20 MiB (2.22 gz) 11.61 MiB (5.51 gz) Smallest footprint; static musl build available via THINPACK_STATIC=1.
V8 (THINPACK_BACKEND=v8) 45.82 MiB (16.84 gz) 52.25 MiB (20.15 gz) Full V8 JIT speed when compute/startup latency matters more than binary size (glibc Linux / macOS / Windows).
JavaScriptCore (macOS jsc) System framework System framework Uses macOS JavaScriptCore.framework instead of bundling an engine; see docs/gaps.md for ESM/SAB limits.

4. Reproduce Locally

Measure templates and packed fixtures locally
cargo xtask size   # builds, strips, and records templates
cargo xtask apps   # packs tests/apps/* and checks baseline.toml

Shipping smaller Node.js CLIs? Star thinpack.js on GitHub

thinpack.js is 100% MIT-licensed and actively developed in Rust + JavaScript. If you ship Node.js CLIs and want 4–12 MiB binaries instead of 104–158 MiB runtimes, starring the repository helps other developers discover it and prioritizes new Node compatibility fixtures.