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 29, 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,8661,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>190x </sup>536 ms
3. google-closure-compiler<sup>-68% </sup>22.83 kB<sup>-58% </sup>8.19 kB<sup>1161x </sup>3,269 ms
4. terser<sup>-68% </sup>23.07 kB<sup>-57% </sup>8.27 kB<sup>97x </sup>275 ms
5. babel-minify<sup>-67% </sup>23.60 kB<sup>-56% </sup>8.45 kB<sup>209x </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>23.99 kB<sup>-55% </sup>8.66 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,19857,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>219x </sup>1,181 ms
2. @swc/core<sup>-67% </sup>58.21 kB<sup>-48% </sup>18.69 kB<sup>9x </sup>51 ms
3. terser<sup>-66% </sup>59.14 kB<sup>-48% </sup>18.69 kB<sup>126x </sup>681 ms
4. google-closure-compiler<sup>-66% </sup>58.27 kB<sup>-48% </sup>18.91 kB<sup>718x </sup>3,856 ms
5. babel-minify<sup>-66% </sup>59.70 kB<sup>-47% </sup>19.12 kB<sup>254x </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>40x </sup>217 ms
9. terser (no compress)<sup>-64% </sup>63.15 kB<sup>-46% </sup>19.68 kB<sup>52x </sup>280 ms
10. bun<sup>-64% </sup>61.84 kB<sup>-45% </sup>19.86 kB<sup>3x </sup>20 ms
11. tedivm/jshrink<sup>-44% </sup>97.63 kB<sup>-31% </sup>25.00 kB<sup>45x </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,32653,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>91 ms
2. uglify-js<sup>🏆-69% </sup>88.45 kB<sup>-63% </sup>30.90 kB<sup>196x </sup>1,639 ms
3. terser<sup>-69% </sup>89.54 kB<sup>-63% </sup>30.91 kB<sup>110x </sup>917 ms
4. @tdewolff/minify<sup>-69% </sup>89.85 kB<sup>-63% </sup>31.47 kB<sup>🏆 </sup>8 ms
5. uglify-js (no compress)<sup>-67% </sup>94.08 kB<sup>-63% </sup>31.47 kB<sup>38x </sup>324 ms
6. terser (no compress)<sup>-67% </sup>94.55 kB<sup>-63% </sup>31.62 kB<sup>43x </sup>364 ms
7. babel-minify<sup>-68% </sup>92.10 kB<sup>-62% </sup>31.80 kB<sup>270x </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.55 kB<sup>-61% </sup>32.65 kB<sup>3x </sup>30 ms
10. google-closure-compiler<sup>-68% </sup>92.70 kB<sup>-61% </sup>33.09 kB<sup>523x </sup>4,363 ms
11. tedivm/jshrink<sup>-50% </sup>144.14 kB<sup>-52% </sup>40.88 kB<sup>37x </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,42522,42919,43036,43925,44230,44368,44376,44450,44679,45400,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>129 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>171x </sup>2,282 ms
4. babel-minify<sup>-66% </sup>117.90 kB<sup>-51% </sup>43.93 kB<sup>186x </sup>2,476 ms
5. google-closure-compiler<sup>-66% </sup>115.61 kB<sup>-51% </sup>44.23 kB<sup>354x </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.50 kB<sup>-49% </sup>45.40 kB<sup>2x </sup>34 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,26498,26655,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>148x </sup>1,756 ms
2. google-closure-compiler<sup>-86% </sup>73.47 kB<sup>-74% </sup>24.97 kB<sup>390x </sup>4,633 ms
3. @swc/core<sup>-87% </sup>69.84 kB<sup>-74% </sup>25.16 kB<sup>9x </sup>113 ms
4. terser<sup>-87% </sup>70.67 kB<sup>-74% </sup>25.19 kB<sup>79x </sup>947 ms
5. babel-minify<sup>-87% </sup>72.37 kB<sup>-74% </sup>25.50 kB<sup>163x </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. @tdewolff/minify<sup>-87% </sup>71.90 kB<sup>-73% </sup>26.50 kB<sup>🏆 </sup>12 ms
10. bun<sup>-87% </sup>73.45 kB<sup>-72% </sup>26.66 kB<sup>2x </sup>25 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,92395,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>121x </sup>4,067 ms
2. @swc/core<sup>-52% </sup>265.26 kB<sup>-33% </sup>87.21 kB<sup>8x </sup>294 ms
3. terser<sup>-52% </sup>267.77 kB<sup>-33% </sup>88.09 kB<sup>68x </sup>2,290 ms
4. uglify-js (no compress)<sup>-50% </sup>275.35 kB<sup>-32% </sup>88.32 kB<sup>22x </sup>749 ms
5. terser (no compress)<sup>-50% </sup>276.47 kB<sup>-32% </sup>89.16 kB<sup>30x </sup>1,016 ms
6. @tdewolff/minify<sup>-51% </sup>269.93 kB<sup>-31% </sup>89.89 kB<sup>🏆 </sup>33 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.41 kB<sup>-29% </sup>92.40 kB<sup>1x </sup>51 ms
9. google-closure-compiler<sup>-51% </sup>270.30 kB<sup>-28% </sup>94.12 kB<sup>212x </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,123095,123334,123482,124428,124609,124897,126562,126706,127653,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.60 kB<sup>🏆-36% </sup>123.10 kB<sup>8x </sup>254 ms
2. uglify-js<sup>-55% </sup>451.19 kB<sup>-36% </sup>123.33 kB<sup>123x </sup>3,878 ms
3. terser<sup>-55% </sup>458.29 kB<sup>-36% </sup>123.48 kB<sup>69x </sup>2,186 ms
4. terser (no compress)<sup>-53% </sup>474.40 kB<sup>-36% </sup>124.43 kB<sup>30x </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>211x </sup>6,631 ms
8. esbuild<sup>-55% </sup>458.89 kB<sup>-35% </sup>126.71 kB<sup>1x </sup>62 ms
9. bun<sup>-54% </sup>466.80 kB<sup>-34% </sup>127.65 kB<sup>1x </sup>49 ms
10. tedivm/jshrink<sup>-37% </sup>633.71 kB<sup>-25% </sup>145.18 kB<sup>37x </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,166341,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>8x </sup>390 ms
2. uglify-js<sup>🏆-49% </sup>641.59 kB<sup>-36% </sup>159.07 kB<sup>107x </sup>5,130 ms
3. terser<sup>-48% </sup>653.25 kB<sup>-36% </sup>159.20 kB<sup>62x </sup>2,951 ms
4. google-closure-compiler<sup>-48% </sup>644.45 kB<sup>-34% </sup>163.00 kB<sup>172x </sup>8,208 ms
5. uglify-js (no compress)<sup>-46% </sup>674.49 kB<sup>-34% </sup>163.04 kB<sup>21x </sup>1,015 ms
6. terser (no compress)<sup>-46% </sup>675.50 kB<sup>-34% </sup>163.20 kB<sup>27x </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>659.43 kB<sup>-33% </sup>166.34 kB<sup>1x </sup>61 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,182671]
<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>118x </sup>6,627 ms
2. @swc/core<sup>-67% </sup>712.61 kB<sup>-49% </sup>158.06 kB<sup>10x </sup>591 ms
3. terser<sup>-66% </sup>715.58 kB<sup>-49% </sup>158.71 kB<sup>71x </sup>3,991 ms
4. @tdewolff/minify<sup>-66% </sup>718.73 kB<sup>-47% </sup>165.13 kB<sup>🏆 </sup>56 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>23x </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.90 kB<sup>-41% </sup>182.67 kB<sup>1x </sup>88 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,320267,321987,330736,331412,331563,331791,337934]
<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>9x </sup>1,108 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.02 MB<sup>-51% </sup>337.93 kB<sup>1x </sup>148 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,491833]
<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>10x </sup>1,398 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.83 kB<sup>1x </sup>190 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>10x </sup>2,743 ms
2. uglify-js (no compress)<sup>-68% </sup>3.54 MB<sup>-53% </sup>876.54 kB<sup>15x </sup>3,928 ms
3. @tdewolff/minify<sup>-69% </sup>3.36 MB<sup>-53% </sup>876.66 kB<sup>🏆 </sup>254 ms
4. terser (no compress)<sup>-68% </sup>3.53 MB<sup>-53% </sup>879.30 kB<sup>20x </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>