-
-
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.
feat(es/parser): Support auto accessors (#6981)
- Loading branch information
Showing
57 changed files
with
5,047 additions
and
452 deletions.
There are no files selected for viewing
17 changes: 6 additions & 11 deletions
17
crates/swc/tests/tsc-references/autoAccessor1(target=es2015).1.normal.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,12 +1,7 @@ | ||
//// [autoAccessor1.ts] | ||
//! | ||
//! x Unexpected token `a`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor a: any; | ||
//! : ^ | ||
//! 4 | accessor b = 1; | ||
//! 5 | static accessor c: any; | ||
//! 6 | static accessor d = 2; | ||
//! `---- | ||
class C1 { | ||
accessor a; | ||
accessor b = 1; | ||
static accessor c; | ||
static accessor d = 2; | ||
} |
11 changes: 0 additions & 11 deletions
11
crates/swc/tests/tsc-references/autoAccessor1(target=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,12 +1 @@ | ||
//// [autoAccessor1.ts] | ||
//! | ||
//! x Unexpected token `a`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor a: any; | ||
//! : ^ | ||
//! 4 | accessor b = 1; | ||
//! 5 | static accessor c: any; | ||
//! 6 | static accessor d = 2; | ||
//! `---- |
17 changes: 6 additions & 11 deletions
17
crates/swc/tests/tsc-references/autoAccessor1(target=es2022).1.normal.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,12 +1,7 @@ | ||
//// [autoAccessor1.ts] | ||
//! | ||
//! x Unexpected token `a`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor a: any; | ||
//! : ^ | ||
//! 4 | accessor b = 1; | ||
//! 5 | static accessor c: any; | ||
//! 6 | static accessor d = 2; | ||
//! `---- | ||
class C1 { | ||
accessor a; | ||
accessor b = 1; | ||
static accessor c; | ||
static accessor d = 2; | ||
} |
11 changes: 0 additions & 11 deletions
11
crates/swc/tests/tsc-references/autoAccessor1(target=es2022).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,12 +1 @@ | ||
//// [autoAccessor1.ts] | ||
//! | ||
//! x Unexpected token `a`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor a: any; | ||
//! : ^ | ||
//! 4 | accessor b = 1; | ||
//! 5 | static accessor c: any; | ||
//! 6 | static accessor d = 2; | ||
//! `---- |
35 changes: 24 additions & 11 deletions
35
crates/swc/tests/tsc-references/autoAccessor10.1.normal.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,12 +1,25 @@ | ||
//// [autoAccessor10.ts] | ||
//! | ||
//! x Unexpected token `a0`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor a0 = 1; | ||
//! : ^^ | ||
//! 4 | } | ||
//! 5 | | ||
//! 6 | class C2 { | ||
//! `---- | ||
class C1 { | ||
accessor a0 = 1; | ||
} | ||
class C2 { | ||
#a1_accessor_storage = 1; | ||
accessor a1 = 2; | ||
} | ||
class C3 { | ||
static #a2_accessor_storage = 1; | ||
static{ | ||
class C3_Inner { | ||
accessor a2 = 2; | ||
static{ | ||
#a2_accessor_storage in C3; | ||
} | ||
} | ||
} | ||
} | ||
class C4_1 { | ||
static accessor a3 = 1; | ||
} | ||
class C4_2 { | ||
static accessor a3 = 1; | ||
} |
15 changes: 4 additions & 11 deletions
15
crates/swc/tests/tsc-references/autoAccessor10.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,12 +1,5 @@ | ||
//// [autoAccessor10.ts] | ||
//! | ||
//! x Unexpected token `a0`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor a0 = 1; | ||
//! : ^^ | ||
//! 4 | } | ||
//! 5 | | ||
//! 6 | class C2 { | ||
//! `---- | ||
class C3 { | ||
static #a2_accessor_storage = 1; | ||
static{} | ||
} |
25 changes: 14 additions & 11 deletions
25
crates/swc/tests/tsc-references/autoAccessor2(target=es2022).1.normal.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,12 +1,15 @@ | ||
//// [autoAccessor2.ts] | ||
//! | ||
//! x Unexpected token `#`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor #a: any; | ||
//! : ^ | ||
//! 4 | accessor #b = 1; | ||
//! 5 | static accessor #c: any; | ||
//! 6 | static accessor #d = 2; | ||
//! `---- | ||
class C1 { | ||
accessor #a; | ||
accessor #b = 1; | ||
static accessor #c; | ||
static accessor #d = 2; | ||
constructor(){ | ||
this.#a = 3; | ||
this.#b = 4; | ||
} | ||
static{ | ||
this.#c = 5; | ||
this.#d = 6; | ||
} | ||
} |
23 changes: 12 additions & 11 deletions
23
crates/swc/tests/tsc-references/autoAccessor2(target=es2022).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,12 +1,13 @@ | ||
//// [autoAccessor2.ts] | ||
//! | ||
//! x Unexpected token `#`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor #a: any; | ||
//! : ^ | ||
//! 4 | accessor #b = 1; | ||
//! 5 | static accessor #c: any; | ||
//! 6 | static accessor #d = 2; | ||
//! `---- | ||
class C1 { | ||
accessor #a; | ||
accessor #b = 1; | ||
static accessor #c; | ||
static accessor #d = 2; | ||
constructor(){ | ||
this.#a = 3, this.#b = 4; | ||
} | ||
static{ | ||
this.#c = 5, this.#d = 6; | ||
} | ||
} |
17 changes: 6 additions & 11 deletions
17
crates/swc/tests/tsc-references/autoAccessor3(target=es2015).1.normal.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,12 +1,7 @@ | ||
//// [autoAccessor3.ts] | ||
//! | ||
//! x Unexpected token `string literal (w, "w")`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor "w": any; | ||
//! : ^^^ | ||
//! 4 | accessor "x" = 1; | ||
//! 5 | static accessor "y": any; | ||
//! 6 | static accessor "z" = 2; | ||
//! `---- | ||
class C1 { | ||
accessor "w"; | ||
accessor "x" = 1; | ||
static accessor "y"; | ||
static accessor "z" = 2; | ||
} |
11 changes: 0 additions & 11 deletions
11
crates/swc/tests/tsc-references/autoAccessor3(target=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,12 +1 @@ | ||
//// [autoAccessor3.ts] | ||
//! | ||
//! x Unexpected token `string literal (w, "w")`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor "w": any; | ||
//! : ^^^ | ||
//! 4 | accessor "x" = 1; | ||
//! 5 | static accessor "y": any; | ||
//! 6 | static accessor "z" = 2; | ||
//! `---- |
17 changes: 6 additions & 11 deletions
17
crates/swc/tests/tsc-references/autoAccessor3(target=es2022).1.normal.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,12 +1,7 @@ | ||
//// [autoAccessor3.ts] | ||
//! | ||
//! x Unexpected token `string literal (w, "w")`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor "w": any; | ||
//! : ^^^ | ||
//! 4 | accessor "x" = 1; | ||
//! 5 | static accessor "y": any; | ||
//! 6 | static accessor "z" = 2; | ||
//! `---- | ||
class C1 { | ||
accessor "w"; | ||
accessor "x" = 1; | ||
static accessor "y"; | ||
static accessor "z" = 2; | ||
} |
11 changes: 0 additions & 11 deletions
11
crates/swc/tests/tsc-references/autoAccessor3(target=es2022).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,12 +1 @@ | ||
//// [autoAccessor3.ts] | ||
//! | ||
//! x Unexpected token `string literal (w, "w")`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor "w": any; | ||
//! : ^^^ | ||
//! 4 | accessor "x" = 1; | ||
//! 5 | static accessor "y": any; | ||
//! 6 | static accessor "z" = 2; | ||
//! `---- |
17 changes: 6 additions & 11 deletions
17
crates/swc/tests/tsc-references/autoAccessor4(target=es2015).1.normal.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,12 +1,7 @@ | ||
//// [autoAccessor4.ts] | ||
//! | ||
//! x Unexpected token `numeric literal (0, 0)`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor 0: any; | ||
//! : ^ | ||
//! 4 | accessor 1 = 1; | ||
//! 5 | static accessor 2: any; | ||
//! 6 | static accessor 3 = 2; | ||
//! `---- | ||
class C1 { | ||
accessor 0; | ||
accessor 1 = 1; | ||
static accessor 2; | ||
static accessor 3 = 2; | ||
} |
11 changes: 0 additions & 11 deletions
11
crates/swc/tests/tsc-references/autoAccessor4(target=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,12 +1 @@ | ||
//// [autoAccessor4.ts] | ||
//! | ||
//! x Unexpected token `numeric literal (0, 0)`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor 0: any; | ||
//! : ^ | ||
//! 4 | accessor 1 = 1; | ||
//! 5 | static accessor 2: any; | ||
//! 6 | static accessor 3 = 2; | ||
//! `---- |
17 changes: 6 additions & 11 deletions
17
crates/swc/tests/tsc-references/autoAccessor4(target=es2022).1.normal.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,12 +1,7 @@ | ||
//// [autoAccessor4.ts] | ||
//! | ||
//! x Unexpected token `numeric literal (0, 0)`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor 0: any; | ||
//! : ^ | ||
//! 4 | accessor 1 = 1; | ||
//! 5 | static accessor 2: any; | ||
//! 6 | static accessor 3 = 2; | ||
//! `---- | ||
class C1 { | ||
accessor 0; | ||
accessor 1 = 1; | ||
static accessor 2; | ||
static accessor 3 = 2; | ||
} |
11 changes: 0 additions & 11 deletions
11
crates/swc/tests/tsc-references/autoAccessor4(target=es2022).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,12 +1 @@ | ||
//// [autoAccessor4.ts] | ||
//! | ||
//! x Unexpected token `numeric literal (0, 0)`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor 0: any; | ||
//! : ^ | ||
//! 4 | accessor 1 = 1; | ||
//! 5 | static accessor 2: any; | ||
//! 6 | static accessor 3 = 2; | ||
//! `---- |
22 changes: 11 additions & 11 deletions
22
crates/swc/tests/tsc-references/autoAccessor6(target=es2022).1.normal.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,12 +1,12 @@ | ||
//// [autoAccessor6.ts] | ||
//! | ||
//! x Unexpected token `a`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor a: any; | ||
//! : ^ | ||
//! 4 | } | ||
//! 5 | | ||
//! 6 | class C2 extends C1 { | ||
//! `---- | ||
class C1 { | ||
accessor a; | ||
} | ||
class C2 extends C1 { | ||
a = 1; | ||
} | ||
class C3 extends C1 { | ||
get a() { | ||
return super.a; | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
crates/swc/tests/tsc-references/autoAccessor6(target=es2022).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,12 +1 @@ | ||
//// [autoAccessor6.ts] | ||
//! | ||
//! x Unexpected token `a`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor a: any; | ||
//! : ^ | ||
//! 4 | } | ||
//! 5 | | ||
//! 6 | class C2 extends C1 { | ||
//! `---- |
22 changes: 11 additions & 11 deletions
22
crates/swc/tests/tsc-references/autoAccessor7(target=es2022).1.normal.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,12 +1,12 @@ | ||
//// [autoAccessor7.ts] | ||
//! | ||
//! x Unexpected token `a`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | abstract class C1 { | ||
//! 3 | abstract accessor a: any; | ||
//! : ^ | ||
//! 4 | } | ||
//! 5 | | ||
//! 6 | class C2 extends C1 { | ||
//! `---- | ||
class C1 { | ||
accessor a; | ||
} | ||
class C2 extends C1 { | ||
accessor a = 1; | ||
} | ||
class C3 extends C1 { | ||
get a() { | ||
return 1; | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
crates/swc/tests/tsc-references/autoAccessor7(target=es2022).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,12 +1 @@ | ||
//// [autoAccessor7.ts] | ||
//! | ||
//! x Unexpected token `a`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | abstract class C1 { | ||
//! 3 | abstract accessor a: any; | ||
//! : ^ | ||
//! 4 | } | ||
//! 5 | | ||
//! 6 | class C2 extends C1 { | ||
//! `---- |
21 changes: 11 additions & 10 deletions
21
crates/swc/tests/tsc-references/autoAccessor8.1.normal.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,11 +1,12 @@ | ||
//// [autoAccessor8.ts] | ||
//! | ||
//! x Unexpected token `a`. Expected * for generator, private key, identifier or async | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | class C1 { | ||
//! 3 | accessor a: any; | ||
//! : ^ | ||
//! 4 | static accessor b: any; | ||
//! 5 | } | ||
//! `---- | ||
class C1 { | ||
accessor a; | ||
static accessor b; | ||
} | ||
function f() { | ||
class C3 { | ||
accessor a; | ||
static accessor b; | ||
} | ||
return C3; | ||
} |
Oops, something went wrong.
37533a2
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
308979
ns/iter (± 10471
)314084
ns/iter (± 9391
)0.98
es/full/minify/libraries/antd
1793269088
ns/iter (± 21641928
)1588457144
ns/iter (± 21539028
)1.13
es/full/minify/libraries/d3
334579618
ns/iter (± 12516853
)304951469
ns/iter (± 6789030
)1.10
es/full/minify/libraries/echarts
1391929807
ns/iter (± 20426417
)1249434770
ns/iter (± 15854145
)1.11
es/full/minify/libraries/jquery
95522833
ns/iter (± 1758477
)91352932
ns/iter (± 1025610
)1.05
es/full/minify/libraries/lodash
113377015
ns/iter (± 1762137
)106184096
ns/iter (± 1172911
)1.07
es/full/minify/libraries/moment
55041086
ns/iter (± 484478
)53513388
ns/iter (± 550503
)1.03
es/full/minify/libraries/react
20453097
ns/iter (± 401563
)19498362
ns/iter (± 356753
)1.05
es/full/minify/libraries/terser
275685393
ns/iter (± 9873278
)256693751
ns/iter (± 12710512
)1.07
es/full/minify/libraries/three
500770881
ns/iter (± 13538881
)438910030
ns/iter (± 5481993
)1.14
es/full/minify/libraries/typescript
3341333920
ns/iter (± 30660653
)3040808217
ns/iter (± 20358157
)1.10
es/full/minify/libraries/victory
771166567
ns/iter (± 12882426
)672819694
ns/iter (± 13986243
)1.15
es/full/minify/libraries/vue
138849950
ns/iter (± 2096687
)132506249
ns/iter (± 3141925
)1.05
es/full/codegen/es3
26280
ns/iter (± 39
)25365
ns/iter (± 55
)1.04
es/full/codegen/es5
26366
ns/iter (± 36
)25410
ns/iter (± 58
)1.04
es/full/codegen/es2015
26225
ns/iter (± 66
)25346
ns/iter (± 52
)1.03
es/full/codegen/es2016
26309
ns/iter (± 80
)25385
ns/iter (± 45
)1.04
es/full/codegen/es2017
26276
ns/iter (± 45
)25348
ns/iter (± 54
)1.04
es/full/codegen/es2018
26294
ns/iter (± 59
)25384
ns/iter (± 49
)1.04
es/full/codegen/es2019
26316
ns/iter (± 66
)25378
ns/iter (± 36
)1.04
es/full/codegen/es2020
26265
ns/iter (± 65
)25417
ns/iter (± 55
)1.03
es/full/all/es3
175779824
ns/iter (± 2324275
)173846974
ns/iter (± 3554449
)1.01
es/full/all/es5
167446544
ns/iter (± 2059274
)164870760
ns/iter (± 2582500
)1.02
es/full/all/es2015
130969962
ns/iter (± 1920203
)129311174
ns/iter (± 2844586
)1.01
es/full/all/es2016
128432235
ns/iter (± 1473077
)126244696
ns/iter (± 2125266
)1.02
es/full/all/es2017
127060503
ns/iter (± 2421775
)126540641
ns/iter (± 2467473
)1.00
es/full/all/es2018
124131098
ns/iter (± 1574410
)122180523
ns/iter (± 3325601
)1.02
es/full/all/es2019
123167484
ns/iter (± 1296282
)119937591
ns/iter (± 1457011
)1.03
es/full/all/es2020
117662908
ns/iter (± 1475738
)117526676
ns/iter (± 1704381
)1.00
es/full/parser
542954
ns/iter (± 9469
)544136
ns/iter (± 6640
)1.00
es/full/base/fixer
21952
ns/iter (± 34
)22031
ns/iter (± 28
)1.00
es/full/base/resolver_and_hygiene
82117
ns/iter (± 54
)81407
ns/iter (± 90
)1.01
serialization of ast node
123
ns/iter (± 0
)123
ns/iter (± 0
)1
serialization of serde
126
ns/iter (± 0
)126
ns/iter (± 0
)1
css/minify/libraries/bootstrap
29092611
ns/iter (± 294267
)27790679
ns/iter (± 84717
)1.05
css/visitor/compare/clone
2121038
ns/iter (± 18131
)2096578
ns/iter (± 12477
)1.01
css/visitor/compare/visit_mut_span
2293005
ns/iter (± 12747
)2292653
ns/iter (± 8803
)1.00
css/visitor/compare/visit_mut_span_panic
2376381
ns/iter (± 17183
)2338876
ns/iter (± 6206
)1.02
css/visitor/compare/fold_span
3132228
ns/iter (± 29351
)3059032
ns/iter (± 19238
)1.02
css/visitor/compare/fold_span_panic
3273107
ns/iter (± 35982
)3193631
ns/iter (± 20055
)1.02
css/lexer/bootstrap_5_1_3
5208661
ns/iter (± 6325
)5159742
ns/iter (± 3294
)1.01
css/lexer/foundation_6_7_4
4383311
ns/iter (± 1226
)4338508
ns/iter (± 798
)1.01
css/lexer/tailwind_3_1_1
836183
ns/iter (± 841
)826838
ns/iter (± 252
)1.01
css/parser/bootstrap_5_1_3
21971143
ns/iter (± 168428
)21659134
ns/iter (± 68147
)1.01
css/parser/foundation_6_7_4
17741091
ns/iter (± 120064
)17260272
ns/iter (± 37007
)1.03
css/parser/tailwind_3_1_1
3321895
ns/iter (± 3796
)3323632
ns/iter (± 5211
)1.00
es/codegen/colors
332252
ns/iter (± 185176
)327955
ns/iter (± 184985
)1.01
es/codegen/large
1199734
ns/iter (± 605831
)1221242
ns/iter (± 635916
)0.98
es/codegen/with-parser/colors
48481
ns/iter (± 289
)48429
ns/iter (± 330
)1.00
es/codegen/with-parser/large
530103
ns/iter (± 1655
)532161
ns/iter (± 1630
)1.00
es/minify/libraries/antd
1586843834
ns/iter (± 24945559
)1400320035
ns/iter (± 12773181
)1.13
es/minify/libraries/d3
287568168
ns/iter (± 6065408
)250804246
ns/iter (± 1507459
)1.15
es/minify/libraries/echarts
1184333998
ns/iter (± 11851997
)1054509302
ns/iter (± 18728839
)1.12
es/minify/libraries/jquery
81748273
ns/iter (± 1561123
)79236384
ns/iter (± 1112750
)1.03
es/minify/libraries/lodash
100235888
ns/iter (± 990225
)95918717
ns/iter (± 1879574
)1.05
es/minify/libraries/moment
47238108
ns/iter (± 331369
)46042413
ns/iter (± 389399
)1.03
es/minify/libraries/react
17675187
ns/iter (± 104728
)17146605
ns/iter (± 228036
)1.03
es/minify/libraries/terser
238529720
ns/iter (± 5258523
)210903208
ns/iter (± 2435694
)1.13
es/minify/libraries/three
423010923
ns/iter (± 9694654
)369804391
ns/iter (± 5445774
)1.14
es/minify/libraries/typescript
2846877635
ns/iter (± 21331509
)2565010695
ns/iter (± 23049446
)1.11
es/minify/libraries/victory
661486803
ns/iter (± 22140743
)556030615
ns/iter (± 12596497
)1.19
es/minify/libraries/vue
122244027
ns/iter (± 1540139
)117076774
ns/iter (± 2356848
)1.04
es/visitor/compare/clone
2416203
ns/iter (± 27867
)2384610
ns/iter (± 15165
)1.01
es/visitor/compare/visit_mut_span
2822536
ns/iter (± 15269
)2796049
ns/iter (± 3703
)1.01
es/visitor/compare/visit_mut_span_panic
2871995
ns/iter (± 8476
)2826372
ns/iter (± 7147
)1.02
es/visitor/compare/fold_span
3991633
ns/iter (± 13407
)3916611
ns/iter (± 9677
)1.02
es/visitor/compare/fold_span_panic
4210565
ns/iter (± 39619
)4090962
ns/iter (± 19099
)1.03
es/lexer/colors
16804
ns/iter (± 36
)17213
ns/iter (± 74
)0.98
es/lexer/angular
7845818
ns/iter (± 4201
)8257508
ns/iter (± 3040
)0.95
es/lexer/backbone
1067780
ns/iter (± 761
)1085920
ns/iter (± 4245
)0.98
es/lexer/jquery
5967154
ns/iter (± 4413
)5985737
ns/iter (± 3300
)1.00
es/lexer/jquery mobile
9159078
ns/iter (± 3577
)9245052
ns/iter (± 18373
)0.99
es/lexer/mootools
4716295
ns/iter (± 3629
)4683698
ns/iter (± 2503
)1.01
es/lexer/underscore
894780
ns/iter (± 397
)904357
ns/iter (± 158
)0.99
es/lexer/three
28000828
ns/iter (± 43091
)27840289
ns/iter (± 16551
)1.01
es/lexer/yui
5024431
ns/iter (± 3646
)5065703
ns/iter (± 2296
)0.99
es/parser/colors
30286
ns/iter (± 50
)31645
ns/iter (± 66
)0.96
es/parser/angular
15744875
ns/iter (± 296318
)16021970
ns/iter (± 88901
)0.98
es/parser/backbone
2308349
ns/iter (± 25885
)2340416
ns/iter (± 12192
)0.99
es/parser/jquery
12575622
ns/iter (± 126714
)12698662
ns/iter (± 53167
)0.99
es/parser/jquery mobile
20571011
ns/iter (± 205345
)19868309
ns/iter (± 163543
)1.04
es/parser/mootools
9587079
ns/iter (± 54678
)9678993
ns/iter (± 35343
)0.99
es/parser/underscore
1962784
ns/iter (± 12068
)1998326
ns/iter (± 13446
)0.98
es/parser/three
61024523
ns/iter (± 315517
)58911752
ns/iter (± 717724
)1.04
es/parser/yui
9669604
ns/iter (± 101958
)9738811
ns/iter (± 43481
)0.99
es/preset-env/usage/builtin_type
140296
ns/iter (± 31292
)139404
ns/iter (± 31098
)1.01
es/preset-env/usage/property
21221
ns/iter (± 83
)21420
ns/iter (± 67
)0.99
es/resolver/typescript
125553625
ns/iter (± 4804946
)115778106
ns/iter (± 3100923
)1.08
es/fixer/typescript
99353771
ns/iter (± 2370167
)84924806
ns/iter (± 790367
)1.17
es/hygiene/typescript
214992426
ns/iter (± 2035063
)181337076
ns/iter (± 1166565
)1.19
es/resolver_with_hygiene/typescript
361768327
ns/iter (± 1942129
)309686896
ns/iter (± 1720156
)1.17
es/visitor/base-perf/module_clone
75666
ns/iter (± 1016
)75542
ns/iter (± 1601
)1.00
es/visitor/base-perf/fold_empty
85671
ns/iter (± 1743
)86550
ns/iter (± 1521
)0.99
es/visitor/base-perf/fold_noop_impl_all
85350
ns/iter (± 1476
)87303
ns/iter (± 2115
)0.98
es/visitor/base-perf/fold_noop_impl_vec
85778
ns/iter (± 1285
)86399
ns/iter (± 808
)0.99
es/visitor/base-perf/boxing_boxed_clone
56
ns/iter (± 0
)56
ns/iter (± 0
)1
es/visitor/base-perf/boxing_unboxed_clone
61
ns/iter (± 0
)59
ns/iter (± 0
)1.03
es/visitor/base-perf/boxing_boxed
103
ns/iter (± 0
)105
ns/iter (± 0
)0.98
es/visitor/base-perf/boxing_unboxed
104
ns/iter (± 0
)104
ns/iter (± 0
)1
es/visitor/base-perf/visit_contains_this
3646
ns/iter (± 102
)3397
ns/iter (± 71
)1.07
es/base/parallel/resolver/typescript
5811740259
ns/iter (± 586226754
)5641606324
ns/iter (± 356649427
)1.03
es/base/parallel/hygiene/typescript
2404608101
ns/iter (± 35635591
)2162540345
ns/iter (± 30876627
)1.11
misc/visitors/time-complexity/time 5
96
ns/iter (± 0
)107
ns/iter (± 0
)0.90
misc/visitors/time-complexity/time 10
317
ns/iter (± 5
)328
ns/iter (± 1
)0.97
misc/visitors/time-complexity/time 15
653
ns/iter (± 22
)668
ns/iter (± 0
)0.98
misc/visitors/time-complexity/time 20
1189
ns/iter (± 4
)1229
ns/iter (± 0
)0.97
misc/visitors/time-complexity/time 40
6509
ns/iter (± 2
)6323
ns/iter (± 50
)1.03
misc/visitors/time-complexity/time 60
16858
ns/iter (± 19
)15611
ns/iter (± 9
)1.08
es/full-target/es2016
188835
ns/iter (± 609
)189783
ns/iter (± 431
)1.00
es/full-target/es2017
183672
ns/iter (± 806
)184247
ns/iter (± 671
)1.00
es/full-target/es2018
171780
ns/iter (± 321
)173850
ns/iter (± 652
)0.99
es2020_nullish_coalescing
66810
ns/iter (± 154
)67221
ns/iter (± 132
)0.99
es2020_optional_chaining
96865
ns/iter (± 176
)95479
ns/iter (± 7451
)1.01
es2022_class_properties
93664
ns/iter (± 198
)94381
ns/iter (± 184
)0.99
es2018_object_rest_spread
71429
ns/iter (± 144
)72120
ns/iter (± 80
)0.99
es2019_optional_catch_binding
61496
ns/iter (± 208
)61740
ns/iter (± 131
)1.00
es2017_async_to_generator
61730
ns/iter (± 149
)61999
ns/iter (± 117
)1.00
es2016_exponentiation
64940
ns/iter (± 268
)65343
ns/iter (± 114
)0.99
es2015_arrow
70648
ns/iter (± 129
)71003
ns/iter (± 343
)1.00
es2015_block_scoped_fn
66448
ns/iter (± 126
)66789
ns/iter (± 289
)0.99
es2015_block_scoping
138814
ns/iter (± 8213
)154852
ns/iter (± 9048
)0.90
es2015_classes
116922
ns/iter (± 406
)116704
ns/iter (± 221
)1.00
es2015_computed_props
61344
ns/iter (± 94
)61771
ns/iter (± 68
)0.99
es2015_destructuring
115887
ns/iter (± 236
)117342
ns/iter (± 213
)0.99
es2015_duplicate_keys
63907
ns/iter (± 110
)64369
ns/iter (± 72
)0.99
es2015_parameters
79853
ns/iter (± 217
)79905
ns/iter (± 87
)1.00
es2015_fn_name
67089
ns/iter (± 487
)66653
ns/iter (± 544
)1.01
es2015_for_of
64510
ns/iter (± 88
)64561
ns/iter (± 87
)1.00
es2015_instanceof
62979
ns/iter (± 89
)63228
ns/iter (± 90
)1.00
es2015_shorthand_property
60856
ns/iter (± 70
)61633
ns/iter (± 117
)0.99
es2015_spread
61060
ns/iter (± 83
)61400
ns/iter (± 555
)0.99
es2015_sticky_regex
62178
ns/iter (± 91
)62826
ns/iter (± 104
)0.99
es2015_typeof_symbol
62466
ns/iter (± 69
)62405
ns/iter (± 151
)1.00
es/transform/baseline/base
51999
ns/iter (± 92
)52321
ns/iter (± 88
)0.99
es/transform/baseline/common_reserved_word
62602
ns/iter (± 42
)63222
ns/iter (± 150
)0.99
es/transform/baseline/common_typescript
144393
ns/iter (± 5676
)143093
ns/iter (± 352
)1.01
es/target/es3
170576
ns/iter (± 295
)171265
ns/iter (± 197
)1.00
es/target/es2015
631502
ns/iter (± 1540
)632200
ns/iter (± 934
)1.00
es/target/es2016
65044
ns/iter (± 76
)65113
ns/iter (± 87
)1.00
es/target/es2017
61918
ns/iter (± 109
)61929
ns/iter (± 68
)1.00
es/target/es2018
82045
ns/iter (± 130
)82638
ns/iter (± 73
)0.99
es/target/es2020
132573
ns/iter (± 232
)133723
ns/iter (± 320
)0.99
babelify-only
670403
ns/iter (± 1108
)676513
ns/iter (± 933
)0.99
parse_and_babelify_angular
47206905
ns/iter (± 785210
)43333595
ns/iter (± 879010
)1.09
parse_and_babelify_backbone
5591634
ns/iter (± 51170
)5641749
ns/iter (± 80245
)0.99
parse_and_babelify_jquery
35081083
ns/iter (± 243709
)32520006
ns/iter (± 654977
)1.08
parse_and_babelify_jquery_mobile
59087298
ns/iter (± 550642
)54936952
ns/iter (± 1477429
)1.08
parse_and_babelify_mootools
35693225
ns/iter (± 751150
)33466986
ns/iter (± 649424
)1.07
parse_and_babelify_underscore
4458626
ns/iter (± 40208
)4484936
ns/iter (± 64793
)0.99
parse_and_babelify_yui
38920310
ns/iter (± 1546020
)33336559
ns/iter (± 480920
)1.17
html/minify/document/css_spec
43199471
ns/iter (± 475614
)41744446
ns/iter (± 371722
)1.03
html/minify/document/github
17665930
ns/iter (± 109607
)17486106
ns/iter (± 79344
)1.01
html/minify/document/stackoverflow
15947069
ns/iter (± 105521
)15708467
ns/iter (± 63736
)1.02
html/minify/document_fragment/css_spec
42048796
ns/iter (± 465582
)41103372
ns/iter (± 489617
)1.02
html/minify/document_fragment/github
16939530
ns/iter (± 53237
)16874579
ns/iter (± 67969
)1.00
html/minify/document_fragment/stackoverflow
15524511
ns/iter (± 101576
)15283034
ns/iter (± 63371
)1.02
html/document/visitor/compare/clone
341837
ns/iter (± 1258
)347724
ns/iter (± 5278
)0.98
html/document/visitor/compare/visit_mut_span
367213
ns/iter (± 1208
)369481
ns/iter (± 2621
)0.99
html/document/visitor/compare/visit_mut_span_panic
380470
ns/iter (± 1450
)379694
ns/iter (± 4638
)1.00
html/document/visitor/compare/fold_span
403916
ns/iter (± 1717
)404513
ns/iter (± 1309
)1.00
html/document/visitor/compare/fold_span_panic
459763
ns/iter (± 1731
)463101
ns/iter (± 2531
)0.99
html/document_fragment/visitor/compare/clone
336702
ns/iter (± 1838
)344304
ns/iter (± 2501
)0.98
html/document_fragment/visitor/compare/visit_mut_span
364798
ns/iter (± 1489
)372173
ns/iter (± 2365
)0.98
html/document_fragment/visitor/compare/visit_mut_span_panic
374874
ns/iter (± 3109
)381620
ns/iter (± 2150
)0.98
html/document_fragment/visitor/compare/fold_span
406837
ns/iter (± 2273
)403818
ns/iter (± 1686
)1.01
html/document_fragment/visitor/compare/fold_span_panic
460661
ns/iter (± 2996
)460125
ns/iter (± 1325
)1.00
html/lexer/css_2021_spec
15624433
ns/iter (± 11156
)15510174
ns/iter (± 14019
)1.01
html/lexer/github_com_17_05_2022
6044220
ns/iter (± 1174
)6025808
ns/iter (± 5868
)1.00
html/lexer/stackoverflow_com_17_05_2022
5672744
ns/iter (± 1632
)5627025
ns/iter (± 1358
)1.01
html/parser/parser_document/css_2021_spec
26854188
ns/iter (± 280735
)25876154
ns/iter (± 199903
)1.04
html/parser/parser_document/github_com_17_05_2022
8775936
ns/iter (± 8302
)8788371
ns/iter (± 10373
)1.00
html/parser/parser_document/stackoverflow_com_17_05_2022
7732183
ns/iter (± 9195
)7731985
ns/iter (± 7799
)1.00
html/parser/parser_document_fragment/css_2021_spec
26700764
ns/iter (± 387465
)25958997
ns/iter (± 252048
)1.03
html/parser/parser_document_fragment/github_com_17_05_2022
8819326
ns/iter (± 18052
)8768406
ns/iter (± 9735
)1.01
html/parser/parser_document_fragment/stackoverflow_com_17_05_2022
7764041
ns/iter (± 9053
)7762769
ns/iter (± 7697
)1.00
This comment was automatically generated by workflow using github-action-benchmark.