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): Abort inliner on fn declarations used multiple time (…
- Loading branch information
Showing
6 changed files
with
70 additions
and
21 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var foo_1 = foo; | ||
|
||
function foo() { | ||
console.log("foo"); | ||
} | ||
|
||
foo_1(); | ||
foo_1(); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var foo_1 = foo; | ||
|
||
function foo() { | ||
console.log("foo"); | ||
} | ||
|
||
foo_1(); | ||
foo_1(); |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var foo_1 = function() { | ||
console.log("foo"); | ||
}; | ||
foo_1(), foo_1(); |
15ad2c2
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/bugs-1
346117
ns/iter (± 22474
)354348
ns/iter (± 21258
)0.98
es/full/minify/libraries/antd
1957955351
ns/iter (± 56659346
)1874993974
ns/iter (± 38128542
)1.04
es/full/minify/libraries/d3
444712150
ns/iter (± 38663654
)418175522
ns/iter (± 23574855
)1.06
es/full/minify/libraries/echarts
1615751824
ns/iter (± 115715877
)1609079337
ns/iter (± 34145013
)1.00
es/full/minify/libraries/jquery
110708257
ns/iter (± 5102303
)104126257
ns/iter (± 7991135
)1.06
es/full/minify/libraries/lodash
133833754
ns/iter (± 14042922
)133579282
ns/iter (± 5373792
)1.00
es/full/minify/libraries/moment
65244200
ns/iter (± 7197779
)64179040
ns/iter (± 1799088
)1.02
es/full/minify/libraries/react
25592873
ns/iter (± 2133927
)22172744
ns/iter (± 610282
)1.15
es/full/minify/libraries/terser
368397583
ns/iter (± 23963737
)307930356
ns/iter (± 7505502
)1.20
es/full/minify/libraries/three
635544587
ns/iter (± 23540994
)571502761
ns/iter (± 11258727
)1.11
es/full/minify/libraries/typescript
3664030287
ns/iter (± 95819033
)3377745729
ns/iter (± 21289701
)1.08
es/full/minify/libraries/victory
863451822
ns/iter (± 31194415
)826574577
ns/iter (± 10985643
)1.04
es/full/minify/libraries/vue
165269128
ns/iter (± 11804335
)154079012
ns/iter (± 2955872
)1.07
es/full/codegen/es3
34763
ns/iter (± 1305
)33318
ns/iter (± 1333
)1.04
es/full/codegen/es5
34587
ns/iter (± 1230
)33387
ns/iter (± 2257
)1.04
es/full/codegen/es2015
34433
ns/iter (± 1937
)33359
ns/iter (± 1085
)1.03
es/full/codegen/es2016
34382
ns/iter (± 2122
)33319
ns/iter (± 537
)1.03
es/full/codegen/es2017
34724
ns/iter (± 1535
)33230
ns/iter (± 488
)1.04
es/full/codegen/es2018
34589
ns/iter (± 2727
)33224
ns/iter (± 797
)1.04
es/full/codegen/es2019
34779
ns/iter (± 956
)33353
ns/iter (± 871
)1.04
es/full/codegen/es2020
34435
ns/iter (± 1021
)33354
ns/iter (± 1243
)1.03
es/full/all/es3
208946945
ns/iter (± 17927599
)190515266
ns/iter (± 4057535
)1.10
es/full/all/es5
196987775
ns/iter (± 14151792
)181250320
ns/iter (± 3842697
)1.09
es/full/all/es2015
155192235
ns/iter (± 10338814
)145989342
ns/iter (± 2792108
)1.06
es/full/all/es2016
156039736
ns/iter (± 14142708
)144170725
ns/iter (± 4023659
)1.08
es/full/all/es2017
152429291
ns/iter (± 9867532
)143825266
ns/iter (± 3088115
)1.06
es/full/all/es2018
151556223
ns/iter (± 12155126
)145854294
ns/iter (± 5875440
)1.04
es/full/all/es2019
149367814
ns/iter (± 13828712
)143259939
ns/iter (± 6590229
)1.04
es/full/all/es2020
141622508
ns/iter (± 8817046
)137798688
ns/iter (± 14307266
)1.03
es/full/parser
735960
ns/iter (± 41686
)729658
ns/iter (± 23042
)1.01
es/full/base/fixer
26506
ns/iter (± 1048
)26561
ns/iter (± 1053
)1.00
es/full/base/resolver_and_hygiene
95434
ns/iter (± 18794
)91726
ns/iter (± 3084
)1.04
serialization of ast node
220
ns/iter (± 11
)219
ns/iter (± 18
)1.00
serialization of serde
221
ns/iter (± 3
)218
ns/iter (± 6
)1.01
This comment was automatically generated by workflow using github-action-benchmark.