swc-project
swc
BlogDocs

fix(es/typescript): Handle ASI hazards in fast type strip

#9707Merged
Comparing
magic-akari:fix/issue-9681
(
378c060
) with
main
(
c135f71
)
0%
Improvements
0
Regressions
0
Untouched
194
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

common/allocator/alloc/no-scope/1000000
crates/swc_allocator/benches/bench.rs::benches::bench_alloc::common/allocator/alloc/no-scope/1000000
+2%
115.2 ms
112.8 ms
es/full/minify/libraries/d3
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/d3
+1%
819.6 ms
811.5 ms
common/allocator/alloc/cached-no-scope/1000000
crates/swc_allocator/benches/bench.rs::benches::bench_alloc::common/allocator/alloc/cached-no-scope/1000000
+1%
112.4 ms
111.4 ms
es/oxc/benches/assets/UserSettings.tsx/sourceMap=false/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/UserSettings.tsx/sourceMap=false/reactDev=true
+1%
1.3 ms
1.3 ms
github
crates/swc_html_minifier/benches/full.rs::files_document::bench_files_document::html/minify/document::github
+1%
44.5 ms
44.3 ms
es/oxc/benches/assets/renderer.ts/sourceMap=false/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/renderer.ts/sourceMap=false/reactDev=false
0%
12.4 ms
12.3 ms
css/parser/tailwind_3_1_1
crates/swc_css_parser/benches/parser.rs::benches::bench_files::css/parser/tailwind_3_1_1
0%
7.8 ms
7.7 ms
stackoverflow
crates/swc_html_minifier/benches/full.rs::files_document::bench_files_document::html/minify/document::stackoverflow
0%
39.5 ms
39.4 ms
es/oxc/benches/assets/renderer.ts/sourceMap=false/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/renderer.ts/sourceMap=false/reactDev=true
0%
12.4 ms
12.3 ms
stackoverflow
crates/swc_html_minifier/benches/full.rs::files_document_fragment::bench_files_document_fragment::html/minify/document_fragment::stackoverflow
0%
39.3 ms
39.2 ms
html/document_fragment/visitor/compare/fold_span
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document_fragment/visitor/compare/fold_span
0%
1.3 ms
1.3 ms
html/document_fragment/visitor/compare/fold_span_panic
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document_fragment/visitor/compare/fold_span_panic
0%
1.3 ms
1.3 ms
es/minifier/libs/lodash
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/lodash
0%
216.9 ms
216.5 ms
es/parser/backbone
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/backbone
0%
5.1 ms
5.1 ms
es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=true
0%
1.6 ms
1.6 ms
es/full/minify/libraries/antd
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/antd
0%
4.1 s
4.1 s
es/parser/mootools
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/mootools
0%
21.1 ms
21 ms
es/minifier/libs/antd
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/antd
0%
3.3 s
3.3 s
common/allocator/alloc/cached-scoped/1000000
crates/swc_allocator/benches/bench.rs::benches::bench_alloc::common/allocator/alloc/cached-scoped/1000000
0%
52.4 ms
52.4 ms
es/minifier/libs/terser
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/terser
0%
493 ms
492.5 ms
es/full/minify/libraries/victory
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/victory
0%
1.9 s
1.9 s
es/minifier/libs/three
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/three
0%
990.9 ms
990.3 ms
es/minifier/libs/echarts
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/echarts
0%
2.6 s
2.6 s
es/full/parser
crates/swc/benches/typescript.rs::benches::parser_group::es/full/parser
0%
1.4 ms
1.4 ms
es/oxc/benches/assets/renderer.ts/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/renderer.ts/sourceMap=true/reactDev=false
0%
16.9 ms
16.9 ms
es/full/codegen/es2016
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2016
0%
259.6 µs
259.5 µs
resolver/typescript
crates/swc_ecma_transforms_base/benches/parallel.rs::benches::bench_cases::es/base/parallel::resolver/typescript
0%
13.6 s
13.6 s
css_spec
crates/swc_html_minifier/benches/full.rs::files_document_fragment::bench_files_document_fragment::html/minify/document_fragment::css_spec
0%
204.2 ms
204.1 ms
es/full/codegen/es2020
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2020
0%
256 µs
255.9 µs
es/minifier/libs/moment
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/moment
0%
99 ms
99 ms
parse_and_babelify_underscore
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_underscore
0%
15.3 ms
15.3 ms
es/hygiene/typescript
crates/swc_ecma_transforms_base/benches/base.rs::benches::bench_cases::es/hygiene/typescript
0%
559.3 ms
559.1 ms
es/visitor/compare/fold_span_panic
crates/swc_ecma_parser/benches/compare.rs::benches::bench_cases::es/visitor/compare/fold_span_panic
0%
8 ms
8 ms
es/full/codegen/es3
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es3
0%
253.7 µs
253.6 µs
es/oxc/benches/assets/UserSettings.tsx/sourceMap=false/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/UserSettings.tsx/sourceMap=false/reactDev=false
0%
1.1 ms
1.1 ms
es/target/es3
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es3
0%
415.1 µs
415.1 µs
es/resolver_with_hygiene/typescript
crates/swc_ecma_transforms_base/benches/base.rs::benches::bench_cases::es/resolver_with_hygiene/typescript
0%
874.8 ms
874.7 ms
parse_and_babelify_angular
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_angular
0%
162.5 ms
162.5 ms
css/visitor/compare/visit_mut_span_panic
crates/swc_css_parser/benches/compare.rs::benches::bench_cases::css/visitor/compare/visit_mut_span_panic
0%
6.4 ms
6.4 ms
css/visitor/compare/visit_mut_span
crates/swc_css_parser/benches/compare.rs::benches::bench_cases::css/visitor/compare/visit_mut_span
0%
6.4 ms
6.4 ms
es/full/all/es2017
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2017
0%
181.5 ms
181.5 ms
es/preset-env/usage/builtin_type
crates/swc_ecma_preset_env/benches/polyfills.rs::benches::bench_cases::es/preset-env/usage/builtin_type
0%
252.7 µs
252.6 µs
es2016_exponentiation
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2016_exponentiation
0%
294.7 µs
294.7 µs
css/visitor/compare/fold_span
crates/swc_css_parser/benches/compare.rs::benches::bench_cases::css/visitor/compare/fold_span
0%
7 ms
7 ms
css/visitor/compare/fold_span_panic
crates/swc_css_parser/benches/compare.rs::benches::bench_cases::css/visitor/compare/fold_span_panic
0%
7 ms
7 ms
es2019_optional_catch_binding
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2019_optional_catch_binding
0%
275.4 µs
275.4 µs
es/visitor/compare/fold_span
crates/swc_ecma_parser/benches/compare.rs::benches::bench_cases::es/visitor/compare/fold_span
0%
8 ms
8 ms
es/codegen/with-parser/colors
crates/swc_ecma_codegen/benches/with_parse.rs::benches::bench_cases::es/codegen/with-parser/colors
0%
201 µs
201 µs
es/parser/colors
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/colors
0%
133.3 µs
133.2 µs
es/target/es2018
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es2018
0%
310.9 µs
310.9 µs
es2015_parameters
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_parameters
0%
341.2 µs
341.2 µs
es2015_fn_name
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_fn_name
0%
286.9 µs
286.9 µs
es/parser/typescript
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/typescript
0%
724.3 ms
724.3 ms
es/full-target/es2018
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::full_group::es/full-target/es2018
0%
519.7 µs
519.7 µs
parse_and_babelify_jquery
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_jquery
0%
110.1 ms
110.1 ms
es2015_shorthand_property
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_shorthand_property
0%
275.8 µs
275.8 µs
html/parser/parser_document/github_com_17_05_2022
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document/github_com_17_05_2022
0%
24.1 ms
24.1 ms
es2015_block_scoping
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_block_scoping
0%
456.7 µs
456.7 µs
es/target/es2020
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es2020
0%
457.6 µs
457.6 µs
es/full/all/es2018
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2018
0%
180 ms
180 ms
es/visitor/compare/clone
crates/swc_ecma_parser/benches/compare.rs::benches::bench_cases::es/visitor/compare/clone
0%
6.7 ms
6.7 ms
es/preset-env/usage/property
crates/swc_ecma_preset_env/benches/polyfills.rs::benches::bench_cases::es/preset-env/usage/property
0%
116.8 µs
116.8 µs
es2018_object_rest_spread
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2018_object_rest_spread
0%
295.3 µs
295.2 µs
es/codegen/colors
crates/swc_ecma_codegen/benches/bench.rs::benches::bench_cases::es/codegen/colors
0%
69.9 µs
69.9 µs
es2015_for_of
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_for_of
0%
291.8 µs
291.8 µs
es/visitor/base-perf/fold_noop_impl_vec
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/fold_noop_impl_vec
0%
327.4 µs
327.4 µs
es2017_async_to_generator
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2017_async_to_generator
0%
275.3 µs
275.3 µs
es/transform/baseline/common_typescript
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::baseline_group::es/transform/baseline/common_typescript
0%
370.4 µs
370.4 µs
hygiene/typescript
crates/swc_ecma_transforms_base/benches/parallel.rs::benches::bench_cases::es/base/parallel::hygiene/typescript
0%
28.1 s
28.1 s
es2015_arrow
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_arrow
0%
307 µs
307 µs
es/codegen/large
crates/swc_ecma_codegen/benches/bench.rs::benches::bench_cases::es/codegen/large
0%
687.9 µs
687.8 µs
es2020_optional_chaining
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2020_optional_chaining
0%
338.6 µs
338.6 µs
typescript/fast-strip
crates/swc_fast_ts_strip/benches/assets.rs::benches::fast_ts::typescript/fast-strip
0%
778.7 µs
778.6 µs
es/transform/baseline/base
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::baseline_group::es/transform/baseline/base
0%
261.7 µs
261.7 µs
es/lexer/jquery mobile
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/jquery mobile
0%
14.5 ms
14.5 ms
es/lexer/angular
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/angular
0%
14.4 ms
14.4 ms
es2020_nullish_coalescing
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2020_nullish_coalescing
0%
301.9 µs
301.9 µs
css/lexer/tailwind_3_1_1
crates/swc_css_parser/benches/lexer.rs::benches::bench_files::css/lexer/tailwind_3_1_1
0%
1.5 ms
1.5 ms
es2015_destructuring
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_destructuring
0%
351.4 µs
351.4 µs
css/parser/bootstrap_5_1_3
crates/swc_css_parser/benches/parser.rs::benches::bench_files::css/parser/bootstrap_5_1_3
0%
50.5 ms
50.5 ms
css/lexer/bootstrap_5_1_3
crates/swc_css_parser/benches/lexer.rs::benches::bench_files::css/lexer/bootstrap_5_1_3
0%
9.5 ms
9.5 ms
es/lexer/three
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/three
0%
45.1 ms
45.1 ms
es/lexer/mootools
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/mootools
0%
7.4 ms
7.4 ms
html/document/visitor/compare/visit_mut_span_panic
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document/visitor/compare/visit_mut_span_panic
0%
1.2 ms
1.2 ms
es/lexer/cal-com
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/cal-com
0%
36.5 ms
36.5 ms
es/lexer/jquery
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/jquery
0%
9.3 ms
9.3 ms
es/lexer/yui
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/yui
0%
8.2 ms
8.2 ms
html/lexer/css_2021_spec
crates/swc_html_parser/benches/lexer.rs::benches::bench_files::html/lexer/css_2021_spec
0%
41.1 ms
41.1 ms
deserialization of serde
crates/swc_common/benches/serde.rs::benches::bench_serde::deserialization of serde
0%
2.4 µs
2.4 µs
serialization of serde
crates/swc_common/benches/serde.rs::benches::bench_serde::serialization of serde
0%
2.7 µs
2.7 µs
es/lexer/colors
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/colors
0%
47.1 µs
47.1 µs
es/visitor/base-perf/boxing_boxed
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/boxing_boxed
0%
3.3 µs
3.3 µs
es/visitor/base-perf/boxing_boxed_clone
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/boxing_boxed_clone
0%
2.4 µs
2.4 µs
es/visitor/base-perf/boxing_unboxed
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/boxing_unboxed
0%
3.4 µs
3.4 µs
es/visitor/base-perf/boxing_unboxed_clone
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/boxing_unboxed_clone
0%
2.6 µs
2.6 µs
es/visitor/base-perf/visit_contains_this
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/visit_contains_this
0%
47.7 µs
47.7 µs
html/document_fragment/visitor/compare/visit_mut_span_panic
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document_fragment/visitor/compare/visit_mut_span_panic
0%
1.2 ms
1.2 ms
html/lexer/github_com_17_05_2022
crates/swc_html_parser/benches/lexer.rs::benches::bench_files::html/lexer/github_com_17_05_2022
0%
15.1 ms
15.1 ms
css/lexer/foundation_6_7_4
crates/swc_css_parser/benches/lexer.rs::benches::bench_files::css/lexer/foundation_6_7_4
0%
7.6 ms
7.6 ms
es/lexer/backbone
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/backbone
0%
1.8 ms
1.8 ms
html/lexer/stackoverflow_com_17_05_2022
crates/swc_html_parser/benches/lexer.rs::benches::bench_files::html/lexer/stackoverflow_com_17_05_2022
0%
14.9 ms
14.9 ms
es/target/es2015
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es2015
0%
1.2 ms
1.2 ms
es/visitor/base-perf/fold_noop_impl_all
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/fold_noop_impl_all
0%
327.1 µs
327.1 µs
es/codegen/with-parser/large
crates/swc_ecma_codegen/benches/with_parse.rs::benches::bench_cases::es/codegen/with-parser/large
0%
1.5 ms
1.5 ms
es/lexer/underscore
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/underscore
0%
1.5 ms
1.5 ms
es2015_computed_props
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_computed_props
0%
277 µs
277 µs
html/document/visitor/compare/fold_span
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document/visitor/compare/fold_span
0%
1.3 ms
1.3 ms
es/full-target/es2017
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::full_group::es/full-target/es2017
0%
536.7 µs
536.7 µs
es2015_block_scoped_fn
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_block_scoped_fn
0%
293.2 µs
293.2 µs
es/transform/baseline/common_reserved_word
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::baseline_group::es/transform/baseline/common_reserved_word
0%
287.7 µs
287.7 µs
html/document/visitor/compare/visit_mut_span
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document/visitor/compare/visit_mut_span
0%
1.2 ms
1.2 ms
es2015_classes
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_classes
0%
393.3 µs
393.3 µs
es/full-target/es2016
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::full_group::es/full-target/es2016
0%
575.6 µs
575.6 µs
es/full/all/es2020
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2020
0%
172.2 ms
172.2 ms
es2015_typeof_symbol
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_typeof_symbol
0%
278.9 µs
278.9 µs
es/parser/three
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/three
0%
125.4 ms
125.4 ms
html/document/visitor/compare/clone
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document/visitor/compare/clone
0%
1.1 ms
1.1 ms
html/document_fragment/visitor/compare/visit_mut_span
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document_fragment/visitor/compare/visit_mut_span
0%
1.2 ms
1.2 ms
es/parser/angular
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/angular
0%
34.6 ms
34.6 ms
es2022_class_properties
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2022_class_properties
0%
386 µs
386 µs
es2015_duplicate_keys
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_duplicate_keys
0%
284.1 µs
284.1 µs
html/parser/parser_document/css_2021_spec
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document/css_2021_spec
0%
76.7 ms
76.7 ms
es/visitor/base-perf/fold_empty
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/fold_empty
0%
327.1 µs
327.1 µs
bootstrap
crates/swc_css_minifier/benches/full.rs::files::bench_files::css/minify/libraries::bootstrap
0%
64.8 ms
64.8 ms
es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=true
0%
107.6 ms
107.6 ms
es/target/es2016
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es2016
0%
296.3 µs
296.3 µs
es/visitor/base-perf/module_clone
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/module_clone
0%
327.3 µs
327.3 µs
es/visitor/compare/visit_mut_span_panic
crates/swc_ecma_parser/benches/compare.rs::benches::bench_cases::es/visitor/compare/visit_mut_span_panic
0%
7.2 ms
7.2 ms
es/target/es2017
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es2017
0%
277.4 µs
277.4 µs
common/allocator/alloc/scoped/1000000
crates/swc_allocator/benches/bench.rs::benches::bench_alloc::common/allocator/alloc/scoped/1000000
0%
52.7 ms
52.7 ms
es2015_instanceof
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_instanceof
0%
281.2 µs
281.2 µs
es2015_spread
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_spread
0%
275.9 µs
275.9 µs
es/lexer/typescript
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/typescript
0%
250.1 ms
250.1 ms
es2015_sticky_regex
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_sticky_regex
0%
279.9 µs
279.9 µs
es/full/codegen/es2019
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2019
0%
256.5 µs
256.5 µs
css/visitor/compare/clone
crates/swc_css_parser/benches/compare.rs::benches::bench_cases::css/visitor/compare/clone
0%
6 ms
6 ms
es/full/all/es3
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es3
0%
247.6 ms
247.6 ms
parse_and_babelify_jquery_mobile
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_jquery_mobile
0%
185.2 ms
185.3 ms
es/fixer/typescript
crates/swc_ecma_transforms_base/benches/base.rs::benches::bench_cases::es/fixer/typescript
0%
224.6 ms
224.6 ms
html/parser/parser_document_fragment/stackoverflow_com_17_05_2022
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document_fragment/stackoverflow_com_17_05_2022
0%
22.8 ms
22.8 ms
es/full/all/es5
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es5
0%
240.8 ms
240.8 ms
es/full/all/es2019
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2019
0%
179.1 ms
179.1 ms
html/parser/parser_document/stackoverflow_com_17_05_2022
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document/stackoverflow_com_17_05_2022
0%
22.9 ms
22.9 ms
es/full/all/es2016
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2016
0%
182.3 ms
182.3 ms
es/full/all/es2015
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2015
0%
183.5 ms
183.5 ms
es/full/codegen/es5
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es5
0%
253.6 µs
253.7 µs
html/parser/parser_document_fragment/css_2021_spec
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document_fragment/css_2021_spec
0%
76 ms
76 ms
es/full/bugs-1
crates/swc/benches/bugs.rs::benches::bench_bugs::es/full/bugs-1
0%
470.7 µs
470.8 µs
es/visitor/compare/visit_mut_span
crates/swc_ecma_parser/benches/compare.rs::benches::bench_cases::es/visitor/compare/visit_mut_span
0%
7.3 ms
7.3 ms
parse_and_babelify_yui
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_yui
0%
76.4 ms
76.4 ms
parse_and_babelify_mootools
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_mootools
0%
81.7 ms
81.7 ms
babelify-only
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::babelify-only
0%
2.1 ms
2.1 ms
es/full/minify/libraries/react
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/react
0%
36.8 ms
36.9 ms
es/full/minify/libraries/lodash
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/lodash
0%
250.2 ms
250.3 ms
css/parser/foundation_6_7_4
crates/swc_css_parser/benches/parser.rs::benches::bench_files::css/parser/foundation_6_7_4
0%
40.1 ms
40.1 ms
es/minifier/libs/react
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/react
0%
31.1 ms
31.1 ms
es/full/codegen/es2015
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2015
0%
254.3 µs
254.4 µs
es/resolver/typescript
crates/swc_ecma_transforms_base/benches/base.rs::benches::bench_cases::es/resolver/typescript
0%
268 ms
268.1 ms
es/minifier/libs/typescript
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/typescript
0%
5.7 s
5.7 s
parse_and_babelify_backbone
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_backbone
0%
17.8 ms
17.8 ms
es/parser/cal-com
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/cal-com
0%
100.3 ms
100.4 ms
es/full/codegen/es2017
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2017
0%
253.8 µs
254 µs
html/parser/parser_document_fragment/github_com_17_05_2022
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document_fragment/github_com_17_05_2022
0%
24 ms
24 ms
es/minifier/libs/victory
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/victory
0%
1.4 s
1.4 s
es/full/minify/libraries/three
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/three
0%
1.3 s
1.3 s
es/minifier/libs/d3
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/d3
0%
669.9 ms
670.4 ms
es/oxc/benches/assets/table.tsx/sourceMap=false/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/table.tsx/sourceMap=false/reactDev=true
0%
7.8 ms
7.8 ms
es/full/minify/libraries/jquery
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/jquery
0%
204.6 ms
204.8 ms
es/minifier/libs/vue
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/vue
0%
240.9 ms
241.1 ms
es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=false
0%
75.3 ms
75.4 ms
es/parser/jquery
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/jquery
0%
26.6 ms
26.6 ms
es/parser/yui
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/yui
0%
20.8 ms
20.8 ms
es/full/codegen/es2018
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2018
0%
256.9 µs
257.1 µs
es/minifier/libs/jquery
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/jquery
0%
158.7 ms
158.9 ms
es/full/minify/libraries/typescript
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/typescript
0%
6.6 s
6.7 s
es/full/minify/libraries/vue
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/vue
0%
292.9 ms
293.3 ms
es/full/base/fixer
crates/swc/benches/typescript.rs::benches::base_tr_group::es/full/base/fixer
0%
117.6 µs
117.8 µs
html/document/visitor/compare/fold_span_panic
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document/visitor/compare/fold_span_panic
0%
1.3 ms
1.3 ms
es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=true
0%
75.5 ms
75.7 ms
es/parser/jquery mobile
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/jquery mobile
0%
40.7 ms
40.7 ms
css_spec
crates/swc_html_minifier/benches/full.rs::files_document::bench_files_document::html/minify/document::css_spec
0%
207.3 ms
207.7 ms
html/document_fragment/visitor/compare/clone
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document_fragment/visitor/compare/clone
0%
1.1 ms
1.1 ms
es/full/minify/libraries/echarts
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/echarts
0%
3.3 s
3.3 s
es/oxc/benches/assets/table.tsx/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/table.tsx/sourceMap=true/reactDev=false
0%
9.1 ms
9.2 ms
es/oxc/benches/assets/table.tsx/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/table.tsx/sourceMap=true/reactDev=true
0%
10.1 ms
10.2 ms
es/full/minify/libraries/moment
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/moment
0%
124.5 ms
124.9 ms
es/oxc/benches/assets/renderer.ts/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/renderer.ts/sourceMap=true/reactDev=true
0%
17.1 ms
17.1 ms
es/full/minify/libraries/terser
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/terser
0%
624.9 ms
627.4 ms
es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=false
-1%
105.2 ms
105.8 ms
es/parser/underscore
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/underscore
-1%
4.5 ms
4.5 ms
github
crates/swc_html_minifier/benches/full.rs::files_document_fragment::bench_files_document_fragment::html/minify/document_fragment::github
-1%
43.8 ms
44.1 ms
es/oxc/benches/assets/table.tsx/sourceMap=false/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/table.tsx/sourceMap=false/reactDev=false
-1%
6.7 ms
6.8 ms
common/allocator/alloc/std/1000000
crates/swc_allocator/benches/bench.rs::benches::bench_alloc::common/allocator/alloc/std/1000000
-1%
87.4 ms
88.1 ms
es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=false
-1%
1.4 ms
1.4 ms

Commits

Click on a commit to change the comparison range
Base
main
c135f71
-5%
fix(es/typescript): Handle ASI hazards in fast type strip
844ba71
23 days ago
by magic-akari
0%
fix
0406a1d
23 days ago
by magic-akari
0%
chore: add comments
d83d4ac
23 days ago
by magic-akari
+5%
Create neat-cheetahs-suffer.md
378c060
22 days ago
by kdy1
Home Terms PrivacyDocs