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.8.0 #614

Merged
merged 2 commits into from
Nov 4, 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
22 changes: 11 additions & 11 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.0</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.7.42</sub>
- [@swc/core](https://github.com/swc-project/swc) <sub>v1.8.0</sub>
- [@tdewolff/minify](https://github.com/tdewolff/minify#readme) <sub>v2.21.1</sub>
- [terser](https://github.com/terser/terser) <sub>v5.36.0</sub>
- [uglify-js](https://github.com/mishoo/UglifyJS) <sub>v3.19.3</sub>
<!-- minifiers:end -->

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

<br>

Expand Down Expand Up @@ -130,7 +130,7 @@ xychart-beta
| [moment v2.29.1](https://www.npmjs.com/package/moment/v/2.29.1) ([Source](https://unpkg.com/[email protected]/moment.js)) | `173.90 kB` | `36.23 kB` | |
| **Minifier** | **Minified size** | **Minzipped size** | **Time** |
| 1. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | **<sup>🏆-67% </sup>`57.73 kB`** | **<sup>🏆-49% </sup>`18.57 kB`** | <sup>*223x* </sup>`1,181 ms` |
| 2. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-67% </sup>`58.21 kB` | <sup>-48% </sup>`18.69 kB` | <sup>*9x* </sup>`51 ms` |
| 2. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-67% </sup>`58.21 kB` | <sup>-48% </sup>`18.69 kB` | <sup>*9x* </sup>`50 ms` |
| 3. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-66% </sup>`59.14 kB` | <sup>-48% </sup>`18.69 kB` | <sup>*129x* </sup>`681 ms` |
| 4. [google-closure-compiler](packages/minifiers/minifiers/google-closure-compiler.ts) | <sup>-66% </sup>`58.27 kB` | <sup>-48% </sup>`18.91 kB` | <sup>*730x* </sup>`3,856 ms` |
| 5. [babel-minify](packages/minifiers/minifiers/babel-minify.ts) | <sup>-66% </sup>`59.70 kB` | <sup>-47% </sup>`19.12 kB` | <sup>*259x* </sup>`1,367 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.50 kB` | **<sup>🏆-53% </sup>`42.52 kB`** | <sup>*9x* </sup>`129 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-66% </sup>`115.50 kB` | **<sup>🏆-53% </sup>`42.52 kB`** | <sup>*9x* </sup>`126 ms` |
| 2. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-66% </sup>`116.80 kB` | <sup>-52% </sup>`42.92 kB` | <sup>*85x* </sup>`1,131 ms` |
| 3. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | **<sup>🏆-67% </sup>`113.80 kB`** | <sup>-52% </sup>`43.04 kB` | <sup>*172x* </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>*187x* </sup>`2,476 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>*116x* </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>*7x* </sup>`277 ms` |
| 2. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-52% </sup>`265.26 kB` | <sup>-33% </sup>`87.21 kB` | <sup>*7x* </sup>`275 ms` |
| 3. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-52% </sup>`267.77 kB` | <sup>-33% </sup>`88.09 kB` | <sup>*65x* </sup>`2,290 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>*21x* </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>*29x* </sup>`1,016 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.59 kB` | **<sup>🏆-36% </sup>`123.09 kB`** | <sup>*7x* </sup>`242 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-55% </sup>`455.59 kB` | **<sup>🏆-36% </sup>`123.09 kB`** | <sup>*7x* </sup>`239 ms` |
| 2. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | <sup>-55% </sup>`451.19 kB` | <sup>-36% </sup>`123.33 kB` | <sup>*124x* </sup>`3,878 ms` |
| 3. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-55% </sup>`458.29 kB` | <sup>-36% </sup>`123.48 kB` | <sup>*70x* </sup>`2,186 ms` |
| 4. [terser (no compress)](packages/minifiers/minifiers/terser.ts) | <sup>-53% </sup>`474.40 kB` | <sup>-36% </sup>`124.43 kB` | <sup>*31x* </sup>`969 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>`645.27 kB` | **<sup>🏆-36% </sup>`158.50 kB`** | <sup>*7x* </sup>`367 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-48% </sup>`645.27 kB` | **<sup>🏆-36% </sup>`158.50 kB`** | <sup>*7x* </sup>`363 ms` |
| 2. [uglify-js](packages/minifiers/minifiers/uglify-js.ts) | **<sup>🏆-49% </sup>`641.59 kB`** | <sup>-36% </sup>`159.07 kB` | <sup>*105x* </sup>`5,130 ms` |
| 3. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-48% </sup>`653.25 kB` | <sup>-36% </sup>`159.20 kB` | <sup>*60x* </sup>`2,951 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>*169x* </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>*120x* </sup>`6,627 ms` |
| 2. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-67% </sup>`712.61 kB` | <sup>-49% </sup>`158.06 kB` | <sup>*9x* </sup>`549 ms` |
| 2. [@swc/core](packages/minifiers/minifiers/swc.ts) | <sup>-67% </sup>`712.61 kB` | <sup>-49% </sup>`158.06 kB` | <sup>*9x* </sup>`519 ms` |
| 3. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-66% </sup>`715.58 kB` | <sup>-49% </sup>`158.71 kB` | <sup>*72x* </sup>`3,991 ms` |
| 4. [@tdewolff/minify](packages/minifiers/minifiers/tdewolff-minify.ts) | <sup>-66% </sup>`718.73 kB` | <sup>-47% </sup>`165.13 kB` | **<sup>🏆 </sup>`55 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,599 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.25 kB`** | **<sup>🏆-53% </sup>`320.27 kB`** | <sup>*8x* </sup>`1,038 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | **<sup>🏆-69% </sup>`993.25 kB`** | **<sup>🏆-53% </sup>`320.27 kB`** | <sup>*8x* </sup>`1,009 ms` |
| 2. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-69% </sup>`1.00 MB` | <sup>-53% </sup>`321.99 kB` | <sup>*52x* </sup>`6,107 ms` |
| 3. [terser (no compress)](packages/minifiers/minifiers/terser.ts) | <sup>-66% </sup>`1.07 MB` | <sup>-52% </sup>`330.74 kB` | <sup>*23x* </sup>`2,692 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>🏆-67% </sup>`2.18 MB`** | **<sup>🏆-45% </sup>`454.52 kB`** | <sup>*9x* </sup>`1,308 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | **<sup>🏆-67% </sup>`2.18 MB`** | **<sup>🏆-45% </sup>`454.52 kB`** | <sup>*9x* </sup>`1,269 ms` |
| 2. [terser](packages/minifiers/minifiers/terser.ts) | <sup>-66% </sup>`2.25 MB` | <sup>-45% </sup>`457.79 kB` | <sup>*51x* </sup>`6,979 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,108 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,658 ms` |
| 1. [@swc/core](packages/minifiers/minifiers/swc.ts) | **<sup>🏆-70% </sup>`3.31 MB`** | **<sup>🏆-55% </sup>`851.75 kB`** | <sup>*9x* </sup>`2,621 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>*14x* </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>`263 ms`** |
| 4. [terser (no compress)](packages/minifiers/minifiers/terser.ts) | <sup>-68% </sup>`3.53 MB` | <sup>-53% </sup>`879.30 kB` | <sup>*19x* </sup>`5,259 ms` |
Expand Down
Loading