Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency @swc/core to ^1.10.4 #629

Merged
merged 2 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ This project benchmarks the following minifiers:
- [esbuild](https://github.com/evanw/esbuild) <sub>v0.24.2</sub>
- [google-closure-compiler](https://github.com/google/closure-compiler-npm/tree/master/packages/google-closure-compiler) <sub>v20240317.0.0</sub>
- [tedivm/jshrink](https://github.com/tedious/JShrink) <sub>v1.7.0</sub>
- [@swc/core](https://github.com/swc-project/swc) <sub>v1.10.3</sub>
- [@swc/core](https://github.com/swc-project/swc) <sub>v1.10.4</sub>
- [@tdewolff/minify](https://github.com/tdewolff/minify#readme) <sub>v2.21.2</sub>
- [terser](https://github.com/terser/terser) <sub>v5.37.0</sub>
- [uglify-js](https://github.com/mishoo/UglifyJS) <sub>v3.19.3</sub>
<!-- minifiers:end -->

_Benchmarks last updated on <!-- lastUpdated:start -->Dec 27, 2024<!-- lastUpdated:end -->._
_Benchmarks last updated on <!-- lastUpdated:start -->Dec 30, 2024<!-- lastUpdated:end -->._

<br>

Expand Down Expand Up @@ -168,7 +168,7 @@ xychart-beta
| :---------------------------------------------------------------------------------------------------------------------- | -------------------------------: | -------------------------------: | ---------------------------: |
| [jquery v3.5.1](https://www.npmjs.com/package/jquery/v/3.5.1) ([Source](https://unpkg.com/[email protected]/dist/jquery.js)) | `287.63 kB` | `84.50 kB` | |
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-69% </sup>`89.15 kB` | **<sup>🏆-63% </sup>`30.87 kB`** | <sup>*10x* </sup>`89 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-69% </sup>`89.15 kB` | **<sup>🏆-63% </sup>`30.87 kB`** | <sup>*10x* </sup>`88 ms` |
| 2. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | **<sup>🏆-69% </sup>`88.45 kB`** | <sup>-63% </sup>`30.90 kB` | <sup>*196x* </sup>`1,639 ms` |
| 3. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-69% </sup>`89.54 kB` | <sup>-63% </sup>`30.91 kB` | <sup>*107x* </sup>`895 ms` |
| 4. [@tdewolff/minify](packages/minifiers/minifiers/tdewolff-minify.ts) | <sup>-69% </sup>`89.85 kB` | <sup>-63% </sup>`31.47 kB` | **<sup>🏆 </sup>`8 ms`** |
Expand Down Expand Up @@ -207,7 +207,7 @@ xychart-beta
| :------------------------------------------------------------------------------------------------------------- | --------------------------------: | -------------------------------: | ---------------------------: |
| [vue v2.6.12](https://www.npmjs.com/package/vue/v/2.6.12) ([Source](https://unpkg.com/[email protected]/dist/vue.js)) | `342.15 kB` | `89.67 kB` | |
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-66% </sup>`115.48 kB` | **<sup>🏆-53% </sup>`42.49 kB`** | <sup>*9x* </sup>`126 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-66% </sup>`115.48 kB` | **<sup>🏆-53% </sup>`42.49 kB`** | <sup>*9x* </sup>`128 ms` |
| 2. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-66% </sup>`116.80 kB` | <sup>-52% </sup>`42.92 kB` | <sup>*83x* </sup>`1,113 ms` |
| 3. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | **<sup>🏆-67% </sup>`113.80 kB`** | <sup>-52% </sup>`43.04 kB` | <sup>*171x* </sup>`2,282 ms` |
| 4. [babel-minify](packages/minifiers/minifiers/babel-minify.ts) | <sup>-66% </sup>`117.90 kB` | <sup>-51% </sup>`43.93 kB` | <sup>*186x* </sup>`2,476 ms` |
Expand Down Expand Up @@ -248,7 +248,7 @@ xychart-beta
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | **<sup>🏆-87% </sup>`68.17 kB`** | **<sup>🏆-74% </sup>`24.69 kB`** | <sup>*148x* </sup>`1,756 ms` |
| 2. [google-closure-compiler](packages/minifiers/minifiers/google-closure-compiler.ts) | <sup>-86% </sup>`73.47 kB` | <sup>-74% </sup>`24.97 kB` | <sup>*390x* </sup>`4,633 ms` |
| 3. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-87% </sup>`69.84 kB` | <sup>-74% </sup>`25.16 kB` | <sup>*9x* </sup>`111 ms` |
| 3. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-87% </sup>`69.84 kB` | <sup>-74% </sup>`25.16 kB` | <sup>*9x* </sup>`109 ms` |
| 4. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-87% </sup>`70.67 kB` | <sup>-74% </sup>`25.19 kB` | <sup>*78x* </sup>`935 ms` |
| 5. [babel-minify](packages/minifiers/minifiers/babel-minify.ts) | <sup>-87% </sup>`72.37 kB` | <sup>-74% </sup>`25.50 kB` | <sup>*163x* </sup>`1,940 ms` |
| 6. [uglify-js (no compress)](packages/minifiers/minifiers/uglify-js.ts) | <sup>-86% </sup>`74.61 kB` | <sup>-73% </sup>`25.86 kB` | <sup>*28x* </sup>`341 ms` |
Expand Down Expand Up @@ -286,7 +286,7 @@ xychart-beta
| [d3 v6.3.1](https://www.npmjs.com/package/d3/v/6.3.1) ([Source](https://unpkg.com/[email protected]/dist/d3.js)) | `555.77 kB` | `130.69 kB` | |
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | **<sup>🏆-53% </sup>`263.56 kB`** | **<sup>🏆-33% </sup>`87.02 kB`** | <sup>*121x* </sup>`4,067 ms` |
| 2. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-52% </sup>`265.26 kB` | <sup>-33% </sup>`87.21 kB` | <sup>*8x* </sup>`274 ms` |
| 2. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-52% </sup>`265.26 kB` | <sup>-33% </sup>`87.21 kB` | <sup>*8x* </sup>`282 ms` |
| 3. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-52% </sup>`267.77 kB` | <sup>-33% </sup>`88.09 kB` | <sup>*67x* </sup>`2,264 ms` |
| 4. [uglify-js (no compress)](packages/minifiers/minifiers/uglify-js.ts) | <sup>-50% </sup>`275.35 kB` | <sup>-32% </sup>`88.32 kB` | <sup>*22x* </sup>`749 ms` |
| 5. [terser (no compress)](packages/minifiers/minifiers/terser.ts) | <sup>-50% </sup>`276.47 kB` | <sup>-32% </sup>`89.16 kB` | <sup>*30x* </sup>`1,007 ms` |
Expand Down Expand Up @@ -324,7 +324,7 @@ xychart-beta
| :----------------------------------------------------------------------------------------------------------------------------- | --------------------------------: | --------------------------------: | ---------------------------: |
| [terser v5.30.3](https://www.npmjs.com/package/terser/v/5.30.3) ([Source](https://unpkg.com/[email protected]/dist/bundle.min.js)) | `1.01 MB` | `193.76 kB` | |
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-55% </sup>`455.57 kB` | **<sup>🏆-36% </sup>`123.08 kB`** | <sup>*7x* </sup>`239 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-55% </sup>`455.57 kB` | **<sup>🏆-36% </sup>`123.08 kB`** | <sup>*7x* </sup>`246 ms` |
| 2. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | <sup>-55% </sup>`451.19 kB` | <sup>-36% </sup>`123.33 kB` | <sup>*123x* </sup>`3,878 ms` |
| 3. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-55% </sup>`458.29 kB` | <sup>-36% </sup>`123.48 kB` | <sup>*69x* </sup>`2,161 ms` |
| 4. [terser (no compress)](packages/minifiers/minifiers/terser.ts) | <sup>-53% </sup>`474.40 kB` | <sup>-36% </sup>`124.43 kB` | <sup>*30x* </sup>`965 ms` |
Expand Down Expand Up @@ -363,7 +363,7 @@ xychart-beta
| :------------------------------------------------------------------------------------------------------------------------- | --------------------------------: | --------------------------------: | --------------------------------: |
| [three v0.124.0](https://www.npmjs.com/package/three/v/0.124.0) ([Source](https://unpkg.com/[email protected]/build/three.js)) | `1.25 MB` | `248.27 kB` | |
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-48% </sup>`642.91 kB` | **<sup>🏆-36% </sup>`158.23 kB`** | <sup>*7x* </sup>`362 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-48% </sup>`642.91 kB` | **<sup>🏆-36% </sup>`158.23 kB`** | <sup>*7x* </sup>`378 ms` |
| 2. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | **<sup>🏆-49% </sup>`641.59 kB`** | <sup>-36% </sup>`159.07 kB` | <sup>*107x* </sup>`5,130 ms` |
| 3. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-48% </sup>`653.25 kB` | <sup>-36% </sup>`159.20 kB` | <sup>*61x* </sup>`2,944 ms` |
| 4. [google-closure-compiler](packages/minifiers/minifiers/google-closure-compiler.ts) | <sup>-48% </sup>`644.45 kB` | <sup>-34% </sup>`163.00 kB` | <sup>*172x* </sup>`8,208 ms` |
Expand Down Expand Up @@ -403,7 +403,7 @@ xychart-beta
| [victory v35.8.4](https://www.npmjs.com/package/victory/v/35.8.4) ([Source](https://unpkg.com/[email protected]/dist/victory.js)) | `2.13 MB` | `309.94 kB` | |
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | **<sup>🏆-67% </sup>`694.78 kB`** | **<sup>🏆-49% </sup>`157.44 kB`** | <sup>*118x* </sup>`6,627 ms` |
| 2. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-67% </sup>`707.21 kB` | <sup>-49% </sup>`157.80 kB` | <sup>*9x* </sup>`529 ms` |
| 2. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-67% </sup>`707.21 kB` | <sup>-49% </sup>`157.80 kB` | <sup>*9x* </sup>`560 ms` |
| 3. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-66% </sup>`715.58 kB` | <sup>-49% </sup>`158.71 kB` | <sup>*70x* </sup>`3,973 ms` |
| 4. [@tdewolff/minify](packages/minifiers/minifiers/tdewolff-minify.ts) | <sup>-66% </sup>`718.73 kB` | <sup>-47% </sup>`165.13 kB` | **<sup>🏆 </sup>`56 ms`** |
| 5. [terser (no compress)](packages/minifiers/minifiers/terser.ts) | <sup>-64% </sup>`759.34 kB` | <sup>-46% </sup>`166.39 kB` | <sup>*28x* </sup>`1,607 ms` |
Expand Down Expand Up @@ -441,7 +441,7 @@ xychart-beta
| :----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------: | --------------------------------: | --------------------------------: |
| [echarts v5.1.1](https://www.npmjs.com/package/echarts/v/5.1.1) ([Source](https://unpkg.com/[email protected]/dist/echarts.js)) | `3.20 MB` | `684.61 kB` | |
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | **<sup>🏆-69% </sup>`993.10 kB`** | **<sup>🏆-53% </sup>`320.21 kB`** | <sup>*8x* </sup>`1,037 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | **<sup>🏆-69% </sup>`993.10 kB`** | **<sup>🏆-53% </sup>`320.21 kB`** | <sup>*9x* </sup>`1,097 ms` |
| 2. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-69% </sup>`1.00 MB` | <sup>-53% </sup>`321.99 kB` | <sup>*51x* </sup>`6,019 ms` |
| 3. [terser (no compress)](packages/minifiers/minifiers/terser.ts) | <sup>-66% </sup>`1.07 MB` | <sup>-52% </sup>`330.74 kB` | <sup>*22x* </sup>`2,631 ms` |
| 4. [uglify-js (no compress)](packages/minifiers/minifiers/uglify-js.ts) | <sup>-67% </sup>`1.07 MB` | <sup>-52% </sup>`331.41 kB` | <sup>*15x* </sup>`1,776 ms` |
Expand Down Expand Up @@ -480,7 +480,7 @@ xychart-beta
| :----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------: | --------------------------------: | --------------------------------: |
| [antd v4.16.1](https://www.npmjs.com/package/antd/v/4.16.1) ([Source](https://unpkg.com/[email protected]/dist/antd.js)) | `6.67 MB` | `825.18 kB` | |
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | **<sup>🏆-68% </sup>`2.15 MB`** | **<sup>🏆-45% </sup>`452.87 kB`** | <sup>*9x* </sup>`1,305 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | **<sup>🏆-68% </sup>`2.15 MB`** | **<sup>🏆-45% </sup>`452.87 kB`** | <sup>*9x* </sup>`1,348 ms` |
| 2. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-66% </sup>`2.25 MB` | <sup>-45% </sup>`457.79 kB` | <sup>*49x* </sup>`6,820 ms` |
| 3. [@tdewolff/minify](packages/minifiers/minifiers/tdewolff-minify.ts) | <sup>-66% </sup>`2.30 MB` | <sup>-43% </sup>`472.04 kB` | **<sup>🏆 </sup>`136 ms`** |
| 4. [terser (no compress)](packages/minifiers/minifiers/terser.ts) | <sup>-64% </sup>`2.43 MB` | <sup>-42% </sup>`475.48 kB` | <sup>*22x* </sup>`3,060 ms` |
Expand Down Expand Up @@ -519,7 +519,7 @@ xychart-beta
| :------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------: | --------------------------------: | --------------------------------: |
| [typescript v4.9.5](https://www.npmjs.com/package/typescript/v/4.9.5) ([Source](https://unpkg.com/[email protected]/lib/typescript.js)) | `10.95 MB` | `1.88 MB` | |
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | **<sup>🏆-70% </sup>`3.31 MB`** | **<sup>🏆-55% </sup>`851.75 kB`** | <sup>*10x* </sup>`2,680 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | **<sup>🏆-70% </sup>`3.31 MB`** | **<sup>🏆-55% </sup>`851.75 kB`** | <sup>*10x* </sup>`2,716 ms` |
| 2. [uglify-js (no compress)](packages/minifiers/minifiers/uglify-js.ts) | <sup>-68% </sup>`3.54 MB` | <sup>-53% </sup>`876.54 kB` | <sup>*15x* </sup>`3,928 ms` |
| 3. [@tdewolff/minify](packages/minifiers/minifiers/tdewolff-minify.ts) | <sup>-69% </sup>`3.36 MB` | <sup>-53% </sup>`876.66 kB` | **<sup>🏆 </sup>`254 ms`** |
| 4. [terser (no compress)](packages/minifiers/minifiers/terser.ts) | <sup>-68% </sup>`3.53 MB` | <sup>-53% </sup>`879.30 kB` | <sup>*20x* </sup>`5,178 ms` |
Expand Down
Loading