Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(es/compat): Add execution tests (#6312)
- Loading branch information
Showing
10 changed files
with
14 additions
and
0 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,2 @@ | ||
// input.js | ||
try { await; } catch { console.log("caught"); } |
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 @@ | ||
var [...x] = 0; |
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,2 @@ | ||
"use strict"; | ||
for ({} in [0]); |
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 @@ | ||
let [] = []; |
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 @@ | ||
class x { static { super.x = 0; } } |
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,2 @@ | ||
"use strict"; | ||
x = {} = null; |
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 @@ | ||
class x { static y = x = 0; } |
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,2 @@ | ||
var x = { x } = 0; | ||
console.log(x); |
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 @@ | ||
class x { static x = super.x += super.x += 0; } |
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 @@ | ||
switch ( 0 ) { case x : function x ( ) { } } |
0f9d930
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
372384
ns/iter (± 27393
)340738
ns/iter (± 30990
)1.09
es/full/minify/libraries/antd
1893827489
ns/iter (± 28147565
)1855953349
ns/iter (± 55052703
)1.02
es/full/minify/libraries/d3
431487477
ns/iter (± 9718736
)393567280
ns/iter (± 10591097
)1.10
es/full/minify/libraries/echarts
1604882396
ns/iter (± 34263537
)1531522597
ns/iter (± 71969395
)1.05
es/full/minify/libraries/jquery
112021162
ns/iter (± 4013332
)103538818
ns/iter (± 8282540
)1.08
es/full/minify/libraries/lodash
130063240
ns/iter (± 4871076
)128417537
ns/iter (± 5157873
)1.01
es/full/minify/libraries/moment
79692461
ns/iter (± 40675148
)65275093
ns/iter (± 6192070
)1.22
es/full/minify/libraries/react
21864149
ns/iter (± 1046778
)22914326
ns/iter (± 2051115
)0.95
es/full/minify/libraries/terser
342710511
ns/iter (± 24624716
)338876282
ns/iter (± 26168229
)1.01
es/full/minify/libraries/three
578737896
ns/iter (± 20108655
)560720392
ns/iter (± 20046470
)1.03
es/full/minify/libraries/typescript
3501546315
ns/iter (± 98268100
)3334931660
ns/iter (± 163276236
)1.05
es/full/minify/libraries/victory
886842836
ns/iter (± 43909574
)789340773
ns/iter (± 17877986
)1.12
es/full/minify/libraries/vue
181831222
ns/iter (± 6948066
)152667188
ns/iter (± 11238987
)1.19
es/full/codegen/es3
34529
ns/iter (± 1509
)34213
ns/iter (± 674
)1.01
es/full/codegen/es5
34828
ns/iter (± 1782
)34140
ns/iter (± 485
)1.02
es/full/codegen/es2015
34369
ns/iter (± 2158
)34143
ns/iter (± 395
)1.01
es/full/codegen/es2016
34477
ns/iter (± 1586
)34253
ns/iter (± 1055
)1.01
es/full/codegen/es2017
35037
ns/iter (± 1798
)34219
ns/iter (± 962
)1.02
es/full/codegen/es2018
34898
ns/iter (± 2154
)34166
ns/iter (± 635
)1.02
es/full/codegen/es2019
34755
ns/iter (± 2910
)34200
ns/iter (± 532
)1.02
es/full/codegen/es2020
34830
ns/iter (± 2770
)36642
ns/iter (± 2847
)0.95
es/full/all/es3
234477580
ns/iter (± 23829634
)252675992
ns/iter (± 105369439
)0.93
es/full/all/es5
222316374
ns/iter (± 21103175
)217022798
ns/iter (± 46944450
)1.02
es/full/all/es2015
177879271
ns/iter (± 15575301
)158795045
ns/iter (± 39687933
)1.12
es/full/all/es2016
175493400
ns/iter (± 13846705
)167980304
ns/iter (± 70551796
)1.04
es/full/all/es2017
179869077
ns/iter (± 14929096
)182830789
ns/iter (± 64900575
)0.98
es/full/all/es2018
175536372
ns/iter (± 17597542
)172030182
ns/iter (± 70326348
)1.02
es/full/all/es2019
169768528
ns/iter (± 12453266
)157737181
ns/iter (± 42420573
)1.08
es/full/all/es2020
162529409
ns/iter (± 9793856
)150371363
ns/iter (± 45892026
)1.08
es/full/parser
763265
ns/iter (± 50561
)778984
ns/iter (± 42277
)0.98
es/full/base/fixer
27575
ns/iter (± 1836
)28169
ns/iter (± 6191
)0.98
es/full/base/resolver_and_hygiene
95545
ns/iter (± 7614
)103426
ns/iter (± 8372
)0.92
serialization of ast node
218
ns/iter (± 10
)224
ns/iter (± 38
)0.97
serialization of serde
236
ns/iter (± 13
)225
ns/iter (± 11
)1.05
This comment was automatically generated by workflow using github-action-benchmark.