swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf(ecma_codegen): speed up JsWriter position and srcmap tracking
#11867
Comparing
hardfist:perf/micro-optimize-swc-ecma-codegen
(
34aa9a9
) with
main
(
3de0254
)
CodSpeed Performance Gauge
+6%
Improvement
14
Untouched
205
Ignored
1
Skipped
31
No successful run was found on
main
(
5ec7cbd
) during the generation of this report, so
3de0254
was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
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/es2015
crates/swc/benches/typescript.rs::benches::codegen_group
CodSpeed Performance Gauge
+9%
37 ms
34 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
+9%
37.1 ms
34.1 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
+9%
37.1 ms
34.1 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
+9%
37 ms
34.1 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
+9%
37 ms
34.1 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
+9%
37 ms
34.1 ms
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
+9%
37.1 ms
34.1 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
+9%
37 ms
34.1 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
+6%
681.6 µs
645.4 µ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
+3%
1.1 ms
1.1 ms
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
+3%
74.3 µs
72.3 µs
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
+3%
85.7 ms
83.5 ms
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
+2%
8.3 ms
8.2 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%
85.7 ms
83.8 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.9 ms
13.6 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.4 ms
1.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/renderer.ts/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group
CodSpeed Performance Gauge
+2%
13.9 ms
13.6 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
+1%
7.5 ms
7.4 ms
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
+1%
152.6 µs
150.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/minify/libraries/react
crates/swc/benches/minify.rs::benches::files_group::es/large/minify/libraries
CodSpeed Performance Gauge
+1%
24.3 ms
24.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/minify/libraries/antd
crates/swc/benches/minify.rs::benches::files_group::es/large/minify/libraries
CodSpeed Performance Gauge
+1%
2.5 s
2.5 s
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/large/minify/libraries/moment
crates/swc/benches/minify.rs::benches::files_group::es/large/minify/libraries
CodSpeed Performance Gauge
+1%
81.2 ms
80.8 ms
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%
110 ms
109.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
es/minifier/libs/antd
crates/swc_ecma_minifier/benches/full.rs::bench_all::bench_libs::es/minifier/libs
CodSpeed Performance Gauge
0%
1.8 s
1.8 s
1
2
3
4
5
...
11
Commits
Click on a commit to change the comparison range
Base
main
3de0254
+6.31%
perf(ecma_codegen): speed up JsWriter position and srcmap tracking
34aa9a9
11 hours ago
by hardfist
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs