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): Skip function declarations in sequential inliner (#…
- Loading branch information
Showing
10 changed files
with
95 additions
and
26 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5.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,10 +1,9 @@ | ||
//// [genericCallWithObjectTypeArgsAndConstraints5.ts] | ||
var c, d; | ||
function foo(t, t2) { | ||
return function(x) { | ||
return t2; | ||
}; | ||
} | ||
foo(d, c), foo(function() { | ||
foo(void 0, void 0), foo(function() { | ||
return 1; | ||
}, function() {}); |
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
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
f2e8f98
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
1878700661
ns/iter (± 89805750
)1872606370
ns/iter (± 28814422
)1.00
es/full/minify/libraries/d3
387487549
ns/iter (± 24752631
)408818375
ns/iter (± 10365027
)0.95
es/full/minify/libraries/echarts
1534913531
ns/iter (± 23733877
)1556083030
ns/iter (± 22452526
)0.99
es/full/minify/libraries/jquery
97368465
ns/iter (± 4243973
)107438676
ns/iter (± 2610596
)0.91
es/full/minify/libraries/lodash
110894793
ns/iter (± 3372872
)122351057
ns/iter (± 4167578
)0.91
es/full/minify/libraries/moment
56580540
ns/iter (± 3591013
)63166251
ns/iter (± 4496728
)0.90
es/full/minify/libraries/react
19357482
ns/iter (± 323906
)20288172
ns/iter (± 729913
)0.95
es/full/minify/libraries/terser
286703973
ns/iter (± 16566817
)332961845
ns/iter (± 10489824
)0.86
es/full/minify/libraries/three
531278510
ns/iter (± 14165660
)573051503
ns/iter (± 15863437
)0.93
es/full/minify/libraries/typescript
3328557689
ns/iter (± 802979766
)3506839155
ns/iter (± 38760004
)0.95
es/full/minify/libraries/victory
810374802
ns/iter (± 38787730
)839784095
ns/iter (± 15155773
)0.96
es/full/minify/libraries/vue
154479912
ns/iter (± 20640614
)162744039
ns/iter (± 6795135
)0.95
es/full/codegen/es3
34519
ns/iter (± 7662
)33584
ns/iter (± 506
)1.03
es/full/codegen/es5
34840
ns/iter (± 4451
)33710
ns/iter (± 1386
)1.03
es/full/codegen/es2015
34445
ns/iter (± 851
)33584
ns/iter (± 298
)1.03
es/full/codegen/es2016
34412
ns/iter (± 1871
)33479
ns/iter (± 1150
)1.03
es/full/codegen/es2017
34578
ns/iter (± 3276
)33574
ns/iter (± 1183
)1.03
es/full/codegen/es2018
34526
ns/iter (± 2179
)33680
ns/iter (± 1368
)1.03
es/full/codegen/es2019
34694
ns/iter (± 3055
)33555
ns/iter (± 627
)1.03
es/full/codegen/es2020
34937
ns/iter (± 3651
)33595
ns/iter (± 1748
)1.04
es/full/all/es3
197446931
ns/iter (± 17107172
)198952312
ns/iter (± 8206483
)0.99
es/full/all/es5
190941508
ns/iter (± 19185265
)187669861
ns/iter (± 8284866
)1.02
es/full/all/es2015
152983063
ns/iter (± 18275554
)148323910
ns/iter (± 5887815
)1.03
es/full/all/es2016
168569463
ns/iter (± 26540963
)148222332
ns/iter (± 5369974
)1.14
es/full/all/es2017
169171930
ns/iter (± 10811784
)147072768
ns/iter (± 4128915
)1.15
es/full/all/es2018
162416804
ns/iter (± 23845745
)145123540
ns/iter (± 6881844
)1.12
es/full/all/es2019
166985384
ns/iter (± 21256315
)145823732
ns/iter (± 7411974
)1.15
es/full/all/es2020
161254477
ns/iter (± 13654138
)139857363
ns/iter (± 5458051
)1.15
es/full/parser
749744
ns/iter (± 66676
)739990
ns/iter (± 26113
)1.01
es/full/base/fixer
27050
ns/iter (± 1496
)26922
ns/iter (± 528
)1.00
es/full/base/resolver_and_hygiene
97024
ns/iter (± 3363
)93381
ns/iter (± 2434
)1.04
serialization of ast node
212
ns/iter (± 10
)208
ns/iter (± 1
)1.02
serialization of serde
212
ns/iter (± 17
)209
ns/iter (± 3
)1.01
This comment was automatically generated by workflow using github-action-benchmark.