-
-
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.
refactor(es/minifier): Simplify analyzer context (#8164)
- Loading branch information
Showing
40 changed files
with
665 additions
and
766 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
function c(r, n) { | ||
let e = new Uint8Array(4 * r * r), c = (r - n) / 2; | ||
let e = new Uint8Array(4 * r * r); | ||
return { | ||
e, | ||
s: Math.sqrt(1.25), | ||
c | ||
c: (r - n) / 2 | ||
}; | ||
} |
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
4 changes: 2 additions & 2 deletions
4
crates/swc/tests/tsc-references/genericInstantiationEquivalentToObjectLiteral.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,3 +1,3 @@ | ||
//// [genericInstantiationEquivalentToObjectLiteral.ts] | ||
var y; | ||
f(y), f(y), f2(y), f2(y); | ||
var x, y; | ||
y = x = y, f(x), f(y), f2(x), f2(y); |
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.
bb02cdd
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
298578
ns/iter (± 6088
)286968
ns/iter (± 13402
)1.04
es/full/minify/libraries/antd
1486112444
ns/iter (± 35178749
)1341778784
ns/iter (± 34555597
)1.11
es/full/minify/libraries/d3
305182569
ns/iter (± 4329440
)286306825
ns/iter (± 5170624
)1.07
es/full/minify/libraries/echarts
1147726147
ns/iter (± 30730669
)1067359691
ns/iter (± 6750095
)1.08
es/full/minify/libraries/jquery
87261083
ns/iter (± 366871
)88372825
ns/iter (± 1481513
)0.99
es/full/minify/libraries/lodash
102735490
ns/iter (± 872426
)103991719
ns/iter (± 1009148
)0.99
es/full/minify/libraries/moment
51432789
ns/iter (± 204092
)52124565
ns/iter (± 525162
)0.99
es/full/minify/libraries/react
18341540
ns/iter (± 138944
)18704977
ns/iter (± 184640
)0.98
es/full/minify/libraries/terser
225852642
ns/iter (± 2099047
)227235382
ns/iter (± 2340466
)0.99
es/full/minify/libraries/three
408145521
ns/iter (± 3077060
)399464002
ns/iter (± 6224476
)1.02
es/full/minify/libraries/typescript
2752304274
ns/iter (± 12251041
)2680478939
ns/iter (± 12629551
)1.03
es/full/minify/libraries/victory
608725327
ns/iter (± 5454452
)580038489
ns/iter (± 7410687
)1.05
es/full/minify/libraries/vue
124798748
ns/iter (± 473786
)124713445
ns/iter (± 3522768
)1.00
es/full/codegen/es3
34337
ns/iter (± 75
)32617
ns/iter (± 364
)1.05
es/full/codegen/es5
34390
ns/iter (± 146
)33320
ns/iter (± 461
)1.03
es/full/codegen/es2015
34288
ns/iter (± 58
)32898
ns/iter (± 580
)1.04
es/full/codegen/es2016
34441
ns/iter (± 96
)32808
ns/iter (± 352
)1.05
es/full/codegen/es2017
34487
ns/iter (± 63
)32618
ns/iter (± 474
)1.06
es/full/codegen/es2018
34352
ns/iter (± 88
)32810
ns/iter (± 449
)1.05
es/full/codegen/es2019
34353
ns/iter (± 28
)32484
ns/iter (± 254
)1.06
es/full/codegen/es2020
34386
ns/iter (± 126
)32670
ns/iter (± 363
)1.05
es/full/all/es3
179891236
ns/iter (± 1293795
)176786074
ns/iter (± 1902496
)1.02
es/full/all/es5
173116742
ns/iter (± 1599540
)169610556
ns/iter (± 2622552
)1.02
es/full/all/es2015
130565278
ns/iter (± 1064861
)130014048
ns/iter (± 1460973
)1.00
es/full/all/es2016
129621999
ns/iter (± 1148681
)127266324
ns/iter (± 1828597
)1.02
es/full/all/es2017
129291073
ns/iter (± 711630
)126088478
ns/iter (± 1377105
)1.03
es/full/all/es2018
126850152
ns/iter (± 977508
)124710900
ns/iter (± 1891410
)1.02
es/full/all/es2019
126210845
ns/iter (± 381354
)123453731
ns/iter (± 1249807
)1.02
es/full/all/es2020
122093603
ns/iter (± 848551
)118648506
ns/iter (± 2712879
)1.03
es/full/parser
569697
ns/iter (± 2965
)539582
ns/iter (± 11633
)1.06
es/full/base/fixer
17622
ns/iter (± 175
)17106
ns/iter (± 315
)1.03
es/full/base/resolver_and_hygiene
85456
ns/iter (± 149
)81135
ns/iter (± 1381
)1.05
This comment was automatically generated by workflow using github-action-benchmark.