Skip to content

Commit

Permalink
refactor(es/minifier): Respect top-level when invoking IIFE (#7690)
Browse files Browse the repository at this point in the history
  • Loading branch information
Austaras committed Jul 25, 2023
1 parent 11efd4e commit bf72362
Show file tree
Hide file tree
Showing 160 changed files with 2,468 additions and 3,112 deletions.
6 changes: 2 additions & 4 deletions crates/swc/tests/fixture/issues-2xxx/2679/output/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
!function() {
var a = {};
a.b = 1, a = null, window.test = a;
}();
var a;
(a = {}).b = 1, a = null, window.test = a;
29 changes: 13 additions & 16 deletions crates/swc/tests/fixture/issues-3xxx/3126/1/output/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
!function() {
__webpack_require__.m = {
746: function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__1) {
Object.prototype.hasOwnProperty;
}
}, __webpack_require__.O = function(result, chunkIds, fn, priority) {
for(var j = 0; j < chunkIds.length; j++)Object.keys(__webpack_require__.O).every(function(key) {
return __webpack_require__.O[key](chunkIds[j]);
});
};
var __webpack_exports__ = __webpack_require__.O(void 0, [
532
], function() {
return __webpack_require__(746);
var __webpack_exports__;
__webpack_require__.m = {
746: function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__1) {
Object.prototype.hasOwnProperty;
}
}, __webpack_require__.O = function(result, chunkIds, fn, priority) {
for(var j = 0; j < chunkIds.length; j++)Object.keys(__webpack_require__.O).every(function(key) {
return __webpack_require__.O[key](chunkIds[j]);
});
__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
}();
}, __webpack_exports__ = __webpack_require__.O(void 0, [
532
], function() {
return __webpack_require__(746);
}), __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A, Point = function() {
var A, Point, A1, Point1 = function() {
function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}
Expand All @@ -11,21 +11,18 @@ var A, Point = function() {
};
}, Point;
}();
(Point || (Point = {})).Origin = function() {
(Point1 || (Point1 = {})).Origin = function() {
return null;
}, function(A) {
var Point = function() {
function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}
return Point.Origin = function() {
return {
x: 0,
y: 0
};
}, Point;
}();
A.Point = Point, (Point = A.Point || (A.Point = {})).Origin = function() {
return "";
};
}(A || (A = {}));
}, A = A1 || (A1 = {}), Point = function() {
function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}
return Point.Origin = function() {
return {
x: 0,
y: 0
};
}, Point;
}(), A.Point = Point, (Point = A.Point || (A.Point = {})).Origin = function() {
return "";
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A, Point = function() {
var A, Point, A1, Point1 = function() {
function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}
Expand All @@ -11,17 +11,14 @@ var A, Point = function() {
};
}, Point;
}();
Point || (Point = {}), function(A) {
var Point = function() {
function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}
return Point.Origin = function() {
return {
x: 0,
y: 0
};
}, Point;
}();
A.Point = Point, A.Point || (A.Point = {});
}(A || (A = {}));
Point1 || (Point1 = {}), A = A1 || (A1 = {}), Point = function() {
function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}
return Point.Origin = function() {
return {
x: 0,
y: 0
};
}, Point;
}(), A.Point = Point, A.Point || (A.Point = {});
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
//// [ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A, Point = function Point(x, y) {
var A, Point, A1, Point1 = function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
};
Point.Origin = {
Point1.Origin = {
x: 0,
y: 0
}, (Point || (Point = {})).Origin = "", function(A) {
var Point = function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
};
Point.Origin = {
x: 0,
y: 0
}, A.Point = Point, (Point = A.Point || (A.Point = {})).Origin = "";
}(A || (A = {}));
}, (Point1 || (Point1 = {})).Origin = "", A = A1 || (A1 = {}), (Point = function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}).Origin = {
x: 0,
y: 0
}, A.Point = Point, (Point = A.Point || (A.Point = {})).Origin = "";
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
//// [ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A, Point = function Point(x, y) {
var A, Point, A1, Point1 = function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
};
Point.Origin = {
Point1.Origin = {
x: 0,
y: 0
}, Point || (Point = {}), function(A) {
var Point = function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
};
Point.Origin = {
x: 0,
y: 0
}, A.Point = Point, Point = A.Point || (A.Point = {});
}(A || (A = {}));
}, Point1 || (Point1 = {}), A = A1 || (A1 = {}), (Point = function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}).Origin = {
x: 0,
y: 0
}, A.Point = Point, Point = A.Point || (A.Point = {});
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
_class_call_check(this, Point), this.x = x, this.y = y;
};
//// [module.ts]
var X;
!function(X) {
var Y, Point;
(Point = (Y = X.Y || (X.Y = {})).Point || (Y.Point = {})).Origin = new Point(0, 0);
}(X || (X = {}));
var X, X1, Y, Point;
(Point = (Y = (X1 = X || (X = {})).Y || (X1.Y = {})).Point || (Y.Point = {})).Origin = new Point(0, 0);
//// [test.ts]
new X.Y.Point(1, 1), X.Y.Point.Origin;
//// [simple.ts]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ var X, X1;
}
};
//// [module.ts]
var X;
!function(X) {
var Y;
let Point;
(Point = (Y = X.Y || (X.Y = {})).Point || (Y.Point = {})).Origin = new Point(0, 0);
}(X || (X = {}));
var X, X1, Y;
let Point;
(Point = (Y = (X1 = X || (X = {})).Y || (X1.Y = {})).Point || (Y.Point = {})).Origin = new Point(0, 0);
//// [test.ts]
new X.Y.Point(1, 1), X.Y.Point.Origin;
//// [simple.ts]
Expand Down
17 changes: 7 additions & 10 deletions crates/swc/tests/tsc-references/ES5SymbolProperty2.2.minified.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
//// [ES5SymbolProperty2.ts]
var M;
var M, M1, _$Symbol, C;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
!function(M) {
var _$Symbol, C = function() {
function C() {
_class_call_check(this, C);
}
return C.prototype[_$Symbol.iterator] = function() {}, C;
}();
M.C = C, (new C)[_$Symbol.iterator];
}(M || (M = {})), (new M.C)[Symbol.iterator];
M1 = M || (M = {}), C = function() {
function C() {
_class_call_check(this, C);
}
return C.prototype[_$Symbol.iterator] = function() {}, C;
}(), M1.C = C, (new C)[_$Symbol.iterator], (new M.C)[Symbol.iterator];
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
//// [ExportClassWhichExtendsInterfaceWithInaccessibleType.ts]
var A;
var A, A1, Point2d;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
!function(A) {
var Point2d = function() {
function Point2d(x, y) {
_class_call_check(this, Point2d), this.x = x, this.y = y;
}
return Point2d.prototype.fromOrigin = function(p) {
return 1;
}, Point2d;
}();
A.Point2d = Point2d;
}(A || (A = {}));
A1 = A || (A = {}), Point2d = function() {
function Point2d(x, y) {
_class_call_check(this, Point2d), this.x = x, this.y = y;
}
return Point2d.prototype.fromOrigin = function(p) {
return 1;
}, Point2d;
}(), A1.Point2d = Point2d;
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
//// [ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts]
var A;
var A, A1, Point, Point3d;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
!function(A) {
var Point = function Point() {
_class_call_check(this, Point);
};
A.Point = Point, A.Origin = {
x: 0,
y: 0
};
var Point3d = function(Point) {
_inherits(Point3d, Point);
var _super = _create_super(Point3d);
function Point3d() {
return _class_call_check(this, Point3d), _super.apply(this, arguments);
}
return Point3d;
}(Point);
A.Point3d = Point3d, A.Origin3d = {
x: 0,
y: 0,
z: 0
}, A.Line = function Line(start, end) {
_class_call_check(this, Line), this.start = start, this.end = end;
};
}(A || (A = {}));
A1 = A || (A = {}), Point = function Point() {
_class_call_check(this, Point);
}, A1.Point = Point, A1.Origin = {
x: 0,
y: 0
}, Point3d = function(Point) {
_inherits(Point3d, Point);
var _super = _create_super(Point3d);
function Point3d() {
return _class_call_check(this, Point3d), _super.apply(this, arguments);
}
return Point3d;
}(Point), A1.Point3d = Point3d, A1.Origin3d = {
x: 0,
y: 0,
z: 0
}, A1.Line = function Line(start, end) {
_class_call_check(this, Line), this.start = start, this.end = end;
};
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
//// [ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts]
var A;
var A, A1, Point3d, Line;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
!function(A) {
A.Origin = {
x: 0,
y: 0
};
var Point3d = function(Point) {
_inherits(Point3d, Point);
var _super = _create_super(Point3d);
function Point3d() {
return _class_call_check(this, Point3d), _super.apply(this, arguments);
}
return Point3d;
}(function Point() {
_class_call_check(this, Point);
});
A.Point3d = Point3d, A.Origin3d = {
x: 0,
y: 0,
z: 0
};
var Line = function() {
function Line(start, end) {
_class_call_check(this, Line), this.start = start, this.end = end;
}
return Line.fromorigin2d = function(p) {
return null;
}, Line;
}();
A.Line = Line;
}(A || (A = {}));
(A1 = A || (A = {})).Origin = {
x: 0,
y: 0
}, Point3d = function(Point) {
_inherits(Point3d, Point);
var _super = _create_super(Point3d);
function Point3d() {
return _class_call_check(this, Point3d), _super.apply(this, arguments);
}
return Point3d;
}(function Point() {
_class_call_check(this, Point);
}), A1.Point3d = Point3d, A1.Origin3d = {
x: 0,
y: 0,
z: 0
}, Line = function() {
function Line(start, end) {
_class_call_check(this, Line), this.start = start, this.end = end;
}
return Line.fromorigin2d = function(p) {
return null;
}, Line;
}(), A1.Line = Line;
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
//// [ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts]
var A;
var A, A1, Line;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
!function(A) {
A.Point = function Point() {
_class_call_check(this, Point);
};
var Line = function Line(start, end) {
_class_call_check(this, Line), this.start = start, this.end = end;
};
A.Line = Line, A.fromOrigin = function(p) {
return new Line({
x: 0,
y: 0
}, p);
};
}(A || (A = {}));
(A1 = A || (A = {})).Point = function Point() {
_class_call_check(this, Point);
}, Line = function Line(start, end) {
_class_call_check(this, Line), this.start = start, this.end = end;
}, A1.Line = Line, A1.fromOrigin = function(p) {
return new Line({
x: 0,
y: 0
}, p);
};

1 comment on commit bf72362

@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: bf72362 Previous: c017874 Ratio
es/full/bugs-1 295893 ns/iter (± 13971) 299354 ns/iter (± 8864) 0.99
es/full/minify/libraries/antd 1300169604 ns/iter (± 4500607) 1340500472 ns/iter (± 14753046) 0.97
es/full/minify/libraries/d3 274043350 ns/iter (± 4335986) 279874315 ns/iter (± 1575578) 0.98
es/full/minify/libraries/echarts 1039880170 ns/iter (± 5018225) 1080702230 ns/iter (± 13391196) 0.96
es/full/minify/libraries/jquery 84374921 ns/iter (± 110014) 86168707 ns/iter (± 191861) 0.98
es/full/minify/libraries/lodash 98222610 ns/iter (± 212860) 100045110 ns/iter (± 297306) 0.98
es/full/minify/libraries/moment 49670352 ns/iter (± 619350) 50666408 ns/iter (± 155381) 0.98
es/full/minify/libraries/react 17960005 ns/iter (± 34524) 18245543 ns/iter (± 33672) 0.98
es/full/minify/libraries/terser 216010404 ns/iter (± 689184) 223003353 ns/iter (± 1608783) 0.97
es/full/minify/libraries/three 377923656 ns/iter (± 1668424) 393415605 ns/iter (± 2994985) 0.96
es/full/minify/libraries/typescript 2628788358 ns/iter (± 7883740) 2713908929 ns/iter (± 11935916) 0.97
es/full/minify/libraries/victory 548099870 ns/iter (± 5933934) 584117016 ns/iter (± 7943298) 0.94
es/full/minify/libraries/vue 119701859 ns/iter (± 183959) 122765103 ns/iter (± 338230) 0.98
es/full/codegen/es3 34543 ns/iter (± 119) 34223 ns/iter (± 193) 1.01
es/full/codegen/es5 34649 ns/iter (± 60) 34282 ns/iter (± 58) 1.01
es/full/codegen/es2015 34628 ns/iter (± 91) 34242 ns/iter (± 91) 1.01
es/full/codegen/es2016 34694 ns/iter (± 83) 34257 ns/iter (± 83) 1.01
es/full/codegen/es2017 34551 ns/iter (± 105) 34280 ns/iter (± 98) 1.01
es/full/codegen/es2018 34605 ns/iter (± 113) 34333 ns/iter (± 127) 1.01
es/full/codegen/es2019 34743 ns/iter (± 40) 34300 ns/iter (± 72) 1.01
es/full/codegen/es2020 34673 ns/iter (± 80) 34184 ns/iter (± 66) 1.01
es/full/all/es3 171234167 ns/iter (± 1020832) 172510590 ns/iter (± 792483) 0.99
es/full/all/es5 164162911 ns/iter (± 1023878) 165852664 ns/iter (± 853104) 0.99
es/full/all/es2015 123244810 ns/iter (± 781926) 124716335 ns/iter (± 988525) 0.99
es/full/all/es2016 122342313 ns/iter (± 709363) 123968465 ns/iter (± 564044) 0.99
es/full/all/es2017 121986620 ns/iter (± 661749) 123157239 ns/iter (± 743120) 0.99
es/full/all/es2018 119692545 ns/iter (± 843644) 120969250 ns/iter (± 488711) 0.99
es/full/all/es2019 118829379 ns/iter (± 861081) 120460734 ns/iter (± 624970) 0.99
es/full/all/es2020 114315407 ns/iter (± 574066) 115547454 ns/iter (± 894972) 0.99
es/full/parser 525440 ns/iter (± 4371) 535690 ns/iter (± 6190) 0.98
es/full/base/fixer 18414 ns/iter (± 111) 19715 ns/iter (± 96) 0.93
es/full/base/resolver_and_hygiene 84204 ns/iter (± 129) 85000 ns/iter (± 273) 0.99
serialization of serde 303 ns/iter (± 3) 286 ns/iter (± 7) 1.06
css/minify/libraries/bootstrap 28674479 ns/iter (± 110495) 29157054 ns/iter (± 106238) 0.98
css/visitor/compare/clone 1624199 ns/iter (± 6925) 1636983 ns/iter (± 5355) 0.99
css/visitor/compare/visit_mut_span 1767440 ns/iter (± 6766) 1781575 ns/iter (± 7213) 0.99
css/visitor/compare/visit_mut_span_panic 1847172 ns/iter (± 7857) 1833143 ns/iter (± 5140) 1.01
css/visitor/compare/fold_span 2556062 ns/iter (± 7931) 2569653 ns/iter (± 16738) 0.99
css/visitor/compare/fold_span_panic 2770439 ns/iter (± 24089) 2763491 ns/iter (± 11143) 1.00
css/lexer/bootstrap_5_1_3 4462039 ns/iter (± 1862) 4402378 ns/iter (± 2127) 1.01
css/lexer/foundation_6_7_4 3757639 ns/iter (± 2448) 3714542 ns/iter (± 192260) 1.01
css/lexer/tailwind_3_1_1 712980 ns/iter (± 682) 707786 ns/iter (± 175) 1.01
css/parser/bootstrap_5_1_3 19486349 ns/iter (± 28668) 19535800 ns/iter (± 44828) 1.00
css/parser/foundation_6_7_4 15371962 ns/iter (± 25007) 15663227 ns/iter (± 29369) 0.98
css/parser/tailwind_3_1_1 2973750 ns/iter (± 2966) 2972211 ns/iter (± 3689) 1.00
es/codegen/colors 721208 ns/iter (± 394982) 736419 ns/iter (± 402183) 0.98
es/codegen/large 2909534 ns/iter (± 1547630) 3154153 ns/iter (± 1682046) 0.92
es/codegen/with-parser/colors 43495 ns/iter (± 709) 44299 ns/iter (± 426) 0.98
es/codegen/with-parser/large 477720 ns/iter (± 848) 480815 ns/iter (± 1058) 0.99
es/minify/libraries/antd 1127593432 ns/iter (± 10153674) 1146689176 ns/iter (± 12168444) 0.98
es/minify/libraries/d3 241324872 ns/iter (± 1396529) 242582915 ns/iter (± 1206232) 0.99
es/minify/libraries/echarts 899228805 ns/iter (± 2738218) 917331587 ns/iter (± 12062972) 0.98
es/minify/libraries/jquery 74115616 ns/iter (± 111342) 73889159 ns/iter (± 77216) 1.00
es/minify/libraries/lodash 88599712 ns/iter (± 175361) 88873556 ns/iter (± 151280) 1.00
es/minify/libraries/moment 43814868 ns/iter (± 47407) 43662597 ns/iter (± 161031) 1.00
es/minify/libraries/react 16067741 ns/iter (± 36107) 16082564 ns/iter (± 52655) 1.00
es/minify/libraries/terser 191278221 ns/iter (± 1617346) 188362861 ns/iter (± 1178158) 1.02
es/minify/libraries/three 333234245 ns/iter (± 7480428) 324185243 ns/iter (± 3160259) 1.03
es/minify/libraries/typescript 2264671257 ns/iter (± 32709803) 2293171199 ns/iter (± 13713575) 0.99
es/minify/libraries/victory 476643246 ns/iter (± 12098503) 480955467 ns/iter (± 5449206) 0.99
es/minify/libraries/vue 109965142 ns/iter (± 702471) 107575027 ns/iter (± 298342) 1.02
es/visitor/compare/clone 1941047 ns/iter (± 5119) 1950679 ns/iter (± 4021) 1.00
es/visitor/compare/visit_mut_span 2297610 ns/iter (± 3926) 2289365 ns/iter (± 5244) 1.00
es/visitor/compare/visit_mut_span_panic 2325886 ns/iter (± 9451) 2331102 ns/iter (± 7191) 1.00
es/visitor/compare/fold_span 3358573 ns/iter (± 8482) 3343799 ns/iter (± 3981) 1.00
es/visitor/compare/fold_span_panic 3474007 ns/iter (± 8543) 3503301 ns/iter (± 7018) 0.99
es/lexer/colors 12501 ns/iter (± 54) 12662 ns/iter (± 28) 0.99
es/lexer/angular 6080239 ns/iter (± 5155) 6223088 ns/iter (± 3507) 0.98
es/lexer/backbone 792490 ns/iter (± 3006) 821304 ns/iter (± 1233) 0.96
es/lexer/jquery 4413579 ns/iter (± 4182) 4613338 ns/iter (± 8201) 0.96
es/lexer/jquery mobile 6822677 ns/iter (± 6595) 7050057 ns/iter (± 5225) 0.97
es/lexer/mootools 3516828 ns/iter (± 1499) 3643434 ns/iter (± 1613) 0.97
es/lexer/underscore 660890 ns/iter (± 699) 689642 ns/iter (± 1083) 0.96
es/lexer/three 20948756 ns/iter (± 34174) 21676791 ns/iter (± 26979) 0.97
es/lexer/yui 3803661 ns/iter (± 3539) 3959681 ns/iter (± 1861) 0.96
es/parser/colors 26194 ns/iter (± 49) 26765 ns/iter (± 78) 0.98
es/parser/angular 13303598 ns/iter (± 89480) 13501416 ns/iter (± 77117) 0.99
es/parser/backbone 1985651 ns/iter (± 7848) 2022250 ns/iter (± 8866) 0.98
es/parser/jquery 10975975 ns/iter (± 126890) 10954795 ns/iter (± 39578) 1.00
es/parser/jquery mobile 17034163 ns/iter (± 336252) 16750488 ns/iter (± 47891) 1.02
es/parser/mootools 8299811 ns/iter (± 32571) 8465783 ns/iter (± 19422) 0.98
es/parser/underscore 1699900 ns/iter (± 9684) 1740431 ns/iter (± 9773) 0.98
es/parser/three 45486790 ns/iter (± 162656) 46822452 ns/iter (± 326125) 0.97
es/parser/yui 8128756 ns/iter (± 27853) 8299440 ns/iter (± 29560) 0.98
es/preset-env/usage/builtin_type 136236 ns/iter (± 31828) 135998 ns/iter (± 31970) 1.00
es/preset-env/usage/property 16928 ns/iter (± 34) 17072 ns/iter (± 47) 0.99
es/resolver/typescript 87168172 ns/iter (± 1592381) 88853439 ns/iter (± 722757) 0.98
es/fixer/typescript 62444797 ns/iter (± 333555) 64791984 ns/iter (± 889126) 0.96
es/hygiene/typescript 131869880 ns/iter (± 567411) 133022945 ns/iter (± 1326560) 0.99
es/resolver_with_hygiene/typescript 242657260 ns/iter (± 799710) 245633552 ns/iter (± 1194929) 0.99
es/visitor/base-perf/module_clone 59233 ns/iter (± 288) 59742 ns/iter (± 221) 0.99
es/visitor/base-perf/fold_empty 63066 ns/iter (± 259) 64167 ns/iter (± 184) 0.98
es/visitor/base-perf/fold_noop_impl_all 63327 ns/iter (± 338) 63356 ns/iter (± 285) 1.00
es/visitor/base-perf/fold_noop_impl_vec 63438 ns/iter (± 625) 64215 ns/iter (± 207) 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 41 ns/iter (± 0) 40 ns/iter (± 0) 1.02
es/visitor/base-perf/boxing_boxed 110 ns/iter (± 0) 109 ns/iter (± 0) 1.01
es/visitor/base-perf/boxing_unboxed 78 ns/iter (± 0) 78 ns/iter (± 0) 1
es/visitor/base-perf/visit_empty 0 ns/iter (± 0) 0 ns/iter (± 0) NaN
es/visitor/base-perf/visit_contains_this 2536 ns/iter (± 10) 2528 ns/iter (± 18) 1.00
es/base/parallel/resolver/typescript 3680798049 ns/iter (± 254509330) 4032674429 ns/iter (± 336096527) 0.91
es/base/parallel/hygiene/typescript 1520686086 ns/iter (± 31729178) 1451902790 ns/iter (± 15524198) 1.05
misc/visitors/time-complexity/time 5 137 ns/iter (± 11) 134 ns/iter (± 2) 1.02
misc/visitors/time-complexity/time 10 334 ns/iter (± 56) 374 ns/iter (± 1) 0.89
misc/visitors/time-complexity/time 15 525 ns/iter (± 73) 731 ns/iter (± 3) 0.72
misc/visitors/time-complexity/time 20 918 ns/iter (± 70) 937 ns/iter (± 74) 0.98
misc/visitors/time-complexity/time 40 3545 ns/iter (± 15) 3558 ns/iter (± 16) 1.00
misc/visitors/time-complexity/time 60 7355 ns/iter (± 42) 8801 ns/iter (± 4) 0.84
es/full-target/es2016 237080 ns/iter (± 2119) 241488 ns/iter (± 707) 0.98
es/full-target/es2017 224368 ns/iter (± 995) 229765 ns/iter (± 603) 0.98
es/full-target/es2018 212654 ns/iter (± 773) 216762 ns/iter (± 798) 0.98
es2020_nullish_coalescing 72773 ns/iter (± 467) 71452 ns/iter (± 1879) 1.02
es2020_optional_chaining 83037 ns/iter (± 340) 82116 ns/iter (± 433) 1.01
es2022_class_properties 118872 ns/iter (± 455) 120759 ns/iter (± 414) 0.98
es2018_object_rest_spread 76886 ns/iter (± 337) 75200 ns/iter (± 373) 1.02
es2019_optional_catch_binding 65638 ns/iter (± 335) 64708 ns/iter (± 177) 1.01
es2017_async_to_generator 64509 ns/iter (± 341) 65308 ns/iter (± 232) 0.99
es2016_exponentiation 69807 ns/iter (± 289) 69013 ns/iter (± 176) 1.01
es2015_arrow 73292 ns/iter (± 237) 71951 ns/iter (± 204) 1.02
es2015_block_scoped_fn 69593 ns/iter (± 304) 70131 ns/iter (± 305) 0.99
es2015_block_scoping 121628 ns/iter (± 528) 124759 ns/iter (± 477) 0.97

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

Please sign in to comment.