swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf(ecma): reduce transformer compat overhead
#11856
Merged
Comparing
hardfist:codex/ecma-transform-perf
(
5a4c95c
) with
main
(
e199564
)
CodSpeed Performance Gauge
+11%
Improvement
23
Untouched
196
Ignored
1
Skipped
31
Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments, which may affect the accuracy of the results.
Learn more about regression causes
.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
Ignored
Skipped
251 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/full-target/es2016
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::full_group
CodSpeed Performance Gauge
+31%
670.7 µs
512.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/full-target/es2017
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::full_group
CodSpeed Performance Gauge
+30%
630.6 µs
484.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/full-target/es2018
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::full_group
CodSpeed Performance Gauge
+28%
589.5 µs
460.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/target/es2020
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group
CodSpeed Performance Gauge
+25%
503.3 µs
402.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2022_class_properties
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+14%
406.6 µs
357.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/target/es2015
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group
CodSpeed Performance Gauge
+10%
1.3 ms
1.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2019_optional_catch_binding
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+9%
305.5 µs
279.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2015_shorthand_property
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+9%
306.1 µs
281.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2015_fn_name
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+9%
314.3 µs
288.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2015_sticky_regex
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+8%
312.9 µs
288.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2015_duplicate_keys
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+8%
316.2 µs
292 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2015_typeof_symbol
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+8%
315.2 µs
291.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/target/es2017
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group
CodSpeed Performance Gauge
+8%
315.2 µs
291.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2015_instanceof
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+8%
316.1 µs
292.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2017_async_to_generator
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+7%
312.4 µs
291.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2020_nullish_coalescing
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+7%
311.9 µs
292.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/target/es2016
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group
CodSpeed Performance Gauge
+6%
313.7 µs
294.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2018_object_rest_spread
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+6%
317.2 µs
299.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2016_exponentiation
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+6%
311.8 µs
294.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/target/es2018
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group
CodSpeed Performance Gauge
+6%
326.3 µs
308.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es2015_destructuring
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group
CodSpeed Performance Gauge
+6%
366.8 µs
347.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/all/es3
crates/swc/benches/typescript.rs::benches::full_group
CodSpeed Performance Gauge
+5%
189.3 ms
180.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/all/es5
crates/swc/benches/typescript.rs::benches::full_group
CodSpeed Performance Gauge
+3%
183 ms
178.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/bugs-1
crates/swc/benches/bugs.rs::benches::bench_bugs
CodSpeed Performance Gauge
+2%
412.5 µs
405.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/all/es2020
crates/swc/benches/typescript.rs::benches::full_group
CodSpeed Performance Gauge
+1%
111.6 ms
110.2 ms
1
2
3
4
5
...
11
Commits
Click on a commit to change the comparison range
Base
main
e199564
+10.91%
fix(transformer): handle unknown arrow bodies
4596a20
2 days ago
by hardfist
-0.06%
chore: add changeset for ecma transformer perf
5a4c95c
2 days ago
by kdy1
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs