swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf: speed up swc_ecma_codegen JsWriter hot path
#11870
Comparing
hardfist:codex/ecma-codegen-10pct-speedup
(
9ac84bc
) with
main
(
aa5b539
)
CodSpeed Performance Gauge
+10%
Improvement
19
Untouched
200
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/large/codegen/es2017
crates/swc/benches/typescript.rs::benches::codegen_group
CodSpeed Performance Gauge
+18%
34 ms
28.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/codegen/es2019
crates/swc/benches/typescript.rs::benches::codegen_group
CodSpeed Performance Gauge
+18%
33.9 ms
28.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/codegen/es2018
crates/swc/benches/typescript.rs::benches::codegen_group
CodSpeed Performance Gauge
+18%
34 ms
28.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/codegen/es3
crates/swc/benches/typescript.rs::benches::codegen_group
CodSpeed Performance Gauge
+18%
33.9 ms
28.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/codegen/es2020
crates/swc/benches/typescript.rs::benches::codegen_group
CodSpeed Performance Gauge
+18%
34 ms
28.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/codegen/es5
crates/swc/benches/typescript.rs::benches::codegen_group
CodSpeed Performance Gauge
+18%
33.9 ms
28.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/codegen/es2016
crates/swc/benches/typescript.rs::benches::codegen_group
CodSpeed Performance Gauge
+18%
33.9 ms
28.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/codegen/es2015
crates/swc/benches/typescript.rs::benches::codegen_group
CodSpeed Performance Gauge
+18%
33.9 ms
28.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/codegen/large
crates/swc_ecma_codegen/benches/bench.rs::benches::bench_cases
CodSpeed Performance Gauge
+15%
641.5 µs
556.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/codegen/with-parser/large
crates/swc_ecma_codegen/benches/with_parse.rs::benches::bench_cases
CodSpeed Performance Gauge
+9%
1,062.7 µs
976.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/codegen/colors
crates/swc_ecma_codegen/benches/bench.rs::benches::bench_cases
CodSpeed Performance Gauge
+6%
71.9 µs
68 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/codegen/with-parser/colors
crates/swc_ecma_codegen/benches/with_parse.rs::benches::bench_cases
CodSpeed Performance Gauge
+3%
149.9 µs
145.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/oxc/benches/assets/table.tsx/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group
CodSpeed Performance Gauge
+3%
8.1 ms
7.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group
CodSpeed Performance Gauge
+2%
83.5 ms
81.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/oxc/benches/assets/table.tsx/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group
CodSpeed Performance Gauge
+2%
7.3 ms
7.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group
CodSpeed Performance Gauge
+2%
83.5 ms
81.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/oxc/benches/assets/renderer.ts/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group
CodSpeed Performance Gauge
+2%
13.6 ms
13.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/oxc/benches/assets/renderer.ts/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group
CodSpeed Performance Gauge
+2%
13.6 ms
13.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group
CodSpeed Performance Gauge
+2%
1.2 ms
1.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group
CodSpeed Performance Gauge
+2%
1.3 ms
1.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/minify/libraries/terser
crates/swc/benches/minify.rs::benches::files_group::es/large/minify/libraries
CodSpeed Performance Gauge
+2%
460.5 ms
452.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/lints/libs/three
crates/swc_ecma_lints/benches/all.rs::files::bench_files::es/lints/libs
CodSpeed Performance Gauge
+2%
50.9 ms
50 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/minify/libraries/three
crates/swc/benches/minify.rs::benches::files_group::es/large/minify/libraries
CodSpeed Performance Gauge
+2%
820.9 ms
808.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/minify/libraries/typescript
crates/swc/benches/minify.rs::benches::files_group::es/large/minify/libraries
CodSpeed Performance Gauge
+2%
4.6 s
4.5 s
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/minify/libraries/echarts
crates/swc/benches/minify.rs::benches::files_group::es/large/minify/libraries
CodSpeed Performance Gauge
+1%
2 s
1.9 s
1
2
3
4
5
...
11
Commits
Click on a commit to change the comparison range
Base
main
aa5b539
+10.18%
perf(ecma_codegen): streamline write hot path branching
5145cc0
2 months ago
by hardfist
-10.18%
Merge remote-tracking branch 'origin/main' into codex/ecma-codegen-10pct-speedup
b425240
2 months ago
by hardfist
+9.83%
fix(ecma_codegen): remove stale srcmap hash dedupe path
9ac84bc
2 months ago
by hardfist
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs