Skip to content

Commit

Permalink
refactor(es/ast): Remove unused fields (#7518)
Browse files Browse the repository at this point in the history
**Related issue:**

 - Closes #7347.
 - Closes #7487.
  • Loading branch information
kdy1 committed Jun 12, 2023
1 parent 96895b1 commit 3958f17
Show file tree
Hide file tree
Showing 264 changed files with 611 additions and 1,406 deletions.
1 change: 0 additions & 1 deletion crates/swc_bundler/src/bundler/keywords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ impl VisitMut for KeywordRenamer {
span: pat.span,
left: Box::new(Pat::Ident(renamed.into())),
right: default.take(),
type_ann: None,
})),
});
}
Expand Down
3 changes: 0 additions & 3 deletions crates/swc_ecma_ast/src/pat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ pub struct AssignPat {
pub left: Box<Pat>,

pub right: Box<Expr>,

#[cfg_attr(feature = "serde-impl", serde(default, rename = "typeAnnotation"))]
pub type_ann: Option<Box<TsTypeAnn>>,
}

/// EsTree `RestElement`
Expand Down
1 change: 0 additions & 1 deletion crates/swc_ecma_ast/src/typescript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,6 @@ pub enum TsModuleName {
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
pub struct TsImportEqualsDecl {
pub span: Span,
pub declare: bool,
pub is_export: bool,
pub is_type_only: bool,
pub id: Ident,
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_lints/src/rules/duplicate_exports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl Visit for DuplicateExports {
}

fn visit_ts_import_equals_decl(&mut self, n: &TsImportEqualsDecl) {
if n.is_export && !n.is_type_only && !n.declare {
if n.is_export && !n.is_type_only {
self.add(&n.id)
}
}
Expand Down
8 changes: 1 addition & 7 deletions crates/swc_ecma_parser/src/parser/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1860,11 +1860,6 @@ impl<I: Tokens> Parser<I> {
ref mut span,
..
})
| Pat::Assign(AssignPat {
ref mut type_ann,
ref mut span,
..
})
| Pat::Object(ObjectPat {
ref mut type_ann,
ref mut span,
Expand All @@ -1883,7 +1878,7 @@ impl<I: Tokens> Parser<I> {
*type_ann = new_type_ann;
}
Pat::Expr(ref expr) => unreachable!("invalid pattern: Expr({:?})", expr),
Pat::Invalid(..) => {
Pat::Assign(..) | Pat::Invalid(..) => {
// We don't have to panic here.
// See: https://github.com/swc-project/swc/issues/1170
//
Expand All @@ -1899,7 +1894,6 @@ impl<I: Tokens> Parser<I> {
span: span!(self, pat_start),
left: Box::new(pat),
right,
type_ann: None,
});
}

Expand Down
5 changes: 0 additions & 5 deletions crates/swc_ecma_parser/src/parser/pat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ impl<I: Tokens> Parser<I> {
span: span!(self, start),
left: Box::new(left),
right,
type_ann: None,
}));
}

Expand Down Expand Up @@ -262,7 +261,6 @@ impl<I: Tokens> Parser<I> {
Pat::Assign(AssignPat {
span: span!(self, start),
left: Box::new(pat),
type_ann: None,
right,
})
} else {
Expand Down Expand Up @@ -416,7 +414,6 @@ impl<I: Tokens> Parser<I> {
span: span!(self, pat_start),
left: Box::new(pat),
right,
type_ann: None,
}
.into();
}
Expand Down Expand Up @@ -607,7 +604,6 @@ impl<I: Tokens> Parser<I> {
PatOrExpr::Pat(left) => left,
},
right,
type_ann: None,
}))
}
Expr::Object(ObjectLit {
Expand Down Expand Up @@ -1051,7 +1047,6 @@ mod tests {
elems: vec![
None,
Some(Pat::Assign(AssignPat {
type_ann: None,
span,
left: Box::new(Pat::Ident(ident("a").into())),
right: Box::new(Expr::Lit(Lit::Num(Number {
Expand Down
8 changes: 2 additions & 6 deletions crates/swc_ecma_parser/src/parser/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -744,13 +744,13 @@ impl<'a, I: Tokens> Parser<I> {
Pat::Ident(BindingIdent { type_ann, .. })
| Pat::Array(ArrayPat { type_ann, .. })
| Pat::Rest(RestPat { type_ann, .. })
| Pat::Object(ObjectPat { type_ann, .. })
| Pat::Assign(AssignPat { type_ann, .. }) => {
| Pat::Object(ObjectPat { type_ann, .. }) => {
*type_ann = Some(Box::new(TsTypeAnn {
span: span!(self, type_ann_start),
type_ann: ty,
}));
}
Pat::Assign(..) => {}
Pat::Invalid(_) => {}
Pat::Expr(_) => {}
}
Expand Down Expand Up @@ -953,9 +953,6 @@ impl<'a, I: Tokens> Parser<I> {
Pat::Array(ArrayPat {
ref mut type_ann, ..
})
| Pat::Assign(AssignPat {
ref mut type_ann, ..
})
| Pat::Ident(BindingIdent {
ref mut type_ann, ..
})
Expand Down Expand Up @@ -1230,7 +1227,6 @@ impl<'a, I: Tokens> Parser<I> {
let type_ann = match decl.decls[0].name {
Pat::Ident(ref v) => Some(&v.type_ann),
Pat::Array(ref v) => Some(&v.type_ann),
Pat::Assign(ref v) => Some(&v.type_ann),
Pat::Rest(ref v) => Some(&v.type_ann),
Pat::Object(ref v) => Some(&v.type_ann),
_ => None,
Expand Down
1 change: 0 additions & 1 deletion crates/swc_ecma_parser/src/parser/typescript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,6 @@ impl<I: Tokens> Parser<I> {
expect!(self, ';');
Ok(Box::new(TsImportEqualsDecl {
span: span!(self, start),
declare: false,
id,
is_export,
is_type_only,
Expand Down
6 changes: 2 additions & 4 deletions crates/swc_ecma_parser/tests/tsc/ES5For-of26.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
}
},
{
"type": "AssignmentPattern",
Expand Down Expand Up @@ -96,8 +95,7 @@
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
}
],
"optional": false,
Expand Down
6 changes: 2 additions & 4 deletions crates/swc_ecma_parser/tests/tsc/ES5For-of27.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
}
}
},
{
Expand Down Expand Up @@ -121,8 +120,7 @@
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
}
}
],
Expand Down
6 changes: 2 additions & 4 deletions crates/swc_ecma_parser/tests/tsc/ES5For-of28.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
}
},
{
"type": "AssignmentPattern",
Expand Down Expand Up @@ -96,8 +95,7 @@
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
}
],
"optional": false,
Expand Down
6 changes: 2 additions & 4 deletions crates/swc_ecma_parser/tests/tsc/ES5For-of29.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
}
}
},
{
Expand Down Expand Up @@ -121,8 +120,7 @@
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
}
}
],
Expand Down
6 changes: 2 additions & 4 deletions crates/swc_ecma_parser/tests/tsc/ES5For-of30.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
},
{
"type": "AssignmentPattern",
Expand Down Expand Up @@ -286,8 +285,7 @@
},
"value": "",
"raw": "\"\""
},
"typeAnnotation": null
}
}
],
"optional": false,
Expand Down
6 changes: 2 additions & 4 deletions crates/swc_ecma_parser/tests/tsc/ES5For-of31.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
}
},
{
Expand Down Expand Up @@ -190,8 +189,7 @@
},
"value": "",
"raw": "\"\""
},
"typeAnnotation": null
}
}
}
],
Expand Down
6 changes: 2 additions & 4 deletions crates/swc_ecma_parser/tests/tsc/ES5For-of35.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
}
}
},
{
Expand Down Expand Up @@ -121,8 +120,7 @@
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
}
}
],
Expand Down
6 changes: 2 additions & 4 deletions crates/swc_ecma_parser/tests/tsc/ES5For-of36.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null
}
},
{
"type": "AssignmentPattern",
Expand Down Expand Up @@ -96,8 +95,7 @@
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null
}
}
],
"optional": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@
},
"value": "yield",
"optional": false
},
"typeAnnotation": null
}
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@
"end": 311,
"ctxt": 0
},
"declare": false,
"isExport": true,
"isTypeOnly": false,
"id": {
Expand Down Expand Up @@ -534,7 +533,6 @@
"end": 333,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@
"end": 364,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
Expand Down Expand Up @@ -212,7 +211,6 @@
"end": 519,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"end": 89,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
Expand Down
1 change: 0 additions & 1 deletion crates/swc_ecma_parser/tests/tsc/ambientShorthand.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@
"end": 259,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
"end": 122,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@
"end": 289,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
Expand Down Expand Up @@ -488,7 +487,6 @@
"end": 372,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,7 @@
},
"value": 10.0,
"raw": "10"
},
"typeAnnotation": null
}
}
],
"optional": false,
Expand Down

1 comment on commit 3958f17

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 3958f17 Previous: aa83584 Ratio
es/full/bugs-1 359138 ns/iter (± 8159) 359294 ns/iter (± 5949) 1.00
es/full/minify/libraries/antd 1907064900 ns/iter (± 52379943) 1927901500 ns/iter (± 20703065) 0.99
es/full/minify/libraries/d3 375283739 ns/iter (± 5150379) 403282520 ns/iter (± 3491392) 0.93
es/full/minify/libraries/echarts 1453411230 ns/iter (± 14619877) 1520686560 ns/iter (± 23854584) 0.96
es/full/minify/libraries/jquery 110026730 ns/iter (± 904286) 111388438 ns/iter (± 732215) 0.99
es/full/minify/libraries/lodash 132681451 ns/iter (± 901642) 135045298 ns/iter (± 908406) 0.98
es/full/minify/libraries/moment 63798188 ns/iter (± 470672) 66105822 ns/iter (± 435294) 0.97
es/full/minify/libraries/react 22970210 ns/iter (± 197155) 23441437 ns/iter (± 151514) 0.98
es/full/minify/libraries/terser 289851063 ns/iter (± 4678432) 306340258 ns/iter (± 3872685) 0.95
es/full/minify/libraries/three 535920552 ns/iter (± 6696827) 554829700 ns/iter (± 3163432) 0.97
es/full/minify/libraries/typescript 3582652287 ns/iter (± 18123537) 3783017529 ns/iter (± 46213333) 0.95
es/full/minify/libraries/victory 771738422 ns/iter (± 8331356) 813631987 ns/iter (± 19427288) 0.95
es/full/minify/libraries/vue 159040087 ns/iter (± 1342295) 162195406 ns/iter (± 2777889) 0.98
es/full/codegen/es3 40308 ns/iter (± 128) 40952 ns/iter (± 88) 0.98
es/full/codegen/es5 40275 ns/iter (± 181) 41106 ns/iter (± 262) 0.98
es/full/codegen/es2015 40318 ns/iter (± 85) 41044 ns/iter (± 78) 0.98
es/full/codegen/es2016 40359 ns/iter (± 110) 41046 ns/iter (± 71) 0.98
es/full/codegen/es2017 40445 ns/iter (± 55) 41048 ns/iter (± 92) 0.99
es/full/codegen/es2018 40416 ns/iter (± 103) 41124 ns/iter (± 62) 0.98
es/full/codegen/es2019 40280 ns/iter (± 125) 41065 ns/iter (± 37) 0.98
es/full/codegen/es2020 40285 ns/iter (± 81) 41136 ns/iter (± 48) 0.98
es/full/all/es3 214075821 ns/iter (± 2695771) 211602469 ns/iter (± 3208748) 1.01
es/full/all/es5 205202199 ns/iter (± 2297286) 199357938 ns/iter (± 2290952) 1.03
es/full/all/es2015 161521784 ns/iter (± 2096741) 158053527 ns/iter (± 2508246) 1.02
es/full/all/es2016 159320953 ns/iter (± 3349937) 157024835 ns/iter (± 2634793) 1.01
es/full/all/es2017 158445305 ns/iter (± 1184395) 155406512 ns/iter (± 1941962) 1.02
es/full/all/es2018 156253265 ns/iter (± 1467354) 153667132 ns/iter (± 2151060) 1.02
es/full/all/es2019 155346198 ns/iter (± 1581902) 154564965 ns/iter (± 1892514) 1.01
es/full/all/es2020 148927454 ns/iter (± 1364492) 145767895 ns/iter (± 2827757) 1.02
es/full/parser 608471 ns/iter (± 10710) 611408 ns/iter (± 12842) 1.00
es/full/base/fixer 25000 ns/iter (± 59) 24627 ns/iter (± 39) 1.02
es/full/base/resolver_and_hygiene 105360 ns/iter (± 91) 104456 ns/iter (± 114) 1.01
serialization of serde 282 ns/iter (± 0) 282 ns/iter (± 2) 1
css/minify/libraries/bootstrap 35908315 ns/iter (± 307166) 37510483 ns/iter (± 228857) 0.96
css/visitor/compare/clone 2363027 ns/iter (± 12818) 2697521 ns/iter (± 61128) 0.88
css/visitor/compare/visit_mut_span 2579363 ns/iter (± 3457) 2968429 ns/iter (± 8934) 0.87
css/visitor/compare/visit_mut_span_panic 2650742 ns/iter (± 6682) 3040260 ns/iter (± 8472) 0.87
css/visitor/compare/fold_span 3354210 ns/iter (± 22686) 3756894 ns/iter (± 22013) 0.89
css/visitor/compare/fold_span_panic 3547479 ns/iter (± 16576) 3959964 ns/iter (± 34513) 0.90
css/lexer/bootstrap_5_1_3 5545033 ns/iter (± 9629) 5559090 ns/iter (± 34530) 1.00
css/lexer/foundation_6_7_4 4676157 ns/iter (± 7596) 4697623 ns/iter (± 4113) 1.00
css/lexer/tailwind_3_1_1 888106 ns/iter (± 1827) 893726 ns/iter (± 1001) 0.99
css/parser/bootstrap_5_1_3 23911233 ns/iter (± 129006) 24517091 ns/iter (± 192532) 0.98
css/parser/foundation_6_7_4 19029594 ns/iter (± 36932) 19359512 ns/iter (± 47053) 0.98
css/parser/tailwind_3_1_1 3671159 ns/iter (± 7560) 3723374 ns/iter (± 4166) 0.99
es/codegen/colors 737230 ns/iter (± 397760) 723928 ns/iter (± 392829) 1.02
es/codegen/large 3119796 ns/iter (± 1629665) 3128445 ns/iter (± 1629519) 1.00
es/codegen/with-parser/colors 56942 ns/iter (± 502) 57661 ns/iter (± 508) 0.99
es/codegen/with-parser/large 569423 ns/iter (± 1151) 570846 ns/iter (± 988) 1.00
es/minify/libraries/antd 1650209047 ns/iter (± 21648591) 1811619977 ns/iter (± 55715069) 0.91
es/minify/libraries/d3 330238261 ns/iter (± 5648908) 363032435 ns/iter (± 5367565) 0.91
es/minify/libraries/echarts 1265191774 ns/iter (± 5978504) 1347667350 ns/iter (± 11732748) 0.94
es/minify/libraries/jquery 96778048 ns/iter (± 670987) 98655281 ns/iter (± 1176786) 0.98
es/minify/libraries/lodash 120626836 ns/iter (± 1162439) 123766432 ns/iter (± 1419470) 0.97
es/minify/libraries/moment 56349279 ns/iter (± 339623) 58927521 ns/iter (± 376144) 0.96
es/minify/libraries/react 20502718 ns/iter (± 168824) 20934740 ns/iter (± 98496) 0.98
es/minify/libraries/terser 251585943 ns/iter (± 1563181) 262302857 ns/iter (± 3048645) 0.96
es/minify/libraries/three 452914702 ns/iter (± 5823143) 474922665 ns/iter (± 5480620) 0.95
es/minify/libraries/typescript 3144553167 ns/iter (± 20107565) 3268780849 ns/iter (± 36969915) 0.96
es/minify/libraries/victory 675413811 ns/iter (± 7799387) 699803779 ns/iter (± 25206140) 0.97
es/minify/libraries/vue 144432275 ns/iter (± 827219) 144315305 ns/iter (± 710631) 1.00
es/visitor/compare/clone 2415054 ns/iter (± 8287) 2717118 ns/iter (± 7808) 0.89
es/visitor/compare/visit_mut_span 2804070 ns/iter (± 5512) 3103571 ns/iter (± 7094) 0.90
es/visitor/compare/visit_mut_span_panic 2848479 ns/iter (± 7772) 3174242 ns/iter (± 7787) 0.90
es/visitor/compare/fold_span 3932111 ns/iter (± 7387) 4284137 ns/iter (± 8765) 0.92
es/visitor/compare/fold_span_panic 4040003 ns/iter (± 42792) 4425718 ns/iter (± 9610) 0.91
es/lexer/colors 14648 ns/iter (± 26) 14632 ns/iter (± 18) 1.00
es/lexer/angular 6895916 ns/iter (± 13068) 6938690 ns/iter (± 6011) 0.99
es/lexer/backbone 843282 ns/iter (± 1519) 846102 ns/iter (± 1053) 1.00
es/lexer/jquery 4753080 ns/iter (± 5666) 4762889 ns/iter (± 3957) 1.00
es/lexer/jquery mobile 7364122 ns/iter (± 16770) 7369031 ns/iter (± 17673) 1.00
es/lexer/mootools 3735018 ns/iter (± 1065) 3734506 ns/iter (± 5152) 1.00
es/lexer/underscore 697340 ns/iter (± 1255) 698061 ns/iter (± 1505) 1.00
es/lexer/three 22246723 ns/iter (± 86336) 22461732 ns/iter (± 21015) 0.99
es/lexer/yui 4264273 ns/iter (± 13427) 4299964 ns/iter (± 1954) 0.99
es/parser/colors 33800 ns/iter (± 56) 33525 ns/iter (± 89) 1.01
es/parser/angular 16906453 ns/iter (± 79384) 16947595 ns/iter (± 186333) 1.00
es/parser/backbone 2446224 ns/iter (± 15061) 2429716 ns/iter (± 11925) 1.01
es/parser/jquery 13335312 ns/iter (± 121120) 13304031 ns/iter (± 233351) 1.00
es/parser/jquery mobile 20654929 ns/iter (± 140416) 21673409 ns/iter (± 331836) 0.95
es/parser/mootools 10083823 ns/iter (± 33038) 10073288 ns/iter (± 28325) 1.00
es/parser/underscore 2083733 ns/iter (± 14812) 2071241 ns/iter (± 12110) 1.01
es/parser/three 59497653 ns/iter (± 783215) 60914739 ns/iter (± 561933) 0.98
es/parser/yui 10249447 ns/iter (± 61579) 10221097 ns/iter (± 69169) 1.00
es/preset-env/usage/builtin_type 153501 ns/iter (± 34229) 154849 ns/iter (± 34402) 0.99
es/preset-env/usage/property 28643 ns/iter (± 87) 29395 ns/iter (± 64) 0.97
es/resolver/typescript 125036082 ns/iter (± 2840973) 141803038 ns/iter (± 2574590) 0.88
es/fixer/typescript 85089468 ns/iter (± 2242102) 97297573 ns/iter (± 5367957) 0.87
es/hygiene/typescript 194254988 ns/iter (± 1350260) 219756193 ns/iter (± 3077788) 0.88
es/resolver_with_hygiene/typescript 411917437 ns/iter (± 2555078) 435979339 ns/iter (± 4365102) 0.94
es/visitor/base-perf/module_clone 85279 ns/iter (± 541) 84321 ns/iter (± 303) 1.01
es/visitor/base-perf/fold_empty 94999 ns/iter (± 183) 94180 ns/iter (± 458) 1.01
es/visitor/base-perf/fold_noop_impl_all 95118 ns/iter (± 512) 94175 ns/iter (± 377) 1.01
es/visitor/base-perf/fold_noop_impl_vec 95808 ns/iter (± 246) 94490 ns/iter (± 491) 1.01
es/visitor/base-perf/boxing_boxed_clone 60 ns/iter (± 0) 61 ns/iter (± 0) 0.98
es/visitor/base-perf/boxing_unboxed_clone 44 ns/iter (± 0) 44 ns/iter (± 0) 1
es/visitor/base-perf/boxing_boxed 106 ns/iter (± 0) 113 ns/iter (± 6) 0.94
es/visitor/base-perf/boxing_unboxed 82 ns/iter (± 0) 82 ns/iter (± 0) 1
es/visitor/base-perf/visit_contains_this 3498 ns/iter (± 82) 3424 ns/iter (± 44) 1.02
es/base/parallel/resolver/typescript 7106635553 ns/iter (± 480774995) 7416636769 ns/iter (± 418399096) 0.96
es/base/parallel/hygiene/typescript 2360723451 ns/iter (± 17994504) 2381030417 ns/iter (± 31505483) 0.99
misc/visitors/time-complexity/time 5 104 ns/iter (± 0) 105 ns/iter (± 0) 0.99
misc/visitors/time-complexity/time 10 314 ns/iter (± 2) 351 ns/iter (± 7) 0.89
misc/visitors/time-complexity/time 15 623 ns/iter (± 12) 692 ns/iter (± 0) 0.90
misc/visitors/time-complexity/time 20 1157 ns/iter (± 1) 1278 ns/iter (± 4) 0.91
misc/visitors/time-complexity/time 40 6088 ns/iter (± 30) 6810 ns/iter (± 65) 0.89
misc/visitors/time-complexity/time 60 15231 ns/iter (± 27) 17636 ns/iter (± 13) 0.86
es/full-target/es2016 270939 ns/iter (± 583) 269618 ns/iter (± 2372) 1.00
es/full-target/es2017 259736 ns/iter (± 344) 259951 ns/iter (± 417) 1.00
es/full-target/es2018 248875 ns/iter (± 467) 249088 ns/iter (± 299) 1.00
es2020_nullish_coalescing 99108 ns/iter (± 504) 98115 ns/iter (± 267) 1.01
es2020_optional_chaining 122566 ns/iter (± 311) 121110 ns/iter (± 586) 1.01
es2022_class_properties 156717 ns/iter (± 343) 155953 ns/iter (± 369) 1.00
es2018_object_rest_spread 100989 ns/iter (± 321) 99519 ns/iter (± 295) 1.01
es2019_optional_catch_binding 89423 ns/iter (± 238) 88371 ns/iter (± 228) 1.01
es2017_async_to_generator 90121 ns/iter (± 324) 89090 ns/iter (± 278) 1.01
es2016_exponentiation 96543 ns/iter (± 330) 95613 ns/iter (± 225) 1.01
es2015_arrow 99330 ns/iter (± 302) 98564 ns/iter (± 176) 1.01
es2015_block_scoped_fn 97476 ns/iter (± 291) 96011 ns/iter (± 325) 1.02
es2015_block_scoping 184846 ns/iter (± 334) 184122 ns/iter (± 266) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.