-
-
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.
- Loading branch information
Showing
28 changed files
with
313 additions
and
164 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...rences/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument_es2015.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,5 +1,5 @@ | ||
var A; | ||
!function(A1) { | ||
var beez; | ||
A1.beez2 = Array(), A1.beez = beez; | ||
A1.beez2 = [], A1.beez = beez; | ||
}(A || (A = {})); |
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
2 changes: 1 addition & 1 deletion
2
...ests/tsc-references/genericCallWithConstraintsTypeArgumentInference2_es2015.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,2 +1,2 @@ | ||
function foo(t) {} | ||
foo(1), foo(null), foo(new Object()), foo(1), foo(new Date()); | ||
foo(1), foo(null), foo({}), foo(1), foo(new Date()); |
2 changes: 1 addition & 1 deletion
2
...c/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference2_es5.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,2 +1,2 @@ | ||
function foo(t) {} | ||
foo(1), foo(null), foo(new Object()), foo(1), foo(new Date()); | ||
foo(1), foo(null), foo({}), foo(1), foo(new Date()); |
2 changes: 1 addition & 1 deletion
2
...s/swc/tests/tsc-references/genericCallWithGenericSignatureArguments3_es2015.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
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
27 changes: 22 additions & 5 deletions
27
crates/swc/tests/tsc-references/parser15.4.4.14-9-2_es2015.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,8 +1,25 @@ | ||
runTestCase(function() { | ||
var a = Array(!1, void 0, null, "0", { | ||
toString: function() { | ||
return 0; | ||
} | ||
}, -1.3333333333333, "str", -0, !0, 0, 1, 1, 0, !1, -4 / 3, -4 / 3); | ||
var a = [ | ||
!1, | ||
void 0, | ||
null, | ||
"0", | ||
{ | ||
toString: function() { | ||
return 0; | ||
} | ||
}, | ||
-1.3333333333333, | ||
"str", | ||
-0, | ||
!0, | ||
0, | ||
1, | ||
1, | ||
0, | ||
!1, | ||
-4 / 3, | ||
-4 / 3 | ||
]; | ||
if (14 === a.indexOf(-4 / 3) && 7 === a.indexOf(0) && 7 === a.indexOf(-0) && 10 === a.indexOf(1)) return !0; | ||
}); |
27 changes: 22 additions & 5 deletions
27
crates/swc/tests/tsc-references/parser15.4.4.14-9-2_es5.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,8 +1,25 @@ | ||
runTestCase(function() { | ||
var a = Array(!1, void 0, null, "0", { | ||
toString: function() { | ||
return 0; | ||
} | ||
}, -1.3333333333333, "str", -0, !0, 0, 1, 1, 0, !1, -4 / 3, -4 / 3); | ||
var a = [ | ||
!1, | ||
void 0, | ||
null, | ||
"0", | ||
{ | ||
toString: function() { | ||
return 0; | ||
} | ||
}, | ||
-1.3333333333333, | ||
"str", | ||
-0, | ||
!0, | ||
0, | ||
1, | ||
1, | ||
0, | ||
!1, | ||
-4 / 3, | ||
-4 / 3 | ||
]; | ||
if (14 === a.indexOf(-4 / 3) && 7 === a.indexOf(0) && 7 === a.indexOf(-0) && 10 === a.indexOf(1)) return !0; | ||
}); |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/subtypingWithOptionalProperties_es2015.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,4 +1,4 @@ | ||
var r = { | ||
s: new Object() | ||
s: {} | ||
}; | ||
r.s && r.s.toFixed(); |
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/tsc-references/subtypingWithOptionalProperties_es5.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,4 +1,4 @@ | ||
var r = { | ||
s: new Object() | ||
s: {} | ||
}; | ||
r.s && r.s.toFixed(); |
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.
47bdc6a
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
2235061938
ns/iter (± 105091516
)1745453280
ns/iter (± 58952994
)1.28
es/full/minify/libraries/d3
504527423
ns/iter (± 16991159
)407442172
ns/iter (± 3755802
)1.24
es/full/minify/libraries/echarts
2531061772
ns/iter (± 39462706
)2152943471
ns/iter (± 8568491
)1.18
es/full/minify/libraries/jquery
113846076
ns/iter (± 3635881
)89512909
ns/iter (± 469031
)1.27
es/full/minify/libraries/lodash
154855031
ns/iter (± 4645049
)126382077
ns/iter (± 532211
)1.23
es/full/minify/libraries/moment
65932380
ns/iter (± 1936911
)53150632
ns/iter (± 230069
)1.24
es/full/minify/libraries/react
21549302
ns/iter (± 272229
)17347661
ns/iter (± 42503
)1.24
es/full/minify/libraries/terser
806687606
ns/iter (± 17597735
)454959941
ns/iter (± 10831585
)1.77
es/full/minify/libraries/three
651975594
ns/iter (± 14584084
)525007983
ns/iter (± 17035607
)1.24
es/full/minify/libraries/typescript
5079260206
ns/iter (± 98075333
)4146207867
ns/iter (± 19831240
)1.23
es/full/minify/libraries/victory
941964462
ns/iter (± 22537778
)691697202
ns/iter (± 24977075
)1.36
es/full/minify/libraries/vue
175816579
ns/iter (± 6012800
)137557714
ns/iter (± 455153
)1.28
es/full/codegen/es3
40533
ns/iter (± 2932
)34065
ns/iter (± 144
)1.19
es/full/codegen/es5
39185
ns/iter (± 4378
)34109
ns/iter (± 132
)1.15
es/full/codegen/es2015
39262
ns/iter (± 2423
)34071
ns/iter (± 156
)1.15
es/full/codegen/es2016
40213
ns/iter (± 2103
)34059
ns/iter (± 174
)1.18
es/full/codegen/es2017
39024
ns/iter (± 2211
)34059
ns/iter (± 142
)1.15
es/full/codegen/es2018
38607
ns/iter (± 2274
)34057
ns/iter (± 161
)1.13
es/full/codegen/es2019
39686
ns/iter (± 6233
)34058
ns/iter (± 168
)1.17
es/full/codegen/es2020
39066
ns/iter (± 2436
)34062
ns/iter (± 154
)1.15
es/full/all/es3
230884443
ns/iter (± 8727756
)192490250
ns/iter (± 1251552
)1.20
es/full/all/es5
216987610
ns/iter (± 10116972
)180533530
ns/iter (± 1142722
)1.20
es/full/all/es2015
173377804
ns/iter (± 7589751
)145176920
ns/iter (± 1593559
)1.19
es/full/all/es2016
172029008
ns/iter (± 8973086
)144269928
ns/iter (± 1543644
)1.19
es/full/all/es2017
173948916
ns/iter (± 7838835
)143335423
ns/iter (± 1577464
)1.21
es/full/all/es2018
166952935
ns/iter (± 7596005
)142236081
ns/iter (± 1667527
)1.17
es/full/all/es2019
171308393
ns/iter (± 7230027
)142464646
ns/iter (± 2024955
)1.20
es/full/all/es2020
160869539
ns/iter (± 6365861
)136959339
ns/iter (± 1798442
)1.17
es/full/parser
766776
ns/iter (± 55563
)582253
ns/iter (± 52133
)1.32
es/full/base/fixer
41139
ns/iter (± 5221
)28083
ns/iter (± 207
)1.46
es/full/base/resolver_and_hygiene
191361
ns/iter (± 38840
)139761
ns/iter (± 1792
)1.37
serialization of ast node
206
ns/iter (± 11
)180
ns/iter (± 1
)1.14
serialization of serde
200
ns/iter (± 13
)182
ns/iter (± 0
)1.10
This comment was automatically generated by workflow using github-action-benchmark.