-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(es/minifier): Ignore return value if a param of IIFE is not used (…
- Loading branch information
Showing
20 changed files
with
180 additions
and
85 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/emitDefaultParametersFunctionExpressionES6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
//// [emitDefaultParametersFunctionExpressionES6.ts] | ||
!function(num, boo = !1, ...rest) {}(10); | ||
!function(num, boo = !1, ...rest) {}(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ var aa = [ | |
aa = function(a, x) { | ||
var result = a.slice(); | ||
return result.push(1), result; | ||
}(aa, 1); | ||
}(aa, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d334c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
es/full/minify/libraries/antd
1835605752
ns/iter (± 33990897
)1881977142
ns/iter (± 71855182
)0.98
es/full/minify/libraries/d3
382662590
ns/iter (± 9389147
)419415296
ns/iter (± 20257001
)0.91
es/full/minify/libraries/echarts
1499412969
ns/iter (± 37242714
)1588946044
ns/iter (± 349084382
)0.94
es/full/minify/libraries/jquery
108889122
ns/iter (± 7710514
)115908212
ns/iter (± 3820743
)0.94
es/full/minify/libraries/lodash
119918517
ns/iter (± 15788258
)124602934
ns/iter (± 5836729
)0.96
es/full/minify/libraries/moment
61333707
ns/iter (± 3629062
)63079962
ns/iter (± 6260438
)0.97
es/full/minify/libraries/react
20839472
ns/iter (± 657978
)20986871
ns/iter (± 439924
)0.99
es/full/minify/libraries/terser
316413894
ns/iter (± 9960771
)346093801
ns/iter (± 26366051
)0.91
es/full/minify/libraries/three
568830752
ns/iter (± 19534274
)574072728
ns/iter (± 24755760
)0.99
es/full/minify/libraries/typescript
3660215404
ns/iter (± 660756876
)3530298367
ns/iter (± 149807819
)1.04
es/full/minify/libraries/victory
876661032
ns/iter (± 47330961
)862779318
ns/iter (± 32537197
)1.02
es/full/minify/libraries/vue
170811011
ns/iter (± 14684491
)173712947
ns/iter (± 10036254
)0.98
es/full/codegen/es3
34448
ns/iter (± 1354
)33760
ns/iter (± 1317
)1.02
es/full/codegen/es5
33590
ns/iter (± 1258
)33860
ns/iter (± 2275
)0.99
es/full/codegen/es2015
33955
ns/iter (± 2527
)33715
ns/iter (± 1893
)1.01
es/full/codegen/es2016
34019
ns/iter (± 4904
)33965
ns/iter (± 1147
)1.00
es/full/codegen/es2017
33655
ns/iter (± 1111
)33977
ns/iter (± 1806
)0.99
es/full/codegen/es2018
33939
ns/iter (± 2611
)34019
ns/iter (± 1226
)1.00
es/full/codegen/es2019
34113
ns/iter (± 4393
)33878
ns/iter (± 2704
)1.01
es/full/codegen/es2020
34889
ns/iter (± 3230
)33842
ns/iter (± 3373
)1.03
es/full/all/es3
214127632
ns/iter (± 35940118
)234846526
ns/iter (± 26045298
)0.91
es/full/all/es5
202510552
ns/iter (± 16560685
)224490539
ns/iter (± 26923210
)0.90
es/full/all/es2015
162175663
ns/iter (± 12605086
)177936265
ns/iter (± 21215735
)0.91
es/full/all/es2016
163086668
ns/iter (± 15614714
)184969745
ns/iter (± 21741635
)0.88
es/full/all/es2017
165838850
ns/iter (± 26415606
)184631574
ns/iter (± 18678382
)0.90
es/full/all/es2018
158682567
ns/iter (± 15080456
)185366286
ns/iter (± 22034200
)0.86
es/full/all/es2019
161713281
ns/iter (± 13066180
)176036956
ns/iter (± 13497445
)0.92
es/full/all/es2020
156950329
ns/iter (± 36047548
)165864455
ns/iter (± 18491862
)0.95
es/full/parser
747873
ns/iter (± 48044
)783641
ns/iter (± 102978
)0.95
es/full/base/fixer
26636
ns/iter (± 7278
)27816
ns/iter (± 2498
)0.96
es/full/base/resolver_and_hygiene
98503
ns/iter (± 17256
)98238
ns/iter (± 9796
)1.00
serialization of ast node
210
ns/iter (± 5
)213
ns/iter (± 14
)0.99
serialization of serde
210
ns/iter (± 116
)213
ns/iter (± 12
)0.99
This comment was automatically generated by workflow using github-action-benchmark.