What's the best JavaScript minifier?
This project benchmarks the following minifiers:
Minifier | Version | Release date ↓ |
---|---|---|
@swc/core | 1.13.0 | 2025-07-17 |
oxc-minify | 0.77.2 | 2025-07-17 |
google-closure-compiler | 20250714.0.0 | 2025-07-17 |
esbuild | 0.25.6 | 2025-07-07 |
bun | 1.2.18 | 2025-07-03 |
terser | 5.43.1 | 2025-06-19 |
@tdewolff/minify | 2.23.8 | 2025-05-21 |
uglify-js | 3.19.3 | 2024-08-29 |
babel-minify | 0.5.2 | 2022-05-06 |
tedivm/jshrink | 1.7.0 |
Benchmarks last updated on Jul 18, 2025.
- 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
Minifiers are ranked by smallest minzipped size.
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
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "react v17.0.2"
x-axis ["Original",1,2,3,4,5,6,7,8,9,10,11,12]
y-axis "Gzip size" 0 --> 19385
bar [19385,8177,8186,8216,8255,8448,8493,8543,8628,8661,8668,8739,11040]
Artifact | Original size | Gzip size | |
---|---|---|---|
react v17.0.2 (Source) | 72.13 kB |
19.39 kB |
|
Minifier | Minified size | Minzipped size | Time |
1. uglify-js | 🏆-69% 22.64 kB |
🏆-58% 8.18 kB |
189x 497 ms |
2. @swc/core | -68% 22.81 kB |
-58% 8.19 kB |
5x 14 ms |
3. google-closure-compiler | -68% 22.84 kB |
-58% 8.22 kB |
1240x 3,258 ms |
4. terser | -68% 23.05 kB |
-57% 8.26 kB |
104x 275 ms |
5. babel-minify | -67% 23.60 kB |
-56% 8.45 kB |
246x 647 ms |
6. oxc-minify | -67% 23.52 kB |
-56% 8.49 kB |
1x 3 ms |
7. esbuild | -67% 23.70 kB |
-56% 8.54 kB |
4x 13 ms |
8. @tdewolff/minify | -67% 23.49 kB |
-55% 8.63 kB |
🏆 3 ms |
9. bun | -67% 23.99 kB |
-55% 8.66 kB |
5x 14 ms |
10. uglify-js (no compress) | -65% 25.03 kB |
-55% 8.67 kB |
34x 91 ms |
11. terser (no compress) | -65% 25.06 kB |
-55% 8.74 kB |
44x 118 ms |
12. tedivm/jshrink | -43% 40.82 kB |
-43% 11.04 kB |
46x 123 ms |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "moment v2.29.1"
x-axis ["Original",1,2,3,4,5,6,7,8,9,10,11,12]
y-axis "Gzip size" 0 --> 36231
bar [36231,18568,18689,18747,18923,19119,19259,19334,19478,19569,19651,19857,24998]
Artifact | Original size | Gzip size | |
---|---|---|---|
moment v2.29.1 (Source) | 173.90 kB |
36.23 kB |
|
Minifier | Minified size | Minzipped size | Time |
1. uglify-js | 🏆-67% 57.73 kB |
🏆-49% 18.57 kB |
206x 1,149 ms |
2. terser | -66% 59.01 kB |
-48% 18.69 kB |
124x 693 ms |
3. @swc/core | -66% 58.42 kB |
-48% 18.75 kB |
5x 32 ms |
4. google-closure-compiler | -66% 58.29 kB |
-48% 18.92 kB |
673x 3,750 ms |
5. babel-minify | -66% 59.70 kB |
-47% 19.12 kB |
262x 1,465 ms |
6. oxc-minify | -66% 59.51 kB |
-47% 19.26 kB |
1x 10 ms |
7. esbuild | -66% 59.82 kB |
-47% 19.33 kB |
3x 21 ms |
8. @tdewolff/minify | -66% 59.87 kB |
-46% 19.48 kB |
🏆 6 ms |
9. uglify-js (no compress) | -64% 62.50 kB |
-46% 19.57 kB |
38x 215 ms |
10. terser (no compress) | -64% 63.01 kB |
-46% 19.65 kB |
51x 289 ms |
11. bun | -64% 61.84 kB |
-45% 19.86 kB |
3x 18 ms |
12. tedivm/jshrink | -44% 97.63 kB |
-31% 25.00 kB |
50x 282 ms |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "jquery v3.5.1"
x-axis ["Original",1,2,3,4,5,6,7,8,9,10,11,12]
y-axis "Gzip size" 0 --> 84498
bar [84498,30856,30866,30903,30969,31446,31470,31555,31799,31954,32653,33092,40879]
Artifact | Original size | Gzip size | |
---|---|---|---|
jquery v3.5.1 (Source) | 287.63 kB |
84.50 kB |
|
Minifier | Minified size | Minzipped size | Time |
1. terser | -69% 89.24 kB |
🏆-63% 30.86 kB |
116x 921 ms |
2. @swc/core | -69% 89.17 kB |
-63% 30.87 kB |
6x 52 ms |
3. uglify-js | 🏆-69% 88.45 kB |
-63% 30.90 kB |
202x 1,593 ms |
4. oxc-minify | -69% 89.33 kB |
-63% 30.97 kB |
2x 16 ms |
5. @tdewolff/minify | -69% 89.68 kB |
-63% 31.45 kB |
🏆 8 ms |
6. uglify-js (no compress) | -67% 94.08 kB |
-63% 31.47 kB |
39x 314 ms |
7. terser (no compress) | -67% 94.26 kB |
-63% 31.56 kB |
47x 373 ms |
8. babel-minify | -68% 92.10 kB |
-62% 31.80 kB |
304x 2,398 ms |
9. esbuild | -69% 90.07 kB |
-62% 31.95 kB |
4x 35 ms |
10. bun | -68% 92.55 kB |
-61% 32.65 kB |
3x 28 ms |
11. google-closure-compiler | -68% 92.73 kB |
-61% 33.09 kB |
517x 4,073 ms |
12. tedivm/jshrink | -50% 144.14 kB |
-52% 40.88 kB |
46x 363 ms |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "vue v2.6.12"
x-axis ["Original",1,2,3,4,5,6,7,8,9,10,11,12]
y-axis "Gzip size" 0 --> 89668
bar [89668,42730,42870,43036,43343,43925,44184,44358,44368,44450,44636,45400,57169]
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.69 kB |
🏆-52% 42.73 kB |
5x 72 ms |
2. terser | -66% 116.60 kB |
-52% 42.87 kB |
87x 1,143 ms |
3. uglify-js | 🏆-67% 113.80 kB |
-52% 43.04 kB |
168x 2,206 ms |
4. oxc-minify | -66% 117.22 kB |
-52% 43.34 kB |
1x 20 ms |
5. babel-minify | -66% 117.90 kB |
-51% 43.93 kB |
206x 2,696 ms |
6. google-closure-compiler | -66% 115.61 kB |
-51% 44.18 kB |
363x 4,745 ms |
7. @tdewolff/minify | -66% 117.69 kB |
-51% 44.36 kB |
🏆 13 ms |
8. esbuild | -65% 118.14 kB |
-51% 44.37 kB |
3x 42 ms |
9. uglify-js (no compress) | -63% 126.14 kB |
-50% 44.45 kB |
27x 364 ms |
10. terser (no compress) | -63% 126.39 kB |
-50% 44.64 kB |
33x 442 ms |
11. bun | -64% 121.50 kB |
-49% 45.40 kB |
2x 31 ms |
12. tedivm/jshrink | -42% 197.36 kB |
-36% 57.17 kB |
36x 479 ms |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "lodash v4.17.21"
x-axis ["Original",1,2,3,4,5,6,7,8,9,10,11,12]
y-axis "Gzip size" 0 --> 96690
bar [96690,24686,25022,25152,25240,25503,25862,25979,26187,26200,26498,26655,36327]
Artifact | Original size | Gzip size | |
---|---|---|---|
lodash v4.17.21 (Source) | 544.09 kB |
96.69 kB |
|
Minifier | Minified size | Minzipped size | Time |
1. uglify-js | 🏆-87% 68.17 kB |
🏆-74% 24.69 kB |
142x 1,689 ms |
2. google-closure-compiler | -86% 73.50 kB |
-74% 25.02 kB |
360x 4,265 ms |
3. terser | -87% 70.41 kB |
-74% 25.15 kB |
87x 1,028 ms |
4. @swc/core | -87% 69.81 kB |
-74% 25.24 kB |
4x 56 ms |
5. babel-minify | -87% 72.37 kB |
-74% 25.50 kB |
176x 2,083 ms |
6. uglify-js (no compress) | -86% 74.61 kB |
-73% 25.86 kB |
28x 333 ms |
7. oxc-minify | -87% 71.38 kB |
-73% 25.98 kB |
1x 15 ms |
8. terser (no compress) | -86% 75.04 kB |
-73% 26.19 kB |
33x 393 ms |
9. esbuild | -87% 72.48 kB |
-73% 26.20 kB |
2x 32 ms |
10. @tdewolff/minify | -87% 71.90 kB |
-73% 26.50 kB |
🏆 12 ms |
11. bun | -87% 73.45 kB |
-72% 26.66 kB |
1x 23 ms |
12. tedivm/jshrink | -73% 148.78 kB |
-62% 36.33 kB |
30x 365 ms |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "d3 v6.3.1"
x-axis ["Original",1,2,3,4,5,6,7,8,9,10]
y-axis "Gzip size" 0 --> 130686
bar [130686,87016,87205,87997,88148,88319,89069,89882,90800,92395,94166]
Artifact | Original size | Gzip size | |
---|---|---|---|
d3 v6.3.1 (Source) | 555.77 kB |
130.69 kB |
|
Minifier | Minified size | Minzipped size | Time |
1. uglify-js | 🏆-53% 263.56 kB |
🏆-33% 87.02 kB |
121x 3,927 ms |
2. @swc/core | -52% 265.22 kB |
-33% 87.21 kB |
4x 152 ms |
3. terser | -52% 267.42 kB |
-33% 88.00 kB |
72x 2,338 ms |
4. oxc-minify | -51% 270.83 kB |
-33% 88.15 kB |
1x 46 ms |
5. uglify-js (no compress) | -50% 275.35 kB |
-32% 88.32 kB |
21x 711 ms |
6. terser (no compress) | -50% 276.13 kB |
-32% 89.07 kB |
31x 1,020 ms |
7. @tdewolff/minify | -52% 269.35 kB |
-31% 89.88 kB |
🏆 32 ms |
8. esbuild | -51% 270.13 kB |
-31% 90.80 kB |
2x 72 ms |
9. bun | -51% 273.41 kB |
-29% 92.40 kB |
1x 46 ms |
10. google-closure-compiler | -51% 270.32 kB |
-28% 94.17 kB |
204x 6,621 ms |
11. babel-minify ❌ Minification | ❌ | ❌ | - |
12. tedivm/jshrink ❌ Minification | ❌ | ❌ | - |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "terser v5.30.3"
x-axis ["Original",1,2,3,4,5,6,7,8,9,10,11]
y-axis "Gzip size" 0 --> 193763
bar [193763,122353,123259,123334,123346,124253,124609,124885,126454,126707,127653,145178]
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% 440.17 kB |
🏆-37% 122.35 kB |
1x 47 ms |
2. @swc/core | -55% 455.52 kB |
-36% 123.26 kB |
4x 142 ms |
3. uglify-js | -55% 451.19 kB |
-36% 123.33 kB |
108x 3,787 ms |
4. terser | -55% 456.59 kB |
-36% 123.35 kB |
64x 2,227 ms |
5. terser (no compress) | -53% 472.58 kB |
-36% 124.25 kB |
27x 966 ms |
6. uglify-js (no compress) | -53% 472.16 kB |
-36% 124.61 kB |
22x 778 ms |
7. @tdewolff/minify | -55% 456.59 kB |
-36% 124.89 kB |
🏆 35 ms |
8. google-closure-compiler | 🏆-56% 439.97 kB |
-35% 126.45 kB |
174x 6,050 ms |
9. esbuild | -55% 458.89 kB |
-35% 126.71 kB |
1x 61 ms |
10. bun | -54% 466.80 kB |
-34% 127.65 kB |
1x 42 ms |
11. tedivm/jshrink | -37% 633.71 kB |
-25% 145.18 kB |
38x 1,341 ms |
12. babel-minify ❌ Minification | ❌ | ❌ | - |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "three v0.124.0"
x-axis ["Original",1,2,3,4,5,6,7,8,9,10,11]
y-axis "Gzip size" 0 --> 248267
bar [248267,158751,159071,159165,160826,162771,163036,163181,163725,164610,166210,193471]
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% 643.03 kB |
🏆-36% 158.75 kB |
4x 231 ms |
2. uglify-js | 🏆-49% 641.59 kB |
-36% 159.07 kB |
101x 5,046 ms |
3. terser | -48% 653.18 kB |
-36% 159.17 kB |
59x 2,985 ms |
4. oxc-minify | -48% 647.00 kB |
-35% 160.83 kB |
1x 74 ms |
5. google-closure-compiler | -48% 644.52 kB |
-34% 162.77 kB |
157x 7,833 ms |
6. uglify-js (no compress) | -46% 674.49 kB |
-34% 163.04 kB |
19x 994 ms |
7. terser (no compress) | -46% 675.43 kB |
-34% 163.18 kB |
25x 1,294 ms |
8. esbuild | -48% 646.76 kB |
-34% 163.73 kB |
1x 89 ms |
9. @tdewolff/minify | -48% 642.46 kB |
-34% 164.61 kB |
🏆 50 ms |
10. bun | -47% 655.93 kB |
-33% 166.21 kB |
1x 56 ms |
11. tedivm/jshrink | -24% 952.01 kB |
-22% 193.47 kB |
34x 1,715 ms |
12. babel-minify ❌ Timed out | - | - | +10,000 ms |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "victory v35.8.4"
x-axis ["Original",1,2,3,4,5,6,7,8,9]
y-axis "Gzip size" 0 --> 309942
bar [309942,157435,157765,158459,162254,165014,166176,167579,181071,182671]
Artifact | Original size | Gzip size | |
---|---|---|---|
victory v35.8.4 (Source) | 2.13 MB |
309.94 kB |
|
Minifier | Minified size | Minzipped size | Time |
1. uglify-js | 🏆-67% 694.78 kB |
🏆-49% 157.44 kB |
120x 6,579 ms |
2. @swc/core | -67% 706.01 kB |
-49% 157.77 kB |
6x 345 ms |
3. terser | -67% 712.87 kB |
-49% 158.46 kB |
73x 4,042 ms |
4. oxc-minify | -66% 716.12 kB |
-48% 162.25 kB |
1x 100 ms |
5. @tdewolff/minify | -66% 717.07 kB |
-47% 165.01 kB |
🏆 55 ms |
6. terser (no compress) | -65% 756.62 kB |
-46% 166.18 kB |
28x 1,573 ms |
7. uglify-js (no compress) | -65% 756.53 kB |
-46% 167.58 kB |
23x 1,314 ms |
8. esbuild | -66% 724.14 kB |
-42% 181.07 kB |
2x 123 ms |
9. bun | -66% 727.90 kB |
-41% 182.67 kB |
1x 81 ms |
10. google-closure-compiler ❌ Timed out | - | - | +10,000 ms |
11. babel-minify ❌ Minification | ❌ | ❌ | - |
12. tedivm/jshrink ❌ Post-validation | ❌ | ❌ | - |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "echarts v5.1.1"
x-axis ["Original",1,2,3,4,5,6,7,8]
y-axis "Gzip size" 0 --> 684611
bar [684611,321112,321556,324581,330348,331412,331563,331847,337934]
Artifact | Original size | Gzip size | |
---|---|---|---|
echarts v5.1.1 (Source) | 3.20 MB |
684.61 kB |
|
Minifier | Minified size | Minzipped size | Time |
1. @swc/core | 🏆-69% 994.07 kB |
🏆-53% 321.11 kB |
6x 727 ms |
2. terser | -69% 998.45 kB |
-53% 321.56 kB |
50x 6,086 ms |
3. oxc-minify | -69% 1.01 MB |
-53% 324.58 kB |
1x 216 ms |
4. terser (no compress) | -67% 1.07 MB |
-52% 330.35 kB |
22x 2,684 ms |
5. uglify-js (no compress) | -67% 1.07 MB |
-52% 331.41 kB |
14x 1,756 ms |
6. esbuild | -68% 1.01 MB |
-52% 331.56 kB |
1x 193 ms |
7. @tdewolff/minify | -68% 1.01 MB |
-52% 331.85 kB |
🏆 121 ms |
8. bun | -68% 1.02 MB |
-51% 337.93 kB |
1x 127 ms |
9. babel-minify ❌ Timed out | - | - | +10,000 ms |
10. uglify-js ❌ Timed out | - | - | +10,000 ms |
11. google-closure-compiler ❌ Timed out | - | - | +10,000 ms |
12. tedivm/jshrink ❌ Minification | ❌ | ❌ | - |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "antd v4.16.1"
x-axis ["Original",1,2,3,4,5,6,7,8]
y-axis "Gzip size" 0 --> 825175
bar [825175,452399,457352,460512,471791,474973,478572,488279,491833]
Artifact | Original size | Gzip size | |
---|---|---|---|
antd v4.16.1 (Source) | 6.67 MB |
825.18 kB |
|
Minifier | Minified size | Minzipped size | Time |
1. @swc/core | 🏆-68% 2.15 MB |
🏆-45% 452.40 kB |
6x 963 ms |
2. terser | -66% 2.24 MB |
-45% 457.35 kB |
50x 7,180 ms |
3. oxc-minify | -66% 2.25 MB |
-44% 460.51 kB |
2x 320 ms |
4. @tdewolff/minify | -66% 2.29 MB |
-43% 471.79 kB |
🏆 141 ms |
5. terser (no compress) | -64% 2.42 MB |
-42% 474.97 kB |
22x 3,144 ms |
6. uglify-js (no compress) | -64% 2.42 MB |
-42% 478.57 kB |
17x 2,525 ms |
7. esbuild | -65% 2.31 MB |
-41% 488.28 kB |
2x 302 ms |
8. bun | -66% 2.30 MB |
-40% 491.83 kB |
1x 172 ms |
9. babel-minify ❌ Timed out | - | - | +10,000 ms |
10. tedivm/jshrink ❌ Timed out | - | - | +10,000 ms |
11. uglify-js ❌ Timed out | - | - | +10,000 ms |
12. google-closure-compiler ❌ Timed out | - | - | +10,000 ms |
---
config:
xyChart:
width: 720
height: 360
xAxis:
labelPadding: 20
yAxis:
labelPadding: 10
---
xychart-beta
title "typescript v4.9.5"
x-axis ["Original",1,2,3,4,5,6]
y-axis "Gzip size" 0 --> 1884998
bar [1884998,859082,860660,875817,876535,878642,915551]
Artifact | Original size | Gzip size | |
---|---|---|---|
typescript v4.9.5 (Source) | 10.95 MB |
1.88 MB |
|
Minifier | Minified size | Minzipped size | Time |
1. @swc/core | 🏆-70% 3.31 MB |
🏆-54% 859.08 kB |
7x 1,961 ms |
2. oxc-minify | -69% 3.35 MB |
-54% 860.66 kB |
2x 577 ms |
3. @tdewolff/minify | -69% 3.35 MB |
-54% 875.82 kB |
🏆 259 ms |
4. uglify-js (no compress) | -68% 3.54 MB |
-53% 876.54 kB |
15x 4,029 ms |
5. terser (no compress) | -68% 3.53 MB |
-53% 878.64 kB |
20x 5,316 ms |
6. esbuild | -68% 3.49 MB |
-51% 915.55 kB |
1x 484 ms |
7. terser ❌ Timed out | - | - | +10,000 ms |
8. babel-minify ❌ Timed out | - | - | +10,000 ms |
9. uglify-js ❌ Timed out | - | - | +10,000 ms |
10. tedivm/jshrink ❌ Timed out | - | - | +10,000 ms |
11. google-closure-compiler ❌ Timed out | - | - | +10,000 ms |
12. bun ❌ Post-validation | ❌ | ❌ | - |
Note
🤖 This analysis is AI generated
The minification battle royale has reached its thrilling end! Twelve minifiers tested their mettle across gigantic libraries and demanding benchmarks. Some emerged victorious, others crumbled under the pressure. Let’s dive into the highlights and crown the ultimate champion!
The crown goes to @swc/core! Why, you ask? It delivered **near-top compression (often within 1% of the best) and a jaw-dropping speed advantage. For example:
- In "react": 42% reduction in just 14 ms!
- Crushed "antd" (825 kB) in under 1 second—the closest rival (oxc-minify) needed more time for worse compression!
- With "typescript", it cleaned 46% while managing an impressive 1.96-second finish, blitzing past delayed competitors.
Hard-hitting yet stunningly efficient, @swc/core strikes a beautiful balance between size and speed. A no-brainer for modern developers who hate waiting.
Several contenders deserve a shoutout for excelling in specific areas:
-
Uglify-js
The compression king, with an edge for the most compact gzip sizes in 5 out of 12 rounds (including heavyweights like lodash and d3). But it’s slow—requiring several seconds or even timing out entirely when things scaled up.
Best for: Size-above-everything scenarios where time budget isn’t a constraint. -
Terser
Trails closely behind uglify-js with excellent compression (~2% drop-off at most) yet breaks the “speed sound barrier,” cutting its runtime in half or more.
Best for: Balanced compression and reasonable speed. -
oxc-minify
This relative newcomer shocked everyone with blazing fast times (often at or near the top)! Its compression is quite good, though it lags behind the best by a small percentage point.
Best for: Immediate performance needs where good size savings suffice (e.g., frontend tooling on-the-fly). -
@tdewolff/minify
A shockingly speed-obsessed competitor claiming "fastest minifier" in 8 out of 12 rounds. However, its compression leaves an extra 1-3%, so you give up savings for that lightning speed.
Best for: Real-time applications (e.g., server-side or CI pipelines needing raw speed).
Some minifiers tapped out or stumbled hard during battle. Proceed with caution—they might corrupt your code!
-
babel-minify
Exploded spectacularly on "d3" due to "Cannot read properties of undefined" errors. Yikes! It feels abandoned.
Avoid unless masochistic. -
tedivm/jshrink
Struggled with modern JavaScript syntax, choking on unclosed regex patterns. Beware—this one might not even survive basic production workloads. -
bun
Delivered great speed, but post-validation revealed newline differences that compromised correctness.
It’s promising, but needs more polish for serious tasks.
What an absolute showdown! Every challenger had something to prove, whether it was utmost compression (cough uglify-js), uncompromising speed (props to @tdewolff/minify), or the perfect blend (hats off @swc/core). Congratulations to the winners, and to devs everywhere—use this analysis wisely to pick the perfect tool for your needs!