What's the best JavaScript minifier?
This project benchmarks the following minifiers:
| Minifier | Version | Release date ↓ |
|---|---|---|
| @swc/core | 1.15.13 | 2026-02-23 |
| oxc-minify | 0.115.0 | 2026-02-23 |
| bun | 1.3.9 | 2026-02-08 |
| esbuild | 0.27.3 | 2026-02-05 |
| terser | 5.46.0 | 2026-01-15 |
| google-closure-compiler | 20251216.0.0 | 2025-12-18 |
| @tdewolff/minify | 2.24.8 | 2025-12-08 |
| @cminify/cminify-linux-x64 | 3.0.1 | 2025-07-27 |
| uglify-js | 3.19.3 | 2024-08-29 |
| babel-minify | 0.5.2 | 2022-05-06 |
| tedivm/jshrink | 1.8.1 |
Benchmarks last updated on Feb 23, 2026.
- To help you pick a minifier that fits your needs
- To promote JS minifiers and document their performances
- To encourage healthy competition and improvement amongst minifiers
- Each minifier is executed in its own process with a 10s timeout
- Artifact integrity is verified by a test before and after minification
- Each minifier is minimally configured (sourcemaps & comments disabled), comparing out-of-the-box experience
- Minifier upgrade PRs are automated via WhiteSource Renovate
- Benchmarks are updated on every PR via GitHub Actions
- The raw benchmark data is available in
/packages/data/data/data.json
For each benchmark, minifiers are ranked by a score that reflects the best balance of trade-offs.
The score combines minzipped size and minification time, with size weighted more heavily by default (85% size, 15% time) since it's usually the top priority. If a minifier is unusually slow, the weights shift toward time using a logistic sigmoid function, up to a 50/50 split. This avoids harsh cutoffs while still penalizing extreme slowness.
Both size and time are scaled using min-max normalization so they can be compared fairly. The result is a context-aware score that helps surface the best overall choice—but make sure to check each column directly if size or speed matters more to you.
Size of the minified output.
Size of the minified output with Gzip compression.
For minifiers, this measures how compressable the output is.
For users, this measures network transfer size, which is usually the metric that matters most.
How long minification took (average of 5 runs). Each time is annotated with a multiplier relative to the fastest minifier.
Tip
What's the verdict? ⚔️ See the Minifier showdown
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| react v17.0.2 (Source) | 72.13 KB |
19.39 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. @swc/core | -68% 22.82 KB |
-58% 8.19 KB |
3x 12 ms |
| 2. terser | -68% 23.05 KB |
-57% 8.26 KB |
89x 278 ms |
| 3. oxc-minify | -68% 23.22 KB |
-57% 8.40 KB |
🏆 3 ms |
| 4. uglify-js | 🏆-69% 22.64 KB |
🏆-58% 8.18 KB |
163x 511 ms |
| 5. esbuild | -67% 23.70 KB |
-56% 8.54 KB |
5x 18 ms |
| 6. @tdewolff/minify | -67% 23.49 KB |
-55% 8.63 KB |
1x 6 ms |
| 7. bun | -67% 23.98 KB |
-55% 8.66 KB |
5x 17 ms |
| 8. uglify-js (no compress) | -65% 25.03 KB |
-55% 8.67 KB |
28x 90 ms |
| 9. babel-minify | -67% 23.61 KB |
-56% 8.45 KB |
172x 537 ms |
| 10. terser (no compress) | -65% 25.06 KB |
-55% 8.74 KB |
40x 127 ms |
| 11. google-closure-compiler | -68% 22.81 KB |
-58% 8.22 KB |
1121x 3,495 ms |
| 12. @cminify/cminify-linux-x64 | -44% 40.04 KB |
-44% 10.86 KB |
4x 15 ms |
| 13. tedivm/jshrink | -43% 40.82 KB |
-43% 11.04 KB |
39x 124 ms |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| moment v2.29.1 (Source) | 173.90 KB |
36.23 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. @swc/core | -66% 58.37 KB |
-48% 18.75 KB |
3x 29 ms |
| 2. oxc-minify | -66% 59.40 KB |
-47% 19.24 KB |
1x 9 ms |
| 3. terser | -66% 59.01 KB |
-48% 18.69 KB |
78x 638 ms |
| 4. esbuild | -66% 59.80 KB |
-47% 19.33 KB |
2x 23 ms |
| 5. @tdewolff/minify | -66% 59.89 KB |
-46% 19.48 KB |
🏆 8 ms |
| 6. uglify-js | 🏆-67% 57.73 KB |
🏆-49% 18.57 KB |
135x 1,106 ms |
| 7. uglify-js (no compress) | -64% 62.50 KB |
-46% 19.57 KB |
24x 199 ms |
| 8. bun | -64% 61.76 KB |
-45% 19.85 KB |
2x 17 ms |
| 9. terser (no compress) | -64% 63.01 KB |
-46% 19.65 KB |
31x 258 ms |
| 10. babel-minify | -66% 59.79 KB |
-48% 19.01 KB |
149x 1,215 ms |
| 11. google-closure-compiler | -66% 58.28 KB |
-48% 18.90 KB |
468x 3,818 ms |
| 12. @cminify/cminify-linux-x64 | -45% 95.93 KB |
-32% 24.74 KB |
1x 10 ms |
| 13. tedivm/jshrink | -44% 97.63 KB |
-31% 25.00 KB |
34x 283 ms |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| jquery v3.5.1 (Source) | 287.63 KB |
84.50 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. @swc/core | -69% 89.16 KB |
-63% 30.86 KB |
4x 53 ms |
| 2. oxc-minify | -69% 89.26 KB |
-63% 30.92 KB |
1x 14 ms |
| 3. @tdewolff/minify | -69% 89.68 KB |
-63% 31.45 KB |
🏆 12 ms |
| 4. uglify-js (no compress) | -67% 94.08 KB |
-63% 31.47 KB |
22x 273 ms |
| 5. esbuild | -69% 90.07 KB |
-62% 31.96 KB |
2x 28 ms |
| 6. terser (no compress) | -67% 94.26 KB |
-63% 31.56 KB |
27x 329 ms |
| 7. terser | -69% 89.24 KB |
🏆-63% 30.86 KB |
70x 844 ms |
| 8. bun | -68% 92.39 KB |
-61% 32.64 KB |
2x 27 ms |
| 9. uglify-js | 🏆-69% 88.45 KB |
-63% 30.90 KB |
133x 1,595 ms |
| 10. babel-minify | -68% 92.11 KB |
-62% 31.80 KB |
160x 1,922 ms |
| 11. google-closure-compiler | -68% 92.71 KB |
-61% 33.05 KB |
339x 4,065 ms |
| 12. @cminify/cminify-linux-x64 | -51% 141.45 KB |
-52% 40.37 KB |
1x 14 ms |
| 13. tedivm/jshrink | -50% 144.14 KB |
-52% 40.88 KB |
29x 356 ms |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| vue v2.6.12 (Source) | 342.15 KB |
89.67 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. @swc/core | -66% 115.53 KB |
🏆-52% 42.72 KB |
4x 69 ms |
| 2. oxc-minify | -66% 116.98 KB |
-52% 43.23 KB |
1x 17 ms |
| 3. @tdewolff/minify | -66% 117.70 KB |
-51% 44.37 KB |
1x 21 ms |
| 4. esbuild | -65% 118.14 KB |
-51% 44.37 KB |
2x 31 ms |
| 5. terser | -66% 116.60 KB |
-52% 42.87 KB |
69x 1,047 ms |
| 6. uglify-js (no compress) | -63% 126.14 KB |
-50% 44.45 KB |
23x 348 ms |
| 7. terser (no compress) | -63% 126.39 KB |
-50% 44.64 KB |
26x 406 ms |
| 8. bun | -65% 121.28 KB |
-49% 45.39 KB |
1x 30 ms |
| 9. uglify-js | 🏆-67% 113.80 KB |
-52% 43.04 KB |
140x 2,114 ms |
| 10. babel-minify | -66% 117.92 KB |
-51% 43.89 KB |
143x 2,158 ms |
| 11. google-closure-compiler | -66% 115.55 KB |
-51% 44.24 KB |
301x 4,541 ms |
| 12. @cminify/cminify-linux-x64 | -43% 193.91 KB |
-37% 56.36 KB |
🏆 15 ms |
| 13. tedivm/jshrink | -42% 197.36 KB |
-36% 57.17 KB |
31x 470 ms |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| lodash v4.17.21 (Source) | 544.09 KB |
96.69 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. @swc/core | -87% 69.82 KB |
-74% 25.24 KB |
4x 52 ms |
| 2. oxc-minify | -87% 71.04 KB |
-73% 25.90 KB |
1x 13 ms |
| 3. uglify-js (no compress) | -86% 74.61 KB |
-73% 25.86 KB |
25x 302 ms |
| 4. esbuild | -87% 72.50 KB |
-73% 26.20 KB |
2x 33 ms |
| 5. @tdewolff/minify | -87% 71.90 KB |
-73% 26.50 KB |
1x 17 ms |
| 6. terser | -87% 70.41 KB |
-74% 25.15 KB |
73x 872 ms |
| 7. bun | -87% 73.45 KB |
-72% 26.66 KB |
1x 22 ms |
| 8. terser (no compress) | -86% 75.04 KB |
-73% 26.19 KB |
29x 348 ms |
| 9. uglify-js | 🏆-87% 68.17 KB |
🏆-74% 24.69 KB |
143x 1,697 ms |
| 10. babel-minify | -87% 72.79 KB |
-74% 25.41 KB |
142x 1,679 ms |
| 11. google-closure-compiler | -86% 73.49 KB |
-74% 25.03 KB |
364x 4,306 ms |
| 12. @cminify/cminify-linux-x64 | -73% 146.27 KB |
-63% 35.94 KB |
🏆 12 ms |
| 13. tedivm/jshrink | -73% 148.78 KB |
-62% 36.33 KB |
30x 365 ms |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| d3 v6.3.1 (Source) | 555.77 KB |
130.69 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. @swc/core | -52% 265.20 KB |
-33% 87.22 KB |
6x 137 ms |
| 2. oxc-minify | -52% 267.39 KB |
-33% 87.96 KB |
1x 38 ms |
| 3. uglify-js (no compress) | -50% 275.35 KB |
-32% 88.32 KB |
32x 686 ms |
| 4. @tdewolff/minify | -52% 269.07 KB |
-31% 89.87 KB |
1x 41 ms |
| 5. terser (no compress) | -50% 276.13 KB |
-32% 89.07 KB |
43x 935 ms |
| 6. esbuild | -51% 270.21 KB |
-31% 90.81 KB |
2x 60 ms |
| 7. terser | -52% 267.42 KB |
-33% 88.00 KB |
102x 2,179 ms |
| 8. bun | -51% 272.73 KB |
-29% 92.34 KB |
2x 46 ms |
| 9. uglify-js | 🏆-53% 263.56 KB |
🏆-33% 87.02 KB |
185x 3,964 ms |
| 10. @cminify/cminify-linux-x64 | -29% 393.70 KB |
-21% 103.81 KB |
🏆 21 ms |
| 11. google-closure-compiler | -51% 270.32 KB |
-28% 94.15 KB |
300x 6,413 ms |
| 12. babel-minify ❌ Minification | ❌ | ❌ | - |
| 13. tedivm/jshrink ❌ Minification | ❌ | ❌ | - |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| terser v5.30.3 (Source) | 1.01 MB |
193.76 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. oxc-minify | 🏆-56% 439.37 KB |
🏆-37% 122.01 KB |
1x 37 ms |
| 2. @swc/core | -55% 455.45 KB |
-36% 123.29 KB |
5x 125 ms |
| 3. @tdewolff/minify | -55% 456.59 KB |
-36% 124.88 KB |
1x 32 ms |
| 4. terser (no compress) | -53% 472.58 KB |
-36% 124.25 KB |
38x 885 ms |
| 5. uglify-js (no compress) | -53% 472.16 KB |
-36% 124.61 KB |
33x 765 ms |
| 6. esbuild | -55% 458.93 KB |
-35% 126.71 KB |
2x 61 ms |
| 7. bun | -54% 466.69 KB |
-34% 127.64 KB |
1x 41 ms |
| 8. terser | -55% 456.59 KB |
-36% 123.35 KB |
92x 2,114 ms |
| 9. uglify-js | -55% 451.19 KB |
-36% 123.33 KB |
163x 3,736 ms |
| 10. google-closure-compiler | -56% 439.93 KB |
-35% 126.44 KB |
269x 6,155 ms |
| 11. @cminify/cminify-linux-x64 | -38% 625.93 KB |
-26% 144.30 KB |
🏆 23 ms |
| 12. tedivm/jshrink | -37% 633.71 KB |
-25% 145.18 KB |
58x 1,331 ms |
| 13. babel-minify ❌ Minification | ❌ | ❌ | - |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| three v0.124.0 (Source) | 1.25 MB |
248.27 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. @swc/core | -48% 642.75 KB |
🏆-36% 158.73 KB |
8x 193 ms |
| 2. oxc-minify | -48% 642.66 KB |
-36% 159.91 KB |
2x 54 ms |
| 3. esbuild | -48% 646.93 KB |
-34% 163.75 KB |
3x 87 ms |
| 4. @tdewolff/minify | -49% 642.20 KB |
-34% 164.60 KB |
2x 46 ms |
| 5. uglify-js (no compress) | -46% 674.49 KB |
-34% 163.04 KB |
42x 985 ms |
| 6. bun | -47% 655.59 KB |
-33% 166.17 KB |
2x 55 ms |
| 7. terser (no compress) | -46% 675.43 KB |
-34% 163.18 KB |
51x 1,185 ms |
| 8. terser | -48% 653.18 KB |
-36% 159.17 KB |
122x 2,825 ms |
| 9. uglify-js | 🏆-49% 641.59 KB |
-36% 159.07 KB |
219x 5,050 ms |
| 10. google-closure-compiler | -48% 644.51 KB |
-34% 162.81 KB |
334x 7,711 ms |
| 11. @cminify/cminify-linux-x64 | -25% 941.06 KB |
-23% 191.97 KB |
🏆 23 ms |
| 12. tedivm/jshrink | -24% 952.01 KB |
-22% 193.47 KB |
73x 1,700 ms |
| 13. babel-minify ❌ Timed out | - | - | +10,000 ms |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| victory v35.8.4 (Source) | 2.13 MB |
309.94 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. @swc/core | -67% 705.93 KB |
-49% 157.74 KB |
5x 282 ms |
| 2. oxc-minify | -67% 711.11 KB |
-48% 160.89 KB |
1x 82 ms |
| 3. @tdewolff/minify | -66% 716.62 KB |
-47% 164.95 KB |
1x 59 ms |
| 4. terser (no compress) | -65% 756.62 KB |
-46% 166.18 KB |
30x 1,485 ms |
| 5. uglify-js (no compress) | -65% 756.53 KB |
-46% 167.58 KB |
25x 1,245 ms |
| 6. terser | -67% 712.87 KB |
-49% 158.46 KB |
80x 3,859 ms |
| 7. esbuild | -66% 725.65 KB |
-42% 181.23 KB |
2x 118 ms |
| 8. bun | -66% 726.80 KB |
-41% 182.61 KB |
1x 84 ms |
| 9. uglify-js | 🏆-67% 694.78 KB |
🏆-49% 157.44 KB |
137x 6,600 ms |
| 10. @cminify/cminify-linux-x64 | -33% 1.43 MB |
-29% 221.12 KB |
🏆 48 ms |
| 11. babel-minify ❌ Minification | ❌ | ❌ | - |
| 12. google-closure-compiler ❌ Timed out | - | - | +10,000 ms |
| 13. tedivm/jshrink ❌ Post-validation | ❌ | ❌ | - |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| echarts v5.1.1 (Source) | 3.20 MB |
684.61 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. oxc-minify | -69% 1.00 MB |
-53% 323.09 KB |
4x 199 ms |
| 2. @swc/core | 🏆-69% 993.62 KB |
🏆-53% 321.08 KB |
13x 594 ms |
| 3. @tdewolff/minify | -68% 1.01 MB |
-52% 331.76 KB |
2x 121 ms |
| 4. esbuild | -68% 1.01 MB |
-52% 331.62 KB |
4x 200 ms |
| 5. bun | -68% 1.02 MB |
-51% 337.87 KB |
2x 123 ms |
| 6. uglify-js (no compress) | -67% 1.07 MB |
-52% 331.41 KB |
37x 1,722 ms |
| 7. terser (no compress) | -67% 1.07 MB |
-52% 330.35 KB |
54x 2,493 ms |
| 8. terser | -69% 998.45 KB |
-53% 321.56 KB |
128x 5,824 ms |
| 9. @cminify/cminify-linux-x64 | -45% 1.77 MB |
-37% 434.45 KB |
🏆 45 ms |
| 10. babel-minify ❌ Timed out | - | - | +10,000 ms |
| 11. google-closure-compiler ❌ Timed out | - | - | +10,000 ms |
| 12. tedivm/jshrink ❌ Minification | ❌ | ❌ | - |
| 13. uglify-js ❌ Timed out | - | - | +10,000 ms |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| antd v4.16.1 (Source) | 6.67 MB |
825.18 KB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. oxc-minify | -67% 2.22 MB |
-45% 456.12 KB |
3x 293 ms |
| 2. @swc/core | 🏆-68% 2.15 MB |
🏆-45% 452.46 KB |
9x 728 ms |
| 3. @tdewolff/minify | -66% 2.29 MB |
-43% 471.64 KB |
1x 136 ms |
| 4. esbuild | -65% 2.31 MB |
-41% 488.41 KB |
3x 286 ms |
| 5. bun | -66% 2.30 MB |
-40% 491.71 KB |
2x 163 ms |
| 6. uglify-js (no compress) | -64% 2.42 MB |
-42% 478.57 KB |
33x 2,453 ms |
| 7. terser (no compress) | -64% 2.42 MB |
-42% 474.97 KB |
38x 2,802 ms |
| 8. terser | -66% 2.24 MB |
-45% 457.35 KB |
90x 6,606 ms |
| 9. @cminify/cminify-linux-x64 | -34% 4.43 MB |
-24% 623.37 KB |
🏆 73 ms |
| 10. tedivm/jshrink | -33% 4.45 MB |
-24% 626.68 KB |
98x 7,206 ms |
| 11. babel-minify ❌ Timed out | - | - | +10,000 ms |
| 12. google-closure-compiler ❌ Timed out | - | - | +10,000 ms |
| 13. uglify-js ❌ Timed out | - | - | +10,000 ms |
| Artifact | Original size | Gzip size | |
|---|---|---|---|
| typescript v4.9.5 (Source) | 10.95 MB |
1.88 MB |
|
| Minifier | Minified size | Minzipped size | Time |
| 1. oxc-minify | -70% 3.33 MB |
🏆-55% 853.12 KB |
5x 607 ms |
| 2. @tdewolff/minify | -69% 3.35 MB |
-54% 875.77 KB |
2x 256 ms |
| 3. @swc/core | 🏆-70% 3.31 MB |
-54% 859.06 KB |
14x 1,575 ms |
| 4. esbuild | -68% 3.49 MB |
-51% 915.54 KB |
4x 470 ms |
| 5. bun | -68% 3.54 MB |
-51% 923.27 KB |
2x 293 ms |
| 6. uglify-js (no compress) | -68% 3.54 MB |
-53% 876.54 KB |
34x 3,784 ms |
| 7. terser (no compress) | -68% 3.53 MB |
-53% 878.64 KB |
43x 4,695 ms |
| 8. @cminify/cminify-linux-x64 | -47% 5.85 MB |
-40% 1.13 MB |
🏆 109 ms |
| 9. babel-minify ❌ Timed out | - | - | +10,000 ms |
| 10. google-closure-compiler ❌ Timed out | - | - | +10,000 ms |
| 11. tedivm/jshrink ❌ Timed out | - | - | +10,000 ms |
| 12. terser ❌ Timed out | - | - | +10,000 ms |
| 13. uglify-js ❌ Timed out | - | - | +10,000 ms |
Note
🤖 This analysis is AI generated. See below for the system prompt.
Three... two... one... compress! Welcome to the Minification Grand Prix, where every kilobyte is a trophy and every millisecond is a slipstream. The field mixed old-school grinders and sprinters built for CI. Some tools went for glory and shaved every byte they could. Others sprinted so fast you barely saw the output. The story is all about trade-offs, and the lead swapped lanes more than once.
@swc/core takes the crown. It was the most convincing all-rounder — consistently at or very near the smallest gzip sizes, while staying orders of magnitude faster than the absolute byte-chasers. On small toys like react it matched the best size (8.19 KB vs uglify’s 8.18 KB) but finished in 12 ms versus 511 ms. On heavyweights it often owned the podium: echarts (321.08 KB, 594 ms) and antd (452.46 KB, 728 ms) were won by swc outright, and three/three-ish targets saw swc deliver the best balance of tiny bytes and practical speed. In plain terms: swc gives you near-best transfer sizes without crippling build times, which is exactly the kind of balance that matters in real builds.
- uglify-js — The razor. Most smallest-gzip victories across the series (react, moment, lodash, d3, victory). If raw bytes are your single-minded KPI and you can tolerate long runs (times often in the seconds), uglify will earn you the last 1–3% of compression. It pays a big time penalty for that thrift.
- oxc-minify — The sprinter with endurance. Extremely fast in almost every run and it pulled the biggest upset by winning the largest test (typescript, 853.12 KB in 607 ms). It’s a superb choice when you want very small output on huge artifacts without waiting forever.
- @cminify/cminify-linux-x64 — The blink-and-it’s-done specialist. Repeatedly the fastest, especially on big files, but it trades off compression depth. Great for fast CI where milliseconds matter more than shaving a few KB.
- @tdewolff/minify — A steady fast finisher. Frequently among the fastest and consistently close on size for medium-to-large bundles. Good compromise when you need speed and decent compression.
- terser — Reliable and competitive in several mid-sized cases (notably jquery). Slower than the new generation, but still produces good sizes.
- babel-minify — Crashed on d3 during minification: "Cannot read properties of undefined (reading 'add')". Removed from contention for stability reasons.
- tedivm/jshrink — Crashed on d3 with a runtime exception parsing a regex. Removed for failing to complete the benchmark.
This race measured two things only: gzipped bytes and how long the minifier took to get them. Real-world choices also care about correctness, compatibility, developer experience, install size, APIs and ecosystem. If you want the absolute smallest delivery and can afford slow runs, uglify-js still delivers. If you want tiny bytes and a tool that behaves at CI speed, @swc/core is the pragmatic champion. If you need blistering throughput and are willing to accept larger output, reach for @cminify or @tdewolff. And if you have monster bundles (hello, TypeScript), oxc-minify proved it can both shrink and sprint.
Pick the tool that wins for your workflow: the fanciest trophy isn’t always the one you can carry home every day.
System prompt
Today's date is 2026-02-23
You are a JavaScript minification benchmark analyst with a flair for storytelling.
## Objective
Analyze JavaScript minifiers based strictly on benchmark data: *minified Gzip size* and *minification speed*.
Present your findings as an entertaining and intuitive commentary, helping readers understand performance trade-offs even if they aren't familiar with kilobytes, milliseconds, or compression ratios.
Your job is to narrate the race—not just display the scoreboard.
## Rules of Engagement
1. Compare only what's measured: Evaluate each minifier based solely on Gzip size and speed. Avoid assumptions about correctness, compatibility, or code quality unless failures are explicitly shown in the results.
2. Crown the winner:
- Prioritize smallest Gzip size (transfer time matters most).
- Consider speed—especially where compression is close. A 10× faster tool with ~1% worse compression might be more practical for CI pipelines.
- Bigger source = harder challenge. Reward outstanding performance on large artifacts.
- Trade-offs are key. Highlight where a tool sacrifices speed for size (or vice versa), and who manages both impressively.
3. Context matters:
- These benchmarks only capture performance. Real-world adoption also depends on DX: install size, API design, community, etc. Mention that—briefly—but do not evaluate it.
- If a tool stands out only in niche scenarios, note it.
- If a tool fails validation or breaks input code, eliminate it and warn accordingly.
## Output format
- Tone: Energetic, cheeky, and dramatic—like a live commentator at a niche sporting event. No emojis.
- Style: Short, connected sentences. Prioritize flow over bullet lists, except for eliminations.
- Audience: Readers who want *practical insight* from raw benchmark data—without needing to decode gzip math or performance charts.
## Output structure & example
```md
<Quick intro — set the tone. Comment on how fierce or surprising the field was.>
Three... two... one... compress! Welcome to the Minification Grand Prix, where bytes are sliced, milliseconds count, and no semicolon is safe. This year's lineup is ferocious, blending familiar veterans with some clever debutants. The competition? Gritty as ever. The stakes? Astronomical. Let’s see who rises to the top of the minification hierarchy!
### Best minifier
<Name the top performer and justify it. Consider consistency, trade-offs, and standout moments. Call out how hard the decision was if close.>
### Honorable mentions
<Concisely highlight specific tools that impressed in size, speed, or balance. Mention exciting newcomers or quietly consistent performers.>
### Eliminated
<List of disqualified minifiers, each with a quick reason (e.g., crash, invalid output, critical bug). Be clear but diplomatic.>
### Closing remarks
<Closing remarks — Concisely celebrate the competition, acknowledge that DX and correctness also matter, and encourage readers to explore what fits their workflow.>
```
# Minifiers
- babel-minify v0.5.2 released 2022-05-06
- bun v1.3.9 released 2026-02-08
- @cminify/cminify-linux-x64 v3.0.1 released 2025-07-27
- esbuild v0.27.3 released 2026-02-05
- google-closure-compiler v20251216.0.0 released 2025-12-18
- tedivm/jshrink v1.8.1
- oxc-minify v0.115.0 released 2026-02-23
- @swc/core v1.15.13 released 2026-02-23
- @tdewolff/minify v2.24.8 released 2025-12-08
- terser v5.46.0 released 2026-01-15
- uglify-js v3.19.3 released 2024-08-29
# Race results
## Round 1: npm package "react" (19.39 KB gzipped)
- Best gzip compression: uglify-js: 8.18 KB (58% shaved) in 511 ms
- Fastest: oxc-minify: 8.40 KB (57% shaved) in 3 ms
- Most balanced: @swc/core: 8.19 KB (58% shaved) in 12 ms
- Honorable mention: terser: 8.26 KB (57% shaved) in 278 ms
## Round 2: npm package "moment" (36.23 KB gzipped)
- Best gzip compression: uglify-js: 18.57 KB (49% shaved) in 1,106 ms
- Fastest: @tdewolff/minify: 19.48 KB (46% shaved) in 8 ms
- Most balanced: @swc/core: 18.75 KB (48% shaved) in 29 ms
- Honorable mention: oxc-minify: 19.24 KB (47% shaved) in 9 ms
## Round 3: npm package "jquery" (84.50 KB gzipped)
- Best gzip compression: terser: 30.86 KB (63% shaved) in 844 ms
- Fastest: @tdewolff/minify: 31.45 KB (63% shaved) in 12 ms
- Most balanced: @swc/core: 30.86 KB (63% shaved) in 53 ms
- Honorable mention: oxc-minify: 30.92 KB (63% shaved) in 14 ms
## Round 4: npm package "vue" (89.67 KB gzipped)
- Best gzip compression: @swc/core: 42.72 KB (52% shaved) in 69 ms
- Fastest: @cminify/cminify-linux-x64: 56.36 KB (37% shaved) in 15 ms
- Most balanced: @swc/core: 42.72 KB (52% shaved) in 69 ms
- Honorable mention: oxc-minify: 43.23 KB (52% shaved) in 17 ms
## Round 5: npm package "lodash" (96.69 KB gzipped)
- Best gzip compression: uglify-js: 24.69 KB (74% shaved) in 1,697 ms
- Fastest: @cminify/cminify-linux-x64: 35.94 KB (63% shaved) in 12 ms
- Most balanced: @swc/core: 25.24 KB (74% shaved) in 52 ms
- Honorable mention: oxc-minify: 25.90 KB (73% shaved) in 13 ms
## Round 6: npm package "d3" (130.69 KB gzipped)
- Best gzip compression: uglify-js: 87.02 KB (33% shaved) in 3,964 ms
- Fastest: @cminify/cminify-linux-x64: 103.81 KB (21% shaved) in 21 ms
- Most balanced: @swc/core: 87.22 KB (33% shaved) in 137 ms
- Honorable mention: oxc-minify: 87.96 KB (33% shaved) in 38 ms
## Round 7: npm package "terser" (193.76 KB gzipped)
- Best gzip compression: oxc-minify: 122.01 KB (37% shaved) in 37 ms
- Fastest: @cminify/cminify-linux-x64: 144.30 KB (26% shaved) in 23 ms
- Most balanced: oxc-minify: 122.01 KB (37% shaved) in 37 ms
- Honorable mention: @swc/core: 123.29 KB (36% shaved) in 125 ms
## Round 8: npm package "three" (248.27 KB gzipped)
- Best gzip compression: @swc/core: 158.73 KB (36% shaved) in 193 ms
- Fastest: @cminify/cminify-linux-x64: 191.97 KB (23% shaved) in 23 ms
- Most balanced: @swc/core: 158.73 KB (36% shaved) in 193 ms
- Honorable mention: oxc-minify: 159.91 KB (36% shaved) in 54 ms
## Round 9: npm package "victory" (309.94 KB gzipped)
- Best gzip compression: uglify-js: 157.44 KB (49% shaved) in 6,600 ms
- Fastest: @cminify/cminify-linux-x64: 221.12 KB (29% shaved) in 48 ms
- Most balanced: @swc/core: 157.74 KB (49% shaved) in 282 ms
- Honorable mention: oxc-minify: 160.89 KB (48% shaved) in 82 ms
## Round 10: npm package "echarts" (684.61 KB gzipped)
- Best gzip compression: @swc/core: 321.08 KB (53% shaved) in 594 ms
- Fastest: @cminify/cminify-linux-x64: 434.45 KB (37% shaved) in 45 ms
- Most balanced: oxc-minify: 323.09 KB (53% shaved) in 199 ms
- Honorable mention: @tdewolff/minify: 331.76 KB (52% shaved) in 121 ms
## Round 11: npm package "antd" (825.18 KB gzipped)
- Best gzip compression: @swc/core: 452.46 KB (45% shaved) in 728 ms
- Fastest: @cminify/cminify-linux-x64: 623.37 KB (24% shaved) in 73 ms
- Most balanced: oxc-minify: 456.12 KB (45% shaved) in 293 ms
- Honorable mention: @tdewolff/minify: 471.64 KB (43% shaved) in 136 ms
## Round 12: npm package "typescript" (1.88 MB gzipped)
- Best gzip compression: oxc-minify: 853.12 KB (55% shaved) in 607 ms
- Fastest: @cminify/cminify-linux-x64: 1.13 MB (40% shaved) in 109 ms
- Most balanced: oxc-minify: 853.12 KB (55% shaved) in 607 ms
- Honorable mention: @tdewolff/minify: 875.77 KB (54% shaved) in 256 ms
# Eliminated
## babel-minify
Failed "d3" in minification stage:
"unknown file: Cannot read properties of undefined (reading 'add')"
## tedivm/jshrink
Failed "d3" in minification stage:
"RuntimeException: Unclosed regex pattern at position: 289075 in /packages/minifiers/vendor/tedivm/jshrink/src/JShrink/Minifier.php:660"


