Skip to content

Commit

Permalink
feat(typescript): Implement Isolated Declaration (#9086)
Browse files Browse the repository at this point in the history
**Description:**

This PR adds TypeScript Isolated Declarations implementation by forking Deno's implementation.
  • Loading branch information
kdy1 authored Jun 21, 2024
1 parent 568b3b3 commit a855159
Show file tree
Hide file tree
Showing 60 changed files with 1,515 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ jobs:
- crate: testing_macros
os: ubuntu-latest
runner: ubuntu-latest
- crate: xtask
- crate: swc_typescript
os: ubuntu-latest
runner: ubuntu-latest
steps:
Expand Down
13 changes: 11 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ resolver = "2"
siphasher = "0.3.9"
smallvec = "1.8.0"
smartstring = "1"
sourcemap = "8.0.0"
sourcemap = "8.0.1"
st-map = "0.2.0"
syn = "2"
tempfile = "3.6.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"x",
"Error"
],
"rangeMappings": ";;;;;;;;;;;",
"sources": [
"../../input/index.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"names": [
"foo"
],
"rangeMappings": ";;;;;;;;;;",
"sources": [
"../../input/index.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"names": [
"foo"
],
"rangeMappings": ";;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/issues-2xxx/2423/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"console",
"log"
],
"rangeMappings": ";;;;;;;",
"sources": [
"../../input/index.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"names": [
"a"
],
"rangeMappings": "",
"sources": [
"../../input/index.js"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"names": [
"a"
],
"rangeMappings": "",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/issues-3xxx/3716/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"names": [
"a"
],
"rangeMappings": ";;;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/issues-3xxx/3782/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"resolve",
"setTimeout"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/index.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"customElements",
"define"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/index.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"a",
"b"
],
"rangeMappings": "",
"sources": [
"../../input/index.js"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ define([
});
});

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJyYW5nZU1hcHBpbmdzIjoiIiwibWFwcGluZ3MiOiIifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"names": [
"test"
],
"rangeMappings": ";;;",
"sources": [
"../../input/index.js"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"names": [
"test"
],
"rangeMappings": ";;;;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/issues-4xxx/4876/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"console",
"log"
],
"rangeMappings": ";;;;;;;;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/issues-5xxx/5272/1/output/a.map
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"foo",
"Base"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/source/a/a.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"toBe",
"foo"
],
"rangeMappings": ";;;;;;;;;;",
"sources": [
"../../input/source/a/a.spec.ts"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/issues-5xxx/5644/output/index.map
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"mappings": ";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA;uBACA",
"names": [],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/index.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"document",
"getElementById"
],
"rangeMappings": ";;;;",
"sources": [
"../../input/index.tsx"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/fixture/issues-8xxx/8869/output/1.js

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

1 change: 0 additions & 1 deletion crates/swc/tests/fixture/jest/issue-7506/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"expect",
"toContain"
],
"rangeMappings": ";;;;;;;;;;;;;;;;",
"sources": [
"../../input/index.ts"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/jest/issue-7506/output/util.map
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"stack",
"split"
],
"rangeMappings": ";;;;;;;;;;;;;;;",
"sources": [
"../../input/util.ts"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/fixture/jest/sourcemap-1/output/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Button = (0, _linaria.css)`
color: red;
`;

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2lucHV0L2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gXCJsaW5hcmlhXCI7XG5cbmV4cG9ydCBjb25zdCBCdXR0b24gPSBjc3NgXG4gICAgY29sb3I6IHJlZDtcbmA7XG4iXSwibmFtZXMiOlsiQnV0dG9uIiwiY3NzIl0sInJhbmdlTWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7IiwibWFwcGluZ3MiOiI7Ozs7K0JBRWFBOzs7ZUFBQUE7Ozt5QkFGTztBQUViLE1BQU1BLFNBQVNDLElBQUFBLFlBQUcsQ0FBQSxDQUFDOztBQUUxQixDQUFDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2lucHV0L2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gXCJsaW5hcmlhXCI7XG5cbmV4cG9ydCBjb25zdCBCdXR0b24gPSBjc3NgXG4gICAgY29sb3I6IHJlZDtcbmA7XG4iXSwibmFtZXMiOlsiQnV0dG9uIiwiY3NzIl0sIm1hcHBpbmdzIjoiOzs7OytCQUVhQTs7O2VBQUFBOzs7eUJBRk87QUFFYixNQUFNQSxTQUFTQyxJQUFBQSxZQUFHLENBQUEsQ0FBQzs7QUFFMUIsQ0FBQyJ9
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"prop",
"get"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/box-model.ts"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/001/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"foo",
"arr"
],
"rangeMappings": ";;;;;;;;;;;;",
"sources": [
"../../input/index.ts"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/002/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"getStaticProps",
"props"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/003/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"getStaticProps",
"props"
],
"rangeMappings": "",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/004/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"s",
"_N_E"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/005/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"isSharp",
"toBeLessThan"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/006/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"isSharp",
"toBeLessThan"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/007/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"console",
"log"
],
"rangeMappings": ";;;;;;;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/008/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"expect",
"toBe"
],
"rangeMappings": ";;;;;;;;;;;;;;;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/009/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"Error",
"stack"
],
"rangeMappings": ";;;;;",
"sources": [
"../../input/index.js"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/010/output/index.map
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"mappings": "AAAA,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB;AAEtC,cAAc,WAAW;AACzB,cAAc,eAAe",
"names": [],
"rangeMappings": ";;;",
"sources": [
"../../input/index.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"deleteComment",
"delete"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/CommentControlller.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"$pull",
"name"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/CommentService.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"createPostComment",
"createCommentDto"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/PistController.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"user",
"id"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/UserController.ts"
],
Expand Down
1 change: 0 additions & 1 deletion crates/swc/tests/fixture/sourcemap/015/output/index.map
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"expect",
"toBe"
],
"rangeMappings": ";;;;;;;;;;;;;;;",
"sources": [
"../../input/index.js"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"toBe",
"str"
],
"rangeMappings": ";;;;;;;;;;;;;",
"sources": [
"../../input/index.js"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"Symbol",
"for"
],
"rangeMappings": ";;",
"sources": [
"../../input/index.js"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"mappings": "AAAA,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB;AACtC,cAAc,eAAe;AAC7B,cAAc,WAAW;AACzB,cAAc,eAAe",
"names": [],
"rangeMappings": ";;;;",
"sources": [
"../../input/index.ts"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"names": [
"a"
],
"rangeMappings": "",
"sources": [
"../../input/index.js"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"names": [
"a"
],
"rangeMappings": "",
"sources": [
"../../input/index.js"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"variant",
"constructor"
],
"rangeMappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"sources": [
"../../input/index.ts"
],
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"message",
"bbb"
],
"rangeMappings": "",
"sources": [
"unknown"
],
Expand Down
Loading

1 comment on commit a855159

@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: a855159 Previous: e423d1b Ratio
es/full/bugs-1 286669 ns/iter (± 18376) 277875 ns/iter (± 9273) 1.03
es/full/minify/libraries/antd 1887097150 ns/iter (± 50551651) 1905385495 ns/iter (± 29561995) 0.99
es/full/minify/libraries/d3 352885823 ns/iter (± 2267994) 363675632 ns/iter (± 14064738) 0.97
es/full/minify/libraries/echarts 1617123682 ns/iter (± 26037660) 1652886018 ns/iter (± 24424851) 0.98
es/full/minify/libraries/jquery 103395327 ns/iter (± 550373) 103960834 ns/iter (± 752416) 0.99
es/full/minify/libraries/lodash 115646234 ns/iter (± 881619) 115730805 ns/iter (± 914064) 1.00
es/full/minify/libraries/moment 59914059 ns/iter (± 235995) 60285115 ns/iter (± 448460) 0.99
es/full/minify/libraries/react 18378899 ns/iter (± 60094) 18418555 ns/iter (± 381146) 1.00
es/full/minify/libraries/terser 289323026 ns/iter (± 6486389) 306876127 ns/iter (± 8225775) 0.94
es/full/minify/libraries/three 504111830 ns/iter (± 14690893) 503885774 ns/iter (± 26870281) 1.00
es/full/minify/libraries/typescript 3354560042 ns/iter (± 27102622) 3306812391 ns/iter (± 49136024) 1.01
es/full/minify/libraries/victory 813318117 ns/iter (± 14496750) 772149986 ns/iter (± 29601757) 1.05
es/full/minify/libraries/vue 147235348 ns/iter (± 787973) 147225850 ns/iter (± 673947) 1.00
es/full/codegen/es3 60888 ns/iter (± 121) 59465 ns/iter (± 197) 1.02
es/full/codegen/es5 61379 ns/iter (± 268) 59467 ns/iter (± 1229) 1.03
es/full/codegen/es2015 60936 ns/iter (± 161) 59616 ns/iter (± 179) 1.02
es/full/codegen/es2016 60920 ns/iter (± 131) 59526 ns/iter (± 87) 1.02
es/full/codegen/es2017 61005 ns/iter (± 119) 59742 ns/iter (± 283) 1.02
es/full/codegen/es2018 61060 ns/iter (± 119) 59462 ns/iter (± 320) 1.03
es/full/codegen/es2019 61078 ns/iter (± 418) 59874 ns/iter (± 141) 1.02
es/full/codegen/es2020 60966 ns/iter (± 99) 59453 ns/iter (± 315) 1.03
es/full/all/es3 161695566 ns/iter (± 947870) 160869654 ns/iter (± 886228) 1.01
es/full/all/es5 155411018 ns/iter (± 952816) 156096909 ns/iter (± 1077384) 1.00
es/full/all/es2015 116403789 ns/iter (± 863078) 116448471 ns/iter (± 605946) 1.00
es/full/all/es2016 114249767 ns/iter (± 638588) 114404872 ns/iter (± 813967) 1.00
es/full/all/es2017 114520878 ns/iter (± 979532) 114420390 ns/iter (± 926346) 1.00
es/full/all/es2018 112496494 ns/iter (± 1157436) 112755068 ns/iter (± 669409) 1.00
es/full/all/es2019 111491632 ns/iter (± 736952) 113032425 ns/iter (± 1242205) 0.99
es/full/all/es2020 107464886 ns/iter (± 729082) 107399458 ns/iter (± 726259) 1.00
es/full/parser 458681 ns/iter (± 2756) 459599 ns/iter (± 3546) 1.00
es/full/base/fixer 15397 ns/iter (± 100) 15725 ns/iter (± 111) 0.98
es/full/base/resolver_and_hygiene 80943 ns/iter (± 169) 80570 ns/iter (± 271) 1.00
serialization of serde 276 ns/iter (± 5) 283 ns/iter (± 5) 0.98
css/minify/libraries/bootstrap 22253665 ns/iter (± 91424) 22484991 ns/iter (± 309522) 0.99
css/visitor/compare/clone 1386020 ns/iter (± 20079) 1412849 ns/iter (± 7387) 0.98
css/visitor/compare/visit_mut_span 1496703 ns/iter (± 23086) 1531140 ns/iter (± 5809) 0.98
css/visitor/compare/visit_mut_span_panic 1511742 ns/iter (± 23670) 1539291 ns/iter (± 26240) 0.98
css/visitor/compare/fold_span 2010864 ns/iter (± 10784) 2022530 ns/iter (± 4884) 0.99
css/visitor/compare/fold_span_panic 2153837 ns/iter (± 40939) 2171268 ns/iter (± 2624) 0.99
css/lexer/bootstrap_5_1_3 3451846 ns/iter (± 8888) 3423028 ns/iter (± 2488) 1.01
css/lexer/foundation_6_7_4 2808241 ns/iter (± 6753) 2770936 ns/iter (± 991) 1.01
css/lexer/tailwind_3_1_1 538399 ns/iter (± 507) 536438 ns/iter (± 758) 1.00
css/parser/bootstrap_5_1_3 15939598 ns/iter (± 138016) 15859942 ns/iter (± 104152) 1.01
css/parser/foundation_6_7_4 12755192 ns/iter (± 74818) 12673885 ns/iter (± 28241) 1.01
css/parser/tailwind_3_1_1 2520792 ns/iter (± 9459) 2510539 ns/iter (± 11195) 1.00
es/codegen/colors 728821 ns/iter (± 397726) 738039 ns/iter (± 414703) 0.99
es/codegen/large 3038387 ns/iter (± 1638023) 2989471 ns/iter (± 1606540) 1.02
es/codegen/with-parser/colors 41122 ns/iter (± 368) 41229 ns/iter (± 527) 1.00
es/codegen/with-parser/large 451367 ns/iter (± 1794) 450211 ns/iter (± 3209) 1.00
es/minify/libraries/antd 1506805592 ns/iter (± 18155318) 1578479496 ns/iter (± 35759551) 0.95
es/minify/libraries/d3 295612567 ns/iter (± 10820530) 303243734 ns/iter (± 9982504) 0.97
es/minify/libraries/echarts 1242101717 ns/iter (± 21394536) 1323109288 ns/iter (± 9974442) 0.94
es/minify/libraries/jquery 82610205 ns/iter (± 318757) 82561614 ns/iter (± 392037) 1.00
es/minify/libraries/lodash 104618548 ns/iter (± 309028) 104842487 ns/iter (± 397231) 1.00
es/minify/libraries/moment 48233404 ns/iter (± 125477) 48736379 ns/iter (± 152179) 0.99
es/minify/libraries/react 16168099 ns/iter (± 20240) 16204809 ns/iter (± 24864) 1.00
es/minify/libraries/terser 224021762 ns/iter (± 8999451) 218351216 ns/iter (± 1274029) 1.03
es/minify/libraries/three 392023531 ns/iter (± 9915971) 366045635 ns/iter (± 1340979) 1.07
es/minify/libraries/typescript 2835945462 ns/iter (± 27128000) 2871554986 ns/iter (± 63910734) 0.99
es/minify/libraries/victory 625234092 ns/iter (± 14055121) 614322053 ns/iter (± 16539788) 1.02
es/minify/libraries/vue 121922326 ns/iter (± 1209893) 121132037 ns/iter (± 309323) 1.01
es/visitor/compare/clone 1756486 ns/iter (± 8744) 1719574 ns/iter (± 19012) 1.02
es/visitor/compare/visit_mut_span 2076170 ns/iter (± 11327) 2060672 ns/iter (± 4631) 1.01
es/visitor/compare/visit_mut_span_panic 2090091 ns/iter (± 68923) 2050254 ns/iter (± 32882) 1.02
es/visitor/compare/fold_span 2810726 ns/iter (± 19631) 2759056 ns/iter (± 32835) 1.02
es/visitor/compare/fold_span_panic 2836669 ns/iter (± 6448) 2801615 ns/iter (± 6560) 1.01
es/lexer/colors 9050 ns/iter (± 65) 9408 ns/iter (± 39) 0.96
es/lexer/angular 4696382 ns/iter (± 7429) 4890504 ns/iter (± 24847) 0.96
es/lexer/backbone 615646 ns/iter (± 2996) 619520 ns/iter (± 3229) 0.99
es/lexer/jquery 3450799 ns/iter (± 10020) 3498338 ns/iter (± 21354) 0.99
es/lexer/jquery mobile 5087855 ns/iter (± 5775) 5246989 ns/iter (± 21188) 0.97
es/lexer/mootools 2704800 ns/iter (± 6615) 2714197 ns/iter (± 54643) 1.00
es/lexer/underscore 506638 ns/iter (± 743) 507362 ns/iter (± 1926) 1.00
es/lexer/three 15458318 ns/iter (± 106926) 15456453 ns/iter (± 31979) 1.00
es/lexer/yui 2731834 ns/iter (± 25366) 2840680 ns/iter (± 24966) 0.96
es/lexer/cal-com 12303216 ns/iter (± 15554) 12556009 ns/iter (± 156977) 0.98
es/lexer/typescript 86012970 ns/iter (± 114320) 87268767 ns/iter (± 771843) 0.99
es/parser/colors 23933 ns/iter (± 80) 24221 ns/iter (± 82) 0.99
es/parser/angular 12375904 ns/iter (± 144042) 12461457 ns/iter (± 85397) 0.99
es/parser/backbone 1818531 ns/iter (± 6230) 1802297 ns/iter (± 8306) 1.01
es/parser/jquery 10020083 ns/iter (± 66557) 9982430 ns/iter (± 145673) 1.00
es/parser/jquery mobile 15132663 ns/iter (± 112804) 14996850 ns/iter (± 126179) 1.01
es/parser/mootools 7774859 ns/iter (± 35186) 7729858 ns/iter (± 19995) 1.01
es/parser/underscore 1583780 ns/iter (± 8988) 1572420 ns/iter (± 15644) 1.01
es/parser/three 44119609 ns/iter (± 369848) 43701522 ns/iter (± 275362) 1.01
es/parser/yui 7337136 ns/iter (± 32944) 7432649 ns/iter (± 60280) 0.99
es/parser/cal-com 41196289 ns/iter (± 185026) 39564391 ns/iter (± 413823) 1.04
es/parser/typescript 268175099 ns/iter (± 945405) 266099062 ns/iter (± 1500173) 1.01
es/preset-env/usage/builtin_type 137763 ns/iter (± 34330) 134597 ns/iter (± 33788) 1.02
es/preset-env/usage/property 16758 ns/iter (± 81) 16174 ns/iter (± 64) 1.04
es/resolver/typescript 99742836 ns/iter (± 3301311) 100523052 ns/iter (± 3334107) 0.99
es/fixer/typescript 81269198 ns/iter (± 2150826) 81040860 ns/iter (± 2741332) 1.00
es/hygiene/typescript 181253286 ns/iter (± 4538475) 188296822 ns/iter (± 2477766) 0.96
es/resolver_with_hygiene/typescript 306054128 ns/iter (± 6035648) 305643800 ns/iter (± 1616980) 1.00
es/visitor/base-perf/module_clone 57017 ns/iter (± 925) 55705 ns/iter (± 747) 1.02
es/visitor/base-perf/fold_empty 60875 ns/iter (± 780) 60816 ns/iter (± 726) 1.00
es/visitor/base-perf/fold_noop_impl_all 60961 ns/iter (± 637) 60682 ns/iter (± 650) 1.00
es/visitor/base-perf/fold_noop_impl_vec 61004 ns/iter (± 637) 60998 ns/iter (± 590) 1.00
es/visitor/base-perf/boxing_boxed_clone 58 ns/iter (± 0) 60 ns/iter (± 0) 0.97
es/visitor/base-perf/boxing_unboxed_clone 47 ns/iter (± 0) 47 ns/iter (± 0) 1
es/visitor/base-perf/boxing_boxed 105 ns/iter (± 0) 105 ns/iter (± 0) 1
es/visitor/base-perf/boxing_unboxed 82 ns/iter (± 0) 81 ns/iter (± 0) 1.01
es/visitor/base-perf/visit_contains_this 2669 ns/iter (± 43) 2623 ns/iter (± 10) 1.02
es/base/parallel/resolver/typescript 2501310486 ns/iter (± 209175507) 2426699734 ns/iter (± 106872408) 1.03
es/base/parallel/hygiene/typescript 3183593575 ns/iter (± 25795822) 3239724458 ns/iter (± 39490431) 0.98
babelify-only 493987 ns/iter (± 2816) 498217 ns/iter (± 7667) 0.99
parse_and_babelify_angular 44664644 ns/iter (± 2392983) 41966963 ns/iter (± 2453199) 1.06
parse_and_babelify_backbone 4302129 ns/iter (± 193223) 4302192 ns/iter (± 164742) 1.00
parse_and_babelify_jquery 28773168 ns/iter (± 406034) 27892274 ns/iter (± 166129) 1.03
parse_and_babelify_jquery_mobile 48076848 ns/iter (± 501106) 47924090 ns/iter (± 481774) 1.00
parse_and_babelify_mootools 25342175 ns/iter (± 167792) 25341225 ns/iter (± 241163) 1.00
parse_and_babelify_underscore 3653114 ns/iter (± 15266) 3635485 ns/iter (± 21399) 1.00
parse_and_babelify_yui 23390977 ns/iter (± 227130) 23458541 ns/iter (± 225241) 1.00
html/minify/document/css_spec 45047552 ns/iter (± 358576) 47611168 ns/iter (± 449088) 0.95
html/minify/document/github 18118818 ns/iter (± 50431) 18694265 ns/iter (± 175958) 0.97
html/minify/document/stackoverflow 17201719 ns/iter (± 94522) 17637925 ns/iter (± 356764) 0.98
html/minify/document_fragment/css_spec 44436691 ns/iter (± 194918) 47350214 ns/iter (± 317371) 0.94
html/minify/document_fragment/github 17801435 ns/iter (± 132343) 18560370 ns/iter (± 86948) 0.96
html/minify/document_fragment/stackoverflow 16239606 ns/iter (± 120207) 17367083 ns/iter (± 259013) 0.94
html/document/visitor/compare/clone 163628 ns/iter (± 1798) 161392 ns/iter (± 1801) 1.01
html/document/visitor/compare/visit_mut_span 179902 ns/iter (± 1169) 178986 ns/iter (± 1538) 1.01
html/document/visitor/compare/visit_mut_span_panic 187402 ns/iter (± 5357) 182361 ns/iter (± 3943) 1.03
html/document/visitor/compare/fold_span 227764 ns/iter (± 1350) 225568 ns/iter (± 1046) 1.01
html/document/visitor/compare/fold_span_panic 278910 ns/iter (± 1439) 274427 ns/iter (± 1018) 1.02
html/document_fragment/visitor/compare/clone 165718 ns/iter (± 900) 161790 ns/iter (± 1366) 1.02
html/document_fragment/visitor/compare/visit_mut_span 180215 ns/iter (± 5851) 179786 ns/iter (± 1470) 1.00
html/document_fragment/visitor/compare/visit_mut_span_panic 186901 ns/iter (± 929) 182100 ns/iter (± 1434) 1.03
html/document_fragment/visitor/compare/fold_span 228810 ns/iter (± 912) 225260 ns/iter (± 909) 1.02
html/document_fragment/visitor/compare/fold_span_panic 277626 ns/iter (± 4816) 277251 ns/iter (± 2335) 1.00
html/lexer/css_2021_spec 13425669 ns/iter (± 53901) 12869520 ns/iter (± 118841) 1.04
html/lexer/github_com_17_05_2022 5140127 ns/iter (± 8474) 4920447 ns/iter (± 7210) 1.04
html/lexer/stackoverflow_com_17_05_2022 4831016 ns/iter (± 7946) 4650410 ns/iter (± 43642) 1.04
html/parser/parser_document/css_2021_spec 25646538 ns/iter (± 598517) 25718119 ns/iter (± 95678) 1.00
html/parser/parser_document/github_com_17_05_2022 8514027 ns/iter (± 6127) 8487323 ns/iter (± 25574) 1.00
html/parser/parser_document/stackoverflow_com_17_05_2022 7391013 ns/iter (± 11851) 7492110 ns/iter (± 8781) 0.99
html/parser/parser_document_fragment/css_2021_spec 25946930 ns/iter (± 383559) 25680789 ns/iter (± 71891) 1.01
html/parser/parser_document_fragment/github_com_17_05_2022 8545209 ns/iter (± 57991) 8462779 ns/iter (± 11726) 1.01
html/parser/parser_document_fragment/stackoverflow_com_17_05_2022 7404266 ns/iter (± 47030) 7522587 ns/iter (± 10304) 0.98

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

Please sign in to comment.