-
-
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.
fix(es/minifier): Fix minifier (#2477)
swc_ecma_minifier: - `MultiReplacer`: Handle inlining into shorthands. - `ExprReplacer`: Handle inlining into shorthands.
- Loading branch information
Showing
9 changed files
with
1,305 additions
and
28 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
0020e16
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
base_tr_fixer
33849
ns/iter (± 5205
)27732
ns/iter (± 2743
)1.22
base_tr_resolver_and_hygiene
128496
ns/iter (± 27046
)107252
ns/iter (± 11262
)1.20
codegen_es2015
70417
ns/iter (± 11072
)53897
ns/iter (± 19060
)1.31
codegen_es2016
73105
ns/iter (± 17546
)54988
ns/iter (± 9919
)1.33
codegen_es2017
70799
ns/iter (± 14896
)56570
ns/iter (± 4397
)1.25
codegen_es2018
71849
ns/iter (± 17135
)54630
ns/iter (± 13356
)1.32
codegen_es2019
72160
ns/iter (± 17515
)56623
ns/iter (± 4185
)1.27
codegen_es2020
71626
ns/iter (± 16054
)54864
ns/iter (± 7321
)1.31
codegen_es3
72402
ns/iter (± 13291
)56373
ns/iter (± 5828
)1.28
codegen_es5
70716
ns/iter (± 15944
)56184
ns/iter (± 29341
)1.26
config_for_file
23568
ns/iter (± 8629
)19086
ns/iter (± 3792
)1.23
full_es2015
229532041
ns/iter (± 13926441
)187136271
ns/iter (± 11048541
)1.23
full_es2016
171675621
ns/iter (± 18142194
)145324479
ns/iter (± 12702722
)1.18
full_es2017
182242178
ns/iter (± 19054693
)152404811
ns/iter (± 13695258
)1.20
full_es2018
174706756
ns/iter (± 12608764
)148359629
ns/iter (± 11332409
)1.18
full_es2019
174429033
ns/iter (± 18909785
)148244368
ns/iter (± 18565572
)1.18
full_es2020
170885905
ns/iter (± 11588651
)145515580
ns/iter (± 24699061
)1.17
full_es3
261544626
ns/iter (± 27164259
)221010248
ns/iter (± 44594966
)1.18
full_es5
236735120
ns/iter (± 18481658
)205131265
ns/iter (± 34439773
)1.15
parser
814665
ns/iter (± 118640
)737318
ns/iter (± 158855
)1.10
transforms_es2015
1282067
ns/iter (± 291239
)1015780
ns/iter (± 152613
)1.26
transforms_es2016
823340
ns/iter (± 211374
)599882
ns/iter (± 87007
)1.37
transforms_es2017
721313
ns/iter (± 191524
)609299
ns/iter (± 136281
)1.18
transforms_es2018
755063
ns/iter (± 221525
)598979
ns/iter (± 76260
)1.26
transforms_es2019
706509
ns/iter (± 193428
)594041
ns/iter (± 146936
)1.19
transforms_es2020
701131
ns/iter (± 182613
)573724
ns/iter (± 133589
)1.22
transforms_es3
1495490
ns/iter (± 628115
)1177417
ns/iter (± 194057
)1.27
transforms_es5
1225006
ns/iter (± 282300
)1007866
ns/iter (± 148396
)1.22
ser_ast_node
204
ns/iter (± 28
)170
ns/iter (± 19
)1.20
ser_serde
195
ns/iter (± 32
)163
ns/iter (± 30
)1.20
emit_colors
14680311
ns/iter (± 20998541
)15397342
ns/iter (± 20688528
)0.95
emit_large
79344918
ns/iter (± 104896694
)86070400
ns/iter (± 133753367
)0.92
base_clone
2657059
ns/iter (± 801608
)2523244
ns/iter (± 343022
)1.05
fold_span
4309329
ns/iter (± 851600
)4153555
ns/iter (± 434686
)1.04
fold_span_panic
4710664
ns/iter (± 1114486
)4474604
ns/iter (± 596246
)1.05
visit_mut_span
3169001
ns/iter (± 878929
)3034976
ns/iter (± 423561
)1.04
visit_mut_span_panic
3296839
ns/iter (± 849839
)3086534
ns/iter (± 355958
)1.07
boxing_boxed
164
ns/iter (± 35
)146
ns/iter (± 26
)1.12
boxing_boxed_clone
75
ns/iter (± 22
)65
ns/iter (± 13
)1.15
boxing_unboxed
153
ns/iter (± 37
)138
ns/iter (± 19
)1.11
boxing_unboxed_clone
70
ns/iter (± 17
)64
ns/iter (± 13
)1.09
This comment was automatically generated by workflow using github-action-benchmark.