Avatar for the web-infra-dev user
web-infra-dev
rspack
BlogDocsChangelog

perf(sources): use scoped bump allocation for sourcemap scratch data

#14265
Comparing
perf/sources-bump-allocation
(
778c613
) with
main
(
fe549a5
)
CodSpeed Performance Gauge
0%
Improvement
1
Regression
1
Untouched
50
Skipped
40

Benchmarks

92 total
js@collect imported identifiers
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
-2%
225.3 µs230.7 µs
sources@concat_source_add_few
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
+2%
4.1 µs4 µs
bundle@threejs-10x-development
xtask/benchmark/benches/walltime.rs::walltime_benches::threejs_10x_bundle_benchmark::bundle
CodSpeed Performance Gauge
+7%
404.5 ms377.4 ms
rust@mangle_exports
xtask/benchmark/stages/mangle_exports.rs::stage::bench
CodSpeed Performance Gauge
+1%
7.1 ms7.1 ms
rust@runtime_requirements
xtask/benchmark/stages/runtime_requirements.rs::stage::bench
CodSpeed Performance Gauge
+1%
34 ms33.8 ms
rust@create_concatenate_module
xtask/benchmark/stages/create_concatenate_module.rs::stage::bench
CodSpeed Performance Gauge
0%
33.1 ms33 ms
rust@create_chunk_hashes
xtask/benchmark/stages/create_chunk_hashes.rs::stage::bench
CodSpeed Performance Gauge
0%
4 ms4 ms
rust@create_module_hashes
xtask/benchmark/stages/create_module_hashes.rs::stage::bench
CodSpeed Performance Gauge
0%
17 ms16.9 ms
sources@concat_generate_string_with_cache
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
13.5 µs13.5 µs
rust@concatenate_module_code_generation
xtask/benchmark/stages/concatenate_module_code_generation.rs::stage::bench
CodSpeed Performance Gauge
0%
96.9 ms96.6 ms
sources@complex_replace_source_map_cached_source_stream_chunks
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
6.2 ms6.2 ms
rust@scan_dependencies@three_module
xtask/benchmark/cases/scan_dependencies.rs::case::bench
CodSpeed Performance Gauge
0%
21.4 ms21.4 ms
sources@complex_replace_source_map
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
8.7 ms8.7 ms
sources@concat_source_add_many
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
47.3 µs47.2 µs
rust@persistent_cache_restore_after_single_file_change@basic-react-development
xtask/benchmark/cases/persistent_cache_restore_after_single_file_change.rs::case::bench::persistent_cache
CodSpeed Performance Gauge
0%
16.7 ms16.7 ms
sources@parse_source_map_from_json
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
46.6 ms46.5 ms
bundle@basic-react-development
xtask/benchmark/cases/bundle_basic_react_development.rs::case::bench::bundle
CodSpeed Performance Gauge
0%
302.4 ms302.2 ms
rust@create_named_module_ids
xtask/benchmark/stages/create_named_module_ids.rs::stage::bench
CodSpeed Performance Gauge
0%
5.8 ms5.8 ms
rust@build_module_graph
xtask/benchmark/cases/build_module_graph.rs::case::bench
CodSpeed Performance Gauge
0%
894.3 ms894 ms
rust@create_full_hash
xtask/benchmark/stages/create_full_hash.rs::stage::bench
CodSpeed Performance Gauge
0%
6 ms6 ms
bundle@threejs-production-sourcemap
xtask/benchmark/cases/bundle_threejs_production_sourcemap.rs::case::bench::bundle
CodSpeed Performance Gauge
0%
365.9 ms365.8 ms
sources@complex_replace_source_source
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
2.8 ms2.8 ms
sources@repetitive_react_components_source
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
259 µs259 µs
sources@complex_replace_source_size
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
221.4 µs221.4 µs
sources@cached_source_hash
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
3 µs3 µs

Commits

Click on a commit to change the comparison range
Base
main
fe549a5
+3.08%
perf(sources): use bump allocation for utf16 scratch buffers
4813405
5 hours ago
by hardfist
-3.2%
perf(sources): bump allocate combined sourcemap scratch data
778c613
4 hours ago
by hardfist
© 2026 CodSpeed Technology
Home Terms Privacy Docs