Skip to content

Commit

Permalink
fix(es/codegen): Emit leading comments for ExprStmt (#7916)
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Sep 10, 2023
1 parent 3210556 commit 2da5895
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 3 deletions.
Expand Up @@ -126,6 +126,7 @@ class Shard extends _utils.Emitter {
} else if (emit) {
this.emit(_utils.ShardEvent.DESTROYED);
}
// (Step 3) Make the websocket connection prop undefined.
_class_private_field_set._(this, _ws1, undefined);
// (Step 4) Set the shard status to disconnected.
this.status = _utils.Status.DISCONNECTED;
Expand All @@ -138,6 +139,7 @@ class Shard extends _utils.Emitter {
_class_private_field_set._(this, _seq, -1);
this.session.reset();
}
// (Step 7) Reset ze bucket!
_class_private_field_set._(this, _bucket, new _utils.Bucket(120, 6e4));
}
connect() {
Expand Down Expand Up @@ -406,6 +408,7 @@ class Shard extends _utils.Emitter {
* Guilds that are expected to be received.
* @type {Set<string>}
*/ this.expectedGuilds = new Set();
// Private shit
_class_private_field_set._(this, _seq, -1);
_class_private_field_set._(this, _closingSeq, 0);
_class_private_field_set._(this, _queue, []);
Expand Down
1 change: 1 addition & 0 deletions crates/swc/tests/fixture/issues-2xxx/2926/output/index.js
@@ -1,5 +1,6 @@
export var webpackJsonpCallback = function(parentChunkLoadingFunction, data) {
/******/ var runtime = data[2];
//......
runtime && runtime(__webpack_require__);
// return result
};
Expand Up @@ -2,6 +2,7 @@
/************************************************************************/ /******/ /******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = {
/***/ 746: /***/ function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__1) {
// originally from react
Object.prototype.hasOwnProperty;
// END MY ACTUAL CODE
/***/ }
Expand Down
Expand Up @@ -728,6 +728,7 @@ function _simulateTransaction() {
// @ts-ignore
transaction.recentBlockhash = _state.sent();
signData = transaction.serializeMessage();
// @ts-ignore
wireTransaction = transaction._serialize(signData);
encodedTransaction = wireTransaction.toString("base64");
config = {
Expand Down
Expand Up @@ -159,6 +159,8 @@ var Router = /*#__PURE__*/ function() {
if (!_this.urlIsNew(cleanedAs) && !localeChange) {
method = "replaceState";
}
// we need to resolve the as value using rewrites for dynamic SSG
// pages to allow building the data URL correctly
resolvedAs = as;
// url and as should always be prefixed with basePath by this
// point by either next/link or router.push/replace so strip the
Expand Down Expand Up @@ -315,6 +317,7 @@ var Router = /*#__PURE__*/ function() {
// when updating query information
props.pageProps.statusCode = 500;
}
// shallow routing is only allowed for same page URL changes.
isValidShallowRoute = options.shallow && _this.route === route;
shouldScroll = (_options_scroll = options.scroll) !== null && _options_scroll !== void 0 ? _options_scroll : !isValidShallowRoute;
resetScroll = shouldScroll ? {
Expand Down
7 changes: 6 additions & 1 deletion crates/swc/tests/fixture/sourcemap/006/output/index.js
Expand Up @@ -5,7 +5,12 @@ it("should compress avif smaller than webp and smaller than jpg", /*#__PURE__*/
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
query = {
/**
*
* 'Foo bar baz'
*
* Return @
*/ query = {
url: "/test.jpg",
w: w,
q: 75
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/fixture/sourcemap/006/output/index.map
@@ -1,5 +1,5 @@
{
"mappings": ";;AAAAA,GAAG,6EAA+D,oBAAA;QAOxDC,OACAC,MAQAC,MAQAC,MAQAC,MACAC,MACAC;;;;gBA3BAN,QAAQ;oBAAEO,KAAK;oBAAaC,GAAAA;oBAAGC,GAAG;gBAAG;gBAC9B;;oBAAMC,aAAaC,SAAS,gBAAgBX,OAAO;wBAC5DY,SAAS;4BACLC,QAAQ;wBACZ;oBACJ;;;gBAJMZ,OAAO;gBAKba,OAAOb,KAAKc,MAAM,EAAEC,IAAI,CAAC;gBACzBF,OAAOb,KAAKW,OAAO,CAACK,GAAG,CAAC,iBAAiBD,IAAI,CAAC;gBAEjC;;oBAAMN,aAAaC,SAAS,gBAAgBX,OAAO;wBAC5DY,SAAS;4BACLC,QAAQ;wBACZ;oBACJ;;;gBAJMX,OAAO;gBAKbY,OAAOZ,KAAKa,MAAM,EAAEC,IAAI,CAAC;gBACzBF,OAAOZ,KAAKU,OAAO,CAACK,GAAG,CAAC,iBAAiBD,IAAI,CAAC;gBAEjC;;oBAAMN,aAAaC,SAAS,gBAAgBX,OAAO;wBAC5DY,SAAS;4BACLC,QAAQ;wBACZ;oBACJ;;;gBAJMV,OAAO;gBAKbW,OAAOX,KAAKY,MAAM,EAAEC,IAAI,CAAC;gBACzBF,OAAOX,KAAKS,OAAO,CAACK,GAAG,CAAC,iBAAiBD,IAAI,CAAC;gBAEhC;;oBAAMf,KAAKiB,MAAM;;;gBAAzBd,OAAO,AAAC,cAAqBe,UAAU;gBAC/B;;oBAAMjB,KAAKgB,MAAM;;;gBAAzBb,OAAO,AAAC,cAAqBc,UAAU;gBAC/B;;oBAAMhB,KAAKe,MAAM;;;gBAAzBZ,OAAO,AAAC,cAAqBa,UAAU;gBAE7CC,QAAQC,GAAG,CAAC;oBAAEC,SAAAA;oBAASd,GAAAA;oBAAGJ,MAAAA;oBAAMC,MAAAA;oBAAMC,MAAAA;gBAAK;gBAE3CQ,OAAOT,MAAMkB,YAAY,CAACjB;gBAC1BQ,OAAOV,MAAMmB,YAAY,CAAClB;;;;;;AAC9B",
"mappings": ";;AAAAA,GAAG,6EAA+D,oBAAA;QAOxDC,OACAC,MAQAC,MAQAC,MAQAC,MACAC,MACAC;;;;gBAjCN;;;;;KAKC,GACKN,QAAQ;oBAAEO,KAAK;oBAAaC,GAAAA;oBAAGC,GAAG;gBAAG;gBAC9B;;oBAAMC,aAAaC,SAAS,gBAAgBX,OAAO;wBAC5DY,SAAS;4BACLC,QAAQ;wBACZ;oBACJ;;;gBAJMZ,OAAO;gBAKba,OAAOb,KAAKc,MAAM,EAAEC,IAAI,CAAC;gBACzBF,OAAOb,KAAKW,OAAO,CAACK,GAAG,CAAC,iBAAiBD,IAAI,CAAC;gBAEjC;;oBAAMN,aAAaC,SAAS,gBAAgBX,OAAO;wBAC5DY,SAAS;4BACLC,QAAQ;wBACZ;oBACJ;;;gBAJMX,OAAO;gBAKbY,OAAOZ,KAAKa,MAAM,EAAEC,IAAI,CAAC;gBACzBF,OAAOZ,KAAKU,OAAO,CAACK,GAAG,CAAC,iBAAiBD,IAAI,CAAC;gBAEjC;;oBAAMN,aAAaC,SAAS,gBAAgBX,OAAO;wBAC5DY,SAAS;4BACLC,QAAQ;wBACZ;oBACJ;;;gBAJMV,OAAO;gBAKbW,OAAOX,KAAKY,MAAM,EAAEC,IAAI,CAAC;gBACzBF,OAAOX,KAAKS,OAAO,CAACK,GAAG,CAAC,iBAAiBD,IAAI,CAAC;gBAEhC;;oBAAMf,KAAKiB,MAAM;;;gBAAzBd,OAAO,AAAC,cAAqBe,UAAU;gBAC/B;;oBAAMjB,KAAKgB,MAAM;;;gBAAzBb,OAAO,AAAC,cAAqBc,UAAU;gBAC/B;;oBAAMhB,KAAKe,MAAM;;;gBAAzBZ,OAAO,AAAC,cAAqBa,UAAU;gBAE7CC,QAAQC,GAAG,CAAC;oBAAEC,SAAAA;oBAASd,GAAAA;oBAAGJ,MAAAA;oBAAMC,MAAAA;oBAAMC,MAAAA;gBAAK;gBAE3CQ,OAAOT,MAAMkB,YAAY,CAACjB;gBAC1BQ,OAAOV,MAAMmB,YAAY,CAAClB;;;;;;AAC9B",
"names": [
"it",
"query",
Expand Down
Expand Up @@ -45,7 +45,9 @@ var B = /*#__PURE__*/ function(A) {
_superprop_get_y().call(_this1);
// call with element access
_superprop_get("x").call(_this1);
// property access (read)
a = _superprop_get_x();
// element access (read)
b = _superprop_get("x");
return [
2
Expand Down Expand Up @@ -89,7 +91,9 @@ var B = /*#__PURE__*/ function(A) {
_superprop_get_x().call(_this1);
// call with element access
_superprop_get("x").call(_this1);
// property access (read)
a = _superprop_get_x();
// element access (read)
b = _superprop_get("x");
// property access (assign)
_superprop_set_x(f);
Expand Down
Expand Up @@ -90,6 +90,7 @@ var Conestoga = /*#__PURE__*/ function(Wagon1) {
function Conestoga(drunkOO) {
_class_call_check(this, Conestoga);
var _this;
// error: wrong type
_this = _super.call(this, "nope");
_this.drunkOO = drunkOO;
return _this;
Expand Down
Expand Up @@ -415,6 +415,7 @@ import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
cache.mobile = cache.phone = phone, cache.tablet = null;
return; // unambiguously identified as phone
}
// our rules haven't found a match -> try more general fallback rules
impl.isMobileFallback(userAgent) ? undefined === (phoneSized = MobileDetect.isPhoneSized(maxPhoneWidth)) ? (cache.mobile = impl.FALLBACK_MOBILE, cache.tablet = cache.phone = null) : phoneSized ? (cache.mobile = cache.phone = impl.FALLBACK_PHONE, cache.tablet = null) : (cache.mobile = cache.tablet = impl.FALLBACK_TABLET, cache.phone = null) : impl.isTabletFallback(userAgent) ? (cache.mobile = cache.tablet = impl.FALLBACK_TABLET, cache.phone = null) : // not mobile at all!
cache.mobile = cache.tablet = cache.phone = null;
}
Expand Down
Expand Up @@ -25,7 +25,7 @@
* @param {Second} s
* @param {Fs} f
*/ export function consume(t, s, f) {
Target.START;
/** @type {Target} */ Target.START;
}
/** @param {string} s */ export function ff(s) {
return(// element access with arbitrary string is an error only with noImplicitAny
Expand Down
Expand Up @@ -19,6 +19,7 @@ TypeScript1 = TypeScript || (TypeScript = {}), preFindEnclosingScope = function(
}, context.scopeStartAST = ast, context.enclosingClassDecl = ast;
break;
case NodeType.ObjectLit:
// Only consider target-typed object literals
ast.targetType && (context.scopeGetter = function() {
return ast.targetType.containedScope;
}, context.objectLiteralScopeGetter = function() {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/swc/tests/tsc-references/parserindenter.2.minified.js
Expand Up @@ -277,6 +277,7 @@ Formatting1 = Formatting || (Formatting = {}), Indenter = function() {
}
// The parent node to take its indentation is the first parent that has indentation.
for(; null != parent && !parent.CanIndent();)parent = parent.Parent;
// Skip Program since it has no indentation
null != parent && parent.AuthorNode.Details.Kind != AuthorParseNodeKind.apnkProg && (offset = parent.AuthorNode.Details.StartOffset, indentNode = parent);
} else {
indentNode = tree.StartNodeSelf, offset = tree.StartNodePreviousSibling.Details.StartOffset;
Expand All @@ -289,6 +290,7 @@ Formatting1 = Formatting || (Formatting = {}), Indenter = function() {
}
if (null != indentNode) {
var indentOverride = this.GetLineIndentationForOffset(offset);
// Set the indentation on all the siblings to be the same as indentNode
this.smartIndent || null === tree.StartNodePreviousSibling || null == indentNode.Parent || ParseNodeExtensions.GetChildren(indentNode.Parent).foreach(function(sibling) {
sibling !== indentNode && sibling.CanIndent() && sibling.SetIndentationOverride(indentOverride);
});
Expand Down
2 changes: 2 additions & 0 deletions crates/swc_ecma_codegen/src/lib.rs
Expand Up @@ -2766,6 +2766,8 @@ where
#[emitter]
#[tracing::instrument(skip_all)]
fn emit_expr_stmt(&mut self, e: &ExprStmt) -> Result {
self.emit_leading_comments_of_span(e.span, false)?;

emit!(e.expr);

semi!();
Expand Down
Expand Up @@ -4569,6 +4569,7 @@ var load228 = __swcpack_require__.bind(void 0, function(module, exports) {
var $DataView = global[DATA_VIEW];
var Math1 = global.Math;
var RangeError1 = global.RangeError;
// eslint-disable-next-line no-shadow-restricted-names
global.Infinity;
var BaseBuffer = $ArrayBuffer;
var abs = Math1.abs;
Expand Down

1 comment on commit 2da5895

@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: 2da5895 Previous: 97068e1 Ratio
es/full/bugs-1 289779 ns/iter (± 11558) 284016 ns/iter (± 6804) 1.02
es/full/minify/libraries/antd 1313107827 ns/iter (± 9704007) 1316220764 ns/iter (± 19121501) 1.00
es/full/minify/libraries/d3 274542639 ns/iter (± 3603876) 278088805 ns/iter (± 4441309) 0.99
es/full/minify/libraries/echarts 1074444775 ns/iter (± 10541381) 1067285415 ns/iter (± 9908038) 1.01
es/full/minify/libraries/jquery 83565230 ns/iter (± 356159) 84003552 ns/iter (± 264526) 0.99
es/full/minify/libraries/lodash 96443383 ns/iter (± 307018) 97654934 ns/iter (± 1189975) 0.99
es/full/minify/libraries/moment 49585171 ns/iter (± 352579) 49616505 ns/iter (± 328700) 1.00
es/full/minify/libraries/react 17836455 ns/iter (± 141309) 17861425 ns/iter (± 149768) 1.00
es/full/minify/libraries/terser 221489095 ns/iter (± 1878049) 219465151 ns/iter (± 4676018) 1.01
es/full/minify/libraries/three 405249100 ns/iter (± 4843695) 387023054 ns/iter (± 3953134) 1.05
es/full/minify/libraries/typescript 2656317362 ns/iter (± 19187954) 2665184416 ns/iter (± 17238354) 1.00
es/full/minify/libraries/victory 614757312 ns/iter (± 13202103) 572237756 ns/iter (± 7341492) 1.07
es/full/minify/libraries/vue 119395257 ns/iter (± 555424) 119172757 ns/iter (± 1071092) 1.00
es/full/codegen/es3 34178 ns/iter (± 207) 34291 ns/iter (± 70) 1.00
es/full/codegen/es5 34099 ns/iter (± 148) 34389 ns/iter (± 58) 0.99
es/full/codegen/es2015 34075 ns/iter (± 127) 34292 ns/iter (± 56) 0.99
es/full/codegen/es2016 34031 ns/iter (± 187) 34296 ns/iter (± 51) 0.99
es/full/codegen/es2017 34037 ns/iter (± 215) 34288 ns/iter (± 57) 0.99
es/full/codegen/es2018 34107 ns/iter (± 177) 34296 ns/iter (± 51) 0.99
es/full/codegen/es2019 34042 ns/iter (± 121) 34294 ns/iter (± 61) 0.99
es/full/codegen/es2020 33963 ns/iter (± 201) 34175 ns/iter (± 64) 0.99
es/full/all/es3 169793034 ns/iter (± 1237967) 170480542 ns/iter (± 1223997) 1.00
es/full/all/es5 162327010 ns/iter (± 1024317) 161787265 ns/iter (± 805475) 1.00
es/full/all/es2015 121460025 ns/iter (± 702792) 121620361 ns/iter (± 997922) 1.00
es/full/all/es2016 120568911 ns/iter (± 645716) 120606076 ns/iter (± 1146790) 1.00
es/full/all/es2017 119968145 ns/iter (± 536006) 119502037 ns/iter (± 538631) 1.00
es/full/all/es2018 117981353 ns/iter (± 715177) 118101856 ns/iter (± 738267) 1.00
es/full/all/es2019 117903291 ns/iter (± 824520) 117038566 ns/iter (± 926089) 1.01
es/full/all/es2020 112645356 ns/iter (± 492260) 113390362 ns/iter (± 519013) 0.99
es/full/parser 489277 ns/iter (± 5963) 500860 ns/iter (± 6362) 0.98
es/full/base/fixer 18366 ns/iter (± 524) 20584 ns/iter (± 128) 0.89
es/full/base/resolver_and_hygiene 81057 ns/iter (± 170) 80509 ns/iter (± 771) 1.01
serialization of serde 304 ns/iter (± 0) 292 ns/iter (± 0) 1.04
css/minify/libraries/bootstrap 28796306 ns/iter (± 66100) 28295853 ns/iter (± 187404) 1.02
css/visitor/compare/clone 1688595 ns/iter (± 9332) 1675531 ns/iter (± 31181) 1.01
css/visitor/compare/visit_mut_span 1797549 ns/iter (± 7049) 1792876 ns/iter (± 7335) 1.00
css/visitor/compare/visit_mut_span_panic 1866046 ns/iter (± 4885) 1872325 ns/iter (± 18056) 1.00
css/visitor/compare/fold_span 2607260 ns/iter (± 29289) 2589902 ns/iter (± 13051) 1.01
css/visitor/compare/fold_span_panic 2795141 ns/iter (± 9230) 2776744 ns/iter (± 33550) 1.01
css/lexer/bootstrap_5_1_3 4490938 ns/iter (± 11096) 4436807 ns/iter (± 18613) 1.01
css/lexer/foundation_6_7_4 3756837 ns/iter (± 3635) 3723153 ns/iter (± 1600) 1.01
css/lexer/tailwind_3_1_1 716059 ns/iter (± 1371) 707074 ns/iter (± 398) 1.01
css/parser/bootstrap_5_1_3 19214648 ns/iter (± 32212) 18995753 ns/iter (± 127754) 1.01
css/parser/foundation_6_7_4 15240702 ns/iter (± 96167) 15215279 ns/iter (± 42140) 1.00
css/parser/tailwind_3_1_1 2927927 ns/iter (± 5766) 2941716 ns/iter (± 2836) 1.00
es/codegen/colors 736629 ns/iter (± 406004) 737811 ns/iter (± 403456) 1.00
es/codegen/large 2884724 ns/iter (± 1535627) 3162189 ns/iter (± 1679780) 0.91
es/codegen/with-parser/colors 45487 ns/iter (± 471) 45611 ns/iter (± 578) 1.00
es/codegen/with-parser/large 491120 ns/iter (± 966) 486716 ns/iter (± 903) 1.01
es/minify/libraries/antd 1172543111 ns/iter (± 13796156) 1164093851 ns/iter (± 17997715) 1.01
es/minify/libraries/d3 240416537 ns/iter (± 3640884) 240159611 ns/iter (± 1794538) 1.00
es/minify/libraries/echarts 901530260 ns/iter (± 6919292) 924566326 ns/iter (± 17232739) 0.98
es/minify/libraries/jquery 72782849 ns/iter (± 107685) 72977576 ns/iter (± 201554) 1.00
es/minify/libraries/lodash 86810795 ns/iter (± 396319) 87033950 ns/iter (± 515385) 1.00
es/minify/libraries/moment 43287421 ns/iter (± 63546) 43438387 ns/iter (± 180178) 1.00
es/minify/libraries/react 15979196 ns/iter (± 48259) 15933941 ns/iter (± 65751) 1.00
es/minify/libraries/terser 185448834 ns/iter (± 1210790) 188461928 ns/iter (± 3070853) 0.98
es/minify/libraries/three 321798988 ns/iter (± 1287810) 323454261 ns/iter (± 2529282) 0.99
es/minify/libraries/typescript 2242056923 ns/iter (± 17543023) 2276968302 ns/iter (± 19646646) 0.98
es/minify/libraries/victory 475511419 ns/iter (± 4618065) 480564388 ns/iter (± 6648337) 0.99
es/minify/libraries/vue 105833893 ns/iter (± 415943) 106313387 ns/iter (± 735255) 1.00
es/visitor/compare/clone 1933229 ns/iter (± 4896) 1941254 ns/iter (± 2873) 1.00
es/visitor/compare/visit_mut_span 2277994 ns/iter (± 13410) 2287863 ns/iter (± 7683) 1.00
es/visitor/compare/visit_mut_span_panic 2310515 ns/iter (± 3702) 2324843 ns/iter (± 2816) 0.99
es/visitor/compare/fold_span 3352194 ns/iter (± 3983) 3377776 ns/iter (± 17197) 0.99
es/visitor/compare/fold_span_panic 3507230 ns/iter (± 8037) 3489558 ns/iter (± 6969) 1.01
es/lexer/colors 12988 ns/iter (± 73) 13029 ns/iter (± 43) 1.00
es/lexer/angular 6138999 ns/iter (± 5784) 6063492 ns/iter (± 16677) 1.01
es/lexer/backbone 778424 ns/iter (± 907) 788829 ns/iter (± 4393) 0.99
es/lexer/jquery 4480417 ns/iter (± 10549) 4474719 ns/iter (± 11288) 1.00
es/lexer/jquery mobile 6831364 ns/iter (± 8381) 6922718 ns/iter (± 42960) 0.99
es/lexer/mootools 3536421 ns/iter (± 4407) 3519406 ns/iter (± 9592) 1.00
es/lexer/underscore 658029 ns/iter (± 424) 654900 ns/iter (± 1363) 1.00
es/lexer/three 21447347 ns/iter (± 21301) 21196250 ns/iter (± 41334) 1.01
es/lexer/yui 3816745 ns/iter (± 5264) 3783823 ns/iter (± 3184) 1.01
es/parser/colors 27291 ns/iter (± 82) 28291 ns/iter (± 91) 0.96
es/parser/angular 13548271 ns/iter (± 54625) 13621805 ns/iter (± 91167) 0.99
es/parser/backbone 1984874 ns/iter (± 8195) 1983677 ns/iter (± 9037) 1.00
es/parser/jquery 10815709 ns/iter (± 40011) 10880548 ns/iter (± 70520) 0.99
es/parser/jquery mobile 16612289 ns/iter (± 56654) 16661017 ns/iter (± 173598) 1.00
es/parser/mootools 8319129 ns/iter (± 20438) 8356641 ns/iter (± 24815) 1.00
es/parser/underscore 1707813 ns/iter (± 10212) 1711567 ns/iter (± 8641) 1.00
es/parser/three 46764022 ns/iter (± 552162) 47204900 ns/iter (± 505415) 0.99
es/parser/yui 8220966 ns/iter (± 41438) 8288570 ns/iter (± 58025) 0.99
es/preset-env/usage/builtin_type 135688 ns/iter (± 32636) 135793 ns/iter (± 31720) 1.00
es/preset-env/usage/property 16391 ns/iter (± 77) 17232 ns/iter (± 40) 0.95
es/resolver/typescript 90118602 ns/iter (± 625688) 90550822 ns/iter (± 710154) 1.00
es/fixer/typescript 63422190 ns/iter (± 340730) 64759963 ns/iter (± 896710) 0.98
es/hygiene/typescript 130994580 ns/iter (± 2545233) 132069356 ns/iter (± 2128727) 0.99
es/resolver_with_hygiene/typescript 255011950 ns/iter (± 2853776) 244278934 ns/iter (± 1588661) 1.04
es/visitor/base-perf/module_clone 58887 ns/iter (± 321) 58749 ns/iter (± 229) 1.00
es/visitor/base-perf/fold_empty 63035 ns/iter (± 633) 63625 ns/iter (± 337) 0.99
es/visitor/base-perf/fold_noop_impl_all 63356 ns/iter (± 492) 63135 ns/iter (± 270) 1.00
es/visitor/base-perf/fold_noop_impl_vec 63198 ns/iter (± 221) 63398 ns/iter (± 847) 1.00
es/visitor/base-perf/boxing_boxed_clone 56 ns/iter (± 0) 57 ns/iter (± 0) 0.98
es/visitor/base-perf/boxing_unboxed_clone 40 ns/iter (± 0) 40 ns/iter (± 0) 1
es/visitor/base-perf/boxing_boxed 109 ns/iter (± 0) 109 ns/iter (± 0) 1
es/visitor/base-perf/boxing_unboxed 78 ns/iter (± 0) 79 ns/iter (± 0) 0.99
es/visitor/base-perf/visit_empty 0 ns/iter (± 0) 0 ns/iter (± 0) NaN
es/visitor/base-perf/visit_contains_this 2517 ns/iter (± 8) 2573 ns/iter (± 45) 0.98
es/base/parallel/resolver/typescript 4159058026 ns/iter (± 168275065) 4467338973 ns/iter (± 229527541) 0.93
es/base/parallel/hygiene/typescript 1408137381 ns/iter (± 18216952) 1420449524 ns/iter (± 27225685) 0.99
misc/visitors/time-complexity/time 5 120 ns/iter (± 3) 119 ns/iter (± 6) 1.01
misc/visitors/time-complexity/time 10 388 ns/iter (± 7) 306 ns/iter (± 2) 1.27
misc/visitors/time-complexity/time 15 508 ns/iter (± 0) 591 ns/iter (± 24) 0.86
misc/visitors/time-complexity/time 20 1066 ns/iter (± 39) 1071 ns/iter (± 48) 1.00
misc/visitors/time-complexity/time 40 4134 ns/iter (± 296) 4200 ns/iter (± 2) 0.98
misc/visitors/time-complexity/time 60 7421 ns/iter (± 47) 8852 ns/iter (± 6) 0.84
es/full-target/es2016 229148 ns/iter (± 358) 230190 ns/iter (± 871) 1.00
es/full-target/es2017 218530 ns/iter (± 893) 220799 ns/iter (± 1012) 0.99
es/full-target/es2018 206553 ns/iter (± 620) 208796 ns/iter (± 1257) 0.99
es2020_nullish_coalescing 69760 ns/iter (± 455) 71417 ns/iter (± 538) 0.98
es2020_optional_chaining 81210 ns/iter (± 289) 81363 ns/iter (± 407) 1.00
es2022_class_properties 113942 ns/iter (± 493) 115210 ns/iter (± 425) 0.99
es2018_object_rest_spread 74333 ns/iter (± 195) 76057 ns/iter (± 266) 0.98
es2019_optional_catch_binding 63937 ns/iter (± 322) 64339 ns/iter (± 248) 0.99
es2017_async_to_generator 64268 ns/iter (± 236) 65660 ns/iter (± 216) 0.98
es2016_exponentiation 68151 ns/iter (± 222) 69570 ns/iter (± 213) 0.98
es2015_arrow 71796 ns/iter (± 327) 72826 ns/iter (± 143) 0.99
es2015_block_scoped_fn 68239 ns/iter (± 211) 71212 ns/iter (± 191) 0.96
es2015_block_scoping 120438 ns/iter (± 379) 124225 ns/iter (± 452) 0.97

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

Please sign in to comment.