Home

Awesome

<p align="center"> <img width="160" src=".github/logo.webp"> </p> <h1 align="center"> <sup>minification benchmarks</sup> </h1>

What's the best JavaScript minifier?

This project benchmarks the following minifiers:

<!-- minifiers:start --> <!-- minifiers:end -->

Benchmarks last updated on <!-- lastUpdated:start -->Nov 4, 2024<!-- lastUpdated:end -->.

<br> <p align="center"> <a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=398771"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/donate.webp"></a> <a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=397608"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/sponsor.webp"></a> </p>

🙋‍♂️ Why?

  1. To help you pick a minifier that fits your needs
  2. To promote JS minifiers and document their performances
  3. To encourage healthy competition and improvement amongst minifiers

👟 Methodology

⏱ Metrics

Minifiers are ranked by smallest minzipped size.

Minified size

Size of the minified output.

Minzipped size

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.

Time

How long minification took (average of 5 runs). Each time is annotated with a multiplier relative to the fastest minifier.

📋 Results

<!-- benchmarks:start -->
---
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]
	y-axis "Gzip size" 0 --> 19385
	bar [19385,8173,8177,8193,8265,8448,8543,8631,8651,8668,8746,11040]
<div align="center">
ArtifactOriginal sizeGzip size
react v17.0.2 (Source)72.13 kB19.39 kB
MinifierMinified sizeMinzipped sizeTime
1. @swc/core<sup>-68% </sup>22.87 kB<sup>🏆-58% </sup>8.17 kB<sup>7x </sup>21 ms
2. uglify-js<sup>🏆-69% </sup>22.64 kB<sup>-58% </sup>8.18 kB<sup>191x </sup>536 ms
3. google-closure-compiler<sup>-68% </sup>22.83 kB<sup>-58% </sup>8.19 kB<sup>1167x </sup>3,269 ms
4. terser<sup>-68% </sup>23.07 kB<sup>-57% </sup>8.27 kB<sup>98x </sup>275 ms
5. babel-minify<sup>-67% </sup>23.60 kB<sup>-56% </sup>8.45 kB<sup>210x </sup>590 ms
6. esbuild<sup>-67% </sup>23.70 kB<sup>-56% </sup>8.54 kB<sup>4x </sup>13 ms
7. @tdewolff/minify<sup>-67% </sup>23.53 kB<sup>-55% </sup>8.63 kB<sup>🏆 </sup>3 ms
8. bun<sup>-67% </sup>24.01 kB<sup>-55% </sup>8.65 kB<sup>5x </sup>15 ms
9. uglify-js (no compress)<sup>-65% </sup>25.03 kB<sup>-55% </sup>8.67 kB<sup>33x </sup>95 ms
10. terser (no compress)<sup>-65% </sup>25.08 kB<sup>-55% </sup>8.75 kB<sup>43x </sup>122 ms
11. tedivm/jshrink<sup>-43% </sup>40.82 kB<sup>-43% </sup>11.04 kB<sup>37x </sup>105 ms
</div>
---
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]
	y-axis "Gzip size" 0 --> 36231
	bar [36231,18568,18687,18690,18910,19119,19334,19496,19569,19683,19850,24998]
<div align="center">
ArtifactOriginal sizeGzip size
moment v2.29.1 (Source)173.90 kB36.23 kB
MinifierMinified sizeMinzipped sizeTime
1. uglify-js<sup>🏆-67% </sup>57.73 kB<sup>🏆-49% </sup>18.57 kB<sup>223x </sup>1,181 ms
2. @swc/core<sup>-67% </sup>58.21 kB<sup>-48% </sup>18.69 kB<sup>9x </sup>50 ms
3. terser<sup>-66% </sup>59.14 kB<sup>-48% </sup>18.69 kB<sup>129x </sup>681 ms
4. google-closure-compiler<sup>-66% </sup>58.27 kB<sup>-48% </sup>18.91 kB<sup>730x </sup>3,856 ms
5. babel-minify<sup>-66% </sup>59.70 kB<sup>-47% </sup>19.12 kB<sup>259x </sup>1,367 ms
6. esbuild<sup>-66% </sup>59.82 kB<sup>-47% </sup>19.33 kB<sup>3x </sup>18 ms
7. @tdewolff/minify<sup>-66% </sup>59.95 kB<sup>-46% </sup>19.50 kB<sup>🏆 </sup>5 ms
8. uglify-js (no compress)<sup>-64% </sup>62.50 kB<sup>-46% </sup>19.57 kB<sup>41x </sup>217 ms
9. terser (no compress)<sup>-64% </sup>63.15 kB<sup>-46% </sup>19.68 kB<sup>53x </sup>280 ms
10. bun<sup>-64% </sup>61.84 kB<sup>-45% </sup>19.85 kB<sup>3x </sup>18 ms
11. tedivm/jshrink<sup>-44% </sup>97.63 kB<sup>-31% </sup>25.00 kB<sup>46x </sup>246 ms
</div>
---
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]
	y-axis "Gzip size" 0 --> 84498
	bar [84498,30867,30903,30912,31468,31470,31621,31799,31954,32630,33086,40879]
<div align="center">
ArtifactOriginal sizeGzip size
jquery v3.5.1 (Source)287.63 kB84.50 kB
MinifierMinified sizeMinzipped sizeTime
1. @swc/core<sup>-69% </sup>89.15 kB<sup>🏆-63% </sup>30.87 kB<sup>10x </sup>90 ms
2. uglify-js<sup>🏆-69% </sup>88.45 kB<sup>-63% </sup>30.90 kB<sup>191x </sup>1,639 ms
3. terser<sup>-69% </sup>89.54 kB<sup>-63% </sup>30.91 kB<sup>106x </sup>917 ms
4. @tdewolff/minify<sup>-69% </sup>89.85 kB<sup>-63% </sup>31.47 kB<sup>🏆 </sup>9 ms
5. uglify-js (no compress)<sup>-67% </sup>94.08 kB<sup>-63% </sup>31.47 kB<sup>37x </sup>324 ms
6. terser (no compress)<sup>-67% </sup>94.55 kB<sup>-63% </sup>31.62 kB<sup>42x </sup>364 ms
7. babel-minify<sup>-68% </sup>92.10 kB<sup>-62% </sup>31.80 kB<sup>262x </sup>2,255 ms
8. esbuild<sup>-69% </sup>90.07 kB<sup>-62% </sup>31.95 kB<sup>4x </sup>36 ms
9. bun<sup>-68% </sup>92.56 kB<sup>-61% </sup>32.63 kB<sup>3x </sup>28 ms
10. google-closure-compiler<sup>-68% </sup>92.70 kB<sup>-61% </sup>33.09 kB<sup>508x </sup>4,363 ms
11. tedivm/jshrink<sup>-50% </sup>144.14 kB<sup>-52% </sup>40.88 kB<sup>36x </sup>315 ms
</div>
---
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]
	y-axis "Gzip size" 0 --> 89668
	bar [89668,42515,42919,43036,43925,44230,44368,44376,44450,44679,45340,57169]
<div align="center">
ArtifactOriginal sizeGzip size
vue v2.6.12 (Source)342.15 kB89.67 kB
MinifierMinified sizeMinzipped sizeTime
1. @swc/core<sup>-66% </sup>115.50 kB<sup>🏆-53% </sup>42.52 kB<sup>9x </sup>126 ms
2. terser<sup>-66% </sup>116.80 kB<sup>-52% </sup>42.92 kB<sup>85x </sup>1,131 ms
3. uglify-js<sup>🏆-67% </sup>113.80 kB<sup>-52% </sup>43.04 kB<sup>172x </sup>2,282 ms
4. babel-minify<sup>-66% </sup>117.90 kB<sup>-51% </sup>43.93 kB<sup>187x </sup>2,476 ms
5. google-closure-compiler<sup>-66% </sup>115.61 kB<sup>-51% </sup>44.23 kB<sup>356x </sup>4,717 ms
6. esbuild<sup>-65% </sup>118.14 kB<sup>-51% </sup>44.37 kB<sup>3x </sup>41 ms
7. @tdewolff/minify<sup>-66% </sup>117.81 kB<sup>-51% </sup>44.38 kB<sup>🏆 </sup>13 ms
8. uglify-js (no compress)<sup>-63% </sup>126.14 kB<sup>-50% </sup>44.45 kB<sup>28x </sup>375 ms
9. terser (no compress)<sup>-63% </sup>126.58 kB<sup>-50% </sup>44.68 kB<sup>33x </sup>446 ms
10. bun<sup>-64% </sup>121.70 kB<sup>-49% </sup>45.34 kB<sup>2x </sup>32 ms
11. tedivm/jshrink<sup>-42% </sup>197.36 kB<sup>-36% </sup>57.17 kB<sup>31x </sup>416 ms
</div>
---
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]
	y-axis "Gzip size" 0 --> 96690
	bar [96690,24686,24972,25156,25186,25503,25862,26200,26221,26469,26498,36327]
<div align="center">
ArtifactOriginal sizeGzip size
lodash v4.17.21 (Source)544.09 kB96.69 kB
MinifierMinified sizeMinzipped sizeTime
1. uglify-js<sup>🏆-87% </sup>68.17 kB<sup>🏆-74% </sup>24.69 kB<sup>146x </sup>1,756 ms
2. google-closure-compiler<sup>-86% </sup>73.47 kB<sup>-74% </sup>24.97 kB<sup>386x </sup>4,633 ms
3. @swc/core<sup>-87% </sup>69.84 kB<sup>-74% </sup>25.16 kB<sup>9x </sup>112 ms
4. terser<sup>-87% </sup>70.67 kB<sup>-74% </sup>25.19 kB<sup>78x </sup>947 ms
5. babel-minify<sup>-87% </sup>72.37 kB<sup>-74% </sup>25.50 kB<sup>161x </sup>1,940 ms
6. uglify-js (no compress)<sup>-86% </sup>74.61 kB<sup>-73% </sup>25.86 kB<sup>28x </sup>341 ms
7. esbuild<sup>-87% </sup>72.48 kB<sup>-73% </sup>26.20 kB<sup>2x </sup>29 ms
8. terser (no compress)<sup>-86% </sup>75.29 kB<sup>-73% </sup>26.22 kB<sup>31x </sup>377 ms
9. bun<sup>-86% </sup>74.11 kB<sup>-73% </sup>26.47 kB<sup>1x </sup>24 ms
10. @tdewolff/minify<sup>-87% </sup>71.90 kB<sup>-73% </sup>26.50 kB<sup>🏆 </sup>12 ms
11. tedivm/jshrink<sup>-73% </sup>148.78 kB<sup>-62% </sup>36.33 kB<sup>27x </sup>328 ms
</div>
---
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]
	y-axis "Gzip size" 0 --> 130686
	bar [130686,87016,87207,88087,88319,89156,89891,90800,92372,94121]
<div align="center">
ArtifactOriginal sizeGzip size
d3 v6.3.1 (Source)555.77 kB130.69 kB
MinifierMinified sizeMinzipped sizeTime
1. uglify-js<sup>🏆-53% </sup>263.56 kB<sup>🏆-33% </sup>87.02 kB<sup>116x </sup>4,067 ms
2. @swc/core<sup>-52% </sup>265.26 kB<sup>-33% </sup>87.21 kB<sup>7x </sup>275 ms
3. terser<sup>-52% </sup>267.77 kB<sup>-33% </sup>88.09 kB<sup>65x </sup>2,290 ms
4. uglify-js (no compress)<sup>-50% </sup>275.35 kB<sup>-32% </sup>88.32 kB<sup>21x </sup>749 ms
5. terser (no compress)<sup>-50% </sup>276.47 kB<sup>-32% </sup>89.16 kB<sup>29x </sup>1,016 ms
6. @tdewolff/minify<sup>-51% </sup>269.93 kB<sup>-31% </sup>89.89 kB<sup>🏆 </sup>35 ms
7. esbuild<sup>-51% </sup>270.13 kB<sup>-31% </sup>90.80 kB<sup>2x </sup>70 ms
8. bun<sup>-51% </sup>273.42 kB<sup>-29% </sup>92.37 kB<sup>1x </sup>49 ms
9. google-closure-compiler<sup>-51% </sup>270.30 kB<sup>-28% </sup>94.12 kB<sup>203x </sup>7,110 ms
10. babel-minify <sub title="Failed: minification">❌ Minification</sub>-
11. tedivm/jshrink <sub title="Failed: minification">❌ Minification</sub>-
</div>
---
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]
	y-axis "Gzip size" 0 --> 193763
	bar [193763,123089,123334,123482,124428,124609,124897,126562,126706,127547,145178]
<div align="center">
ArtifactOriginal sizeGzip size
terser v5.30.3 (Source)1.01 MB193.76 kB
MinifierMinified sizeMinzipped sizeTime
1. @swc/core<sup>-55% </sup>455.59 kB<sup>🏆-36% </sup>123.09 kB<sup>7x </sup>239 ms
2. uglify-js<sup>-55% </sup>451.19 kB<sup>-36% </sup>123.33 kB<sup>124x </sup>3,878 ms
3. terser<sup>-55% </sup>458.29 kB<sup>-36% </sup>123.48 kB<sup>70x </sup>2,186 ms
4. terser (no compress)<sup>-53% </sup>474.40 kB<sup>-36% </sup>124.43 kB<sup>31x </sup>969 ms
5. uglify-js (no compress)<sup>-53% </sup>472.16 kB<sup>-36% </sup>124.61 kB<sup>25x </sup>790 ms
6. @tdewolff/minify<sup>-55% </sup>456.70 kB<sup>-36% </sup>124.90 kB<sup>🏆 </sup>31 ms
7. google-closure-compiler<sup>🏆-56% </sup>439.95 kB<sup>-35% </sup>126.56 kB<sup>213x </sup>6,631 ms
8. esbuild<sup>-55% </sup>458.89 kB<sup>-35% </sup>126.71 kB<sup>2x </sup>62 ms
9. bun<sup>-54% </sup>466.95 kB<sup>-34% </sup>127.55 kB<sup>1x </sup>45 ms
10. tedivm/jshrink<sup>-37% </sup>633.71 kB<sup>-25% </sup>145.18 kB<sup>38x </sup>1,185 ms
11. babel-minify <sub title="Failed: minification">❌ Minification</sub>-
</div>
---
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]
	y-axis "Gzip size" 0 --> 248267
	bar [248267,158497,159071,159198,162998,163036,163198,163725,164737,166430,193471]
<div align="center">
ArtifactOriginal sizeGzip size
three v0.124.0 (Source)1.25 MB248.27 kB
MinifierMinified sizeMinzipped sizeTime
1. @swc/core<sup>-48% </sup>645.27 kB<sup>🏆-36% </sup>158.50 kB<sup>7x </sup>363 ms
2. uglify-js<sup>🏆-49% </sup>641.59 kB<sup>-36% </sup>159.07 kB<sup>105x </sup>5,130 ms
3. terser<sup>-48% </sup>653.25 kB<sup>-36% </sup>159.20 kB<sup>60x </sup>2,951 ms
4. google-closure-compiler<sup>-48% </sup>644.45 kB<sup>-34% </sup>163.00 kB<sup>169x </sup>8,208 ms
5. uglify-js (no compress)<sup>-46% </sup>674.49 kB<sup>-34% </sup>163.04 kB<sup>20x </sup>1,015 ms
6. terser (no compress)<sup>-46% </sup>675.50 kB<sup>-34% </sup>163.20 kB<sup>26x </sup>1,293 ms
7. esbuild<sup>-48% </sup>646.76 kB<sup>-34% </sup>163.73 kB<sup>1x </sup>91 ms
8. @tdewolff/minify<sup>-48% </sup>644.55 kB<sup>-34% </sup>164.74 kB<sup>🏆 </sup>48 ms
9. bun<sup>-47% </sup>662.49 kB<sup>-33% </sup>166.43 kB<sup>1x </sup>57 ms
10. tedivm/jshrink<sup>-24% </sup>952.01 kB<sup>-22% </sup>193.47 kB<sup>31x </sup>1,519 ms
11. babel-minify <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
</div>
---
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]
	y-axis "Gzip size" 0 --> 309942
	bar [309942,157435,158055,158706,165131,166386,167579,181071,182626]
<div align="center">
ArtifactOriginal sizeGzip size
victory v35.8.4 (Source)2.13 MB309.94 kB
MinifierMinified sizeMinzipped sizeTime
1. uglify-js<sup>🏆-67% </sup>694.78 kB<sup>🏆-49% </sup>157.44 kB<sup>120x </sup>6,627 ms
2. @swc/core<sup>-67% </sup>712.61 kB<sup>-49% </sup>158.06 kB<sup>9x </sup>519 ms
3. terser<sup>-66% </sup>715.58 kB<sup>-49% </sup>158.71 kB<sup>72x </sup>3,991 ms
4. @tdewolff/minify<sup>-66% </sup>718.73 kB<sup>-47% </sup>165.13 kB<sup>🏆 </sup>55 ms
5. terser (no compress)<sup>-64% </sup>759.34 kB<sup>-46% </sup>166.39 kB<sup>28x </sup>1,599 ms
6. uglify-js (no compress)<sup>-65% </sup>756.53 kB<sup>-46% </sup>167.58 kB<sup>24x </sup>1,345 ms
7. esbuild<sup>-66% </sup>724.14 kB<sup>-42% </sup>181.07 kB<sup>2x </sup>122 ms
8. bun<sup>-66% </sup>727.99 kB<sup>-41% </sup>182.63 kB<sup>1x </sup>80 ms
9. google-closure-compiler <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
10. babel-minify <sub title="Failed: minification">❌ Minification</sub>-
11. tedivm/jshrink <sub title="Failed: post-validation">❌ Post-validation</sub>-
</div>
---
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]
	y-axis "Gzip size" 0 --> 684611
	bar [684611,320265,321987,330736,331412,331563,331791,337695]
<div align="center">
ArtifactOriginal sizeGzip size
echarts v5.1.1 (Source)3.20 MB684.61 kB
MinifierMinified sizeMinzipped sizeTime
1. @swc/core<sup>🏆-69% </sup>993.25 kB<sup>🏆-53% </sup>320.27 kB<sup>8x </sup>1,009 ms
2. terser<sup>-69% </sup>1.00 MB<sup>-53% </sup>321.99 kB<sup>52x </sup>6,107 ms
3. terser (no compress)<sup>-66% </sup>1.07 MB<sup>-52% </sup>330.74 kB<sup>23x </sup>2,692 ms
4. uglify-js (no compress)<sup>-67% </sup>1.07 MB<sup>-52% </sup>331.41 kB<sup>15x </sup>1,776 ms
5. esbuild<sup>-68% </sup>1.01 MB<sup>-52% </sup>331.56 kB<sup>1x </sup>198 ms
6. @tdewolff/minify<sup>-68% </sup>1.01 MB<sup>-52% </sup>331.79 kB<sup>🏆 </sup>117 ms
7. bun<sup>-68% </sup>1.03 MB<sup>-51% </sup>337.70 kB<sup>1x </sup>133 ms
8. babel-minify <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
9. google-closure-compiler <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
10. uglify-js <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
11. tedivm/jshrink <sub title="Failed: minification">❌ Minification</sub>-
</div>
---
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]
	y-axis "Gzip size" 0 --> 825175
	bar [825175,454517,457786,472044,475480,478572,488279,491746]
<div align="center">
ArtifactOriginal sizeGzip size
antd v4.16.1 (Source)6.67 MB825.18 kB
MinifierMinified sizeMinzipped sizeTime
1. @swc/core<sup>🏆-67% </sup>2.18 MB<sup>🏆-45% </sup>454.52 kB<sup>9x </sup>1,269 ms
2. terser<sup>-66% </sup>2.25 MB<sup>-45% </sup>457.79 kB<sup>51x </sup>6,979 ms
3. @tdewolff/minify<sup>-66% </sup>2.30 MB<sup>-43% </sup>472.04 kB<sup>🏆 </sup>136 ms
4. terser (no compress)<sup>-64% </sup>2.43 MB<sup>-42% </sup>475.48 kB<sup>22x </sup>3,108 ms
5. uglify-js (no compress)<sup>-64% </sup>2.42 MB<sup>-42% </sup>478.57 kB<sup>18x </sup>2,504 ms
6. esbuild<sup>-65% </sup>2.31 MB<sup>-41% </sup>488.28 kB<sup>2x </sup>294 ms
7. bun<sup>-66% </sup>2.30 MB<sup>-40% </sup>491.75 kB<sup>1x </sup>185 ms
8. babel-minify <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
9. google-closure-compiler <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
10. tedivm/jshrink <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
11. uglify-js <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
</div>
---
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]
	y-axis "Gzip size" 0 --> 1884998
	bar [1884998,851747,876535,876658,879301,915495]
<div align="center">
ArtifactOriginal sizeGzip size
typescript v4.9.5 (Source)10.95 MB1.88 MB
MinifierMinified sizeMinzipped sizeTime
1. @swc/core<sup>🏆-70% </sup>3.31 MB<sup>🏆-55% </sup>851.75 kB<sup>9x </sup>2,621 ms
2. uglify-js (no compress)<sup>-68% </sup>3.54 MB<sup>-53% </sup>876.54 kB<sup>14x </sup>3,928 ms
3. @tdewolff/minify<sup>-69% </sup>3.36 MB<sup>-53% </sup>876.66 kB<sup>🏆 </sup>263 ms
4. terser (no compress)<sup>-68% </sup>3.53 MB<sup>-53% </sup>879.30 kB<sup>19x </sup>5,259 ms
5. esbuild<sup>-68% </sup>3.49 MB<sup>-51% </sup>915.50 kB<sup>1x </sup>487 ms
6. terser <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
7. babel-minify <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
8. google-closure-compiler <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
9. uglify-js <sub title="Failed: timeout">❌ Timed out</sub>--<sup>:warning:</sup> +10,000 ms
10. tedivm/jshrink <sub title="Failed: minification">❌ Minification</sub>-
11. bun <sub title="Failed: post-validation">❌ Post-validation</sub>-
</div> <!-- benchmarks:end -->

Sponsors

<p align="center"> <a href="https://github.com/sponsors/privatenumber"> <img src="https://cdn.jsdelivr.net/gh/privatenumber/sponsors/sponsorkit/sponsors.svg"> </a> </p>