-
-
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/transforms/compat): Add single-property optimization to `dest…
…ructuring` (#2511) swc_ecma_transforms_compat: - `destructuring`: Convert single-property destructuring to direct field access.
- Loading branch information
Showing
48 changed files
with
312 additions
and
274 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
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.
f33d321
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
31676
ns/iter (± 5370
)30664
ns/iter (± 3181
)1.03
base_tr_resolver_and_hygiene
171634
ns/iter (± 23594
)175395
ns/iter (± 21440
)0.98
codegen_es2015
62828
ns/iter (± 5820
)62762
ns/iter (± 22199
)1.00
codegen_es2016
62652
ns/iter (± 9624
)62414
ns/iter (± 6397
)1.00
codegen_es2017
64733
ns/iter (± 7475
)61669
ns/iter (± 14953
)1.05
codegen_es2018
62643
ns/iter (± 8940
)61581
ns/iter (± 4883
)1.02
codegen_es2019
61573
ns/iter (± 9246
)61400
ns/iter (± 3837
)1.00
codegen_es2020
60953
ns/iter (± 10901
)61305
ns/iter (± 7175
)0.99
codegen_es3
61203
ns/iter (± 11083
)61259
ns/iter (± 5648
)1.00
codegen_es5
61767
ns/iter (± 9773
)61454
ns/iter (± 8700
)1.01
config_for_file
19050
ns/iter (± 3906
)18085
ns/iter (± 5121
)1.05
full_es2015
216408027
ns/iter (± 19420147
)209429724
ns/iter (± 12943913
)1.03
full_es2016
163013970
ns/iter (± 12758709
)157321498
ns/iter (± 11223776
)1.04
full_es2017
172199813
ns/iter (± 17233135
)166273658
ns/iter (± 15302231
)1.04
full_es2018
168949755
ns/iter (± 14651501
)167279206
ns/iter (± 17389380
)1.01
full_es2019
167035114
ns/iter (± 18288433
)163095187
ns/iter (± 10926797
)1.02
full_es2020
166167664
ns/iter (± 15555341
)161481790
ns/iter (± 15070498
)1.03
full_es3
254770749
ns/iter (± 33038767
)251576958
ns/iter (± 32815635
)1.01
full_es5
232710006
ns/iter (± 18517313
)228907531
ns/iter (± 14196295
)1.02
parser
812122
ns/iter (± 132650
)804316
ns/iter (± 111915
)1.01
transforms_es2015
1237374
ns/iter (± 256839
)1194209
ns/iter (± 224498
)1.04
transforms_es2016
752016
ns/iter (± 154092
)697344
ns/iter (± 126335
)1.08
transforms_es2017
719007
ns/iter (± 141618
)665195
ns/iter (± 163954
)1.08
transforms_es2018
714726
ns/iter (± 125514
)663485
ns/iter (± 189241
)1.08
transforms_es2019
718393
ns/iter (± 117916
)671775
ns/iter (± 289750
)1.07
transforms_es2020
731562
ns/iter (± 214444
)656121
ns/iter (± 143495
)1.11
transforms_es3
1404536
ns/iter (± 367589
)1364916
ns/iter (± 274928
)1.03
transforms_es5
1244445
ns/iter (± 309808
)1187716
ns/iter (± 163447
)1.05
ser_ast_node
175
ns/iter (± 20
)171
ns/iter (± 20
)1.02
ser_serde
188
ns/iter (± 43
)186
ns/iter (± 11
)1.01
emit_colors
19919789
ns/iter (± 26966052
)14436354
ns/iter (± 20378974
)1.38
emit_large
74772352
ns/iter (± 95577845
)90841699
ns/iter (± 137132058
)0.82
base_clone
2849249
ns/iter (± 1248604
)2724275
ns/iter (± 320749
)1.05
fold_span
4557403
ns/iter (± 1147269
)4495586
ns/iter (± 482528
)1.01
fold_span_panic
4954531
ns/iter (± 1941421
)4870329
ns/iter (± 816678
)1.02
visit_mut_span
3225550
ns/iter (± 654481
)3258276
ns/iter (± 288569
)0.99
visit_mut_span_panic
3379009
ns/iter (± 1911467
)3297394
ns/iter (± 530335
)1.02
boxing_boxed
176
ns/iter (± 26
)168
ns/iter (± 39
)1.05
boxing_boxed_clone
80
ns/iter (± 17
)77
ns/iter (± 6
)1.04
boxing_unboxed
145
ns/iter (± 32
)149
ns/iter (± 20
)0.97
boxing_unboxed_clone
93
ns/iter (± 15
)97
ns/iter (± 10
)0.96
This comment was automatically generated by workflow using github-action-benchmark.