rstackjs
rspack-sources
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf: optimize source map generation
#242
Comparing
perf/optimize-mappings-encoder
(
0c054ac
) with
main
(
f86ace1
)
CodSpeed Performance Gauge
+10%
Improvement
4
Regression
1
Untouched
8
Skipped
7
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Regression
Improvement
Untouched
Skipped
20 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
cached_source_hash
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
-2%
2.9 µs
3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
complex_replace_source_map_cached_source_stream_chunks
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
+30%
6.2 ms
4.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat_generate_string_with_cache
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
+11%
13.2 µs
11.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat_generate_string
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
+9%
43.8 µs
40.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
source_map_to_json
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
+4%
11.6 ms
11.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parse_source_map_from_json
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
0%
47.9 ms
47.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
complex_replace_source_source
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
0%
2.7 ms
2.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
complex_replace_source_size
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
0%
221.3 µs
221.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat_source_add_many
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
0%
46.6 µs
46.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
repetitive_react_components_source
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
0%
251.3 µs
252.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
complex_replace_source_map
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
0%
8.2 ms
8.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
repetitive_react_components_map
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
0%
1.7 ms
1.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat_source_add_few
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
CodSpeed Performance Gauge
0%
6.1 µs
6.1 µs
The benchmarks below were skipped, so their baseline results are used instead. If they were deleted in your codebase, archive them to remove them from the performance reports.
Learn more about archiving benchmarks
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat_generate_base64_with_cache
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
Skipped
17.3 µs
*
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat_generate_base64
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
Skipped
48 µs
*
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat_generate_string_with_cache_as_key
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
Skipped
3 µs
*
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat_generate_string_as_key
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
Skipped
14.7 µs
*
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
complex_replace_source
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
Skipped
55.4 ms
*
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
stringify_source_map_to_json
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
Skipped
14.7 ms
*
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
source_map_clone
benches/bench.rs::rspack_sources::bench_rspack_sources::rspack_sources
Skipped
1.1 µs
*
Commits
Click on a commit to change the comparison range
Base
main
f86ace1
+9.58%
perf: optimize mappings encoder
55d8ae9
8 days ago
by hardfist
+3.11%
perf: skip replace source streaming for empty edits
3f262ad
8 days ago
by hardfist
-2.86%
perf: reuse ascii source content hint
287ba0a
8 days ago
by hardfist
+0.05%
perf: fast path ascii UTF-16 slices
c672e8d
8 days ago
by hardfist
-0.06%
perf: inline UTF-16 substring helper
0c054ac
8 days ago
by hardfist
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs