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

perf: reduce compilation hash overhead

#14263
Comparing
codex/perf-compilation-create-hash
(
231484a
) with
main
(
6a618bf
)
CodSpeed Performance Gauge
-2%
Improvement
1
Regression
2
Untouched
49
Skipped
40

Benchmarks

92 total
bundle@threejs-10x-production-sourcemap
xtask/benchmark/benches/walltime.rs::walltime_benches::threejs_10x_bundle_benchmark::bundle
CodSpeed Performance Gauge
-5%
712.7 ms754.2 ms
rust@create_module_assets
xtask/benchmark/stages/create_module_assets.rs::stage::bench
CodSpeed Performance Gauge
-2%
688.7 µs705.6 µs
js@collect imported identifiers
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
+3%
231.1 µs224.8 µs
js@external getResolve
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
+1%
1.5 ms1.4 ms
sources@cached_source_hash
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
+1%
3 µs3 µs
rust@create_full_hash
xtask/benchmark/stages/create_full_hash.rs::stage::bench
CodSpeed Performance Gauge
0%
6 ms6 ms
rust@build_module_graph
xtask/benchmark/cases/build_module_graph.rs::case::bench
CodSpeed Performance Gauge
0%
894.2 ms892.2 ms
rust@create_module_hashes
xtask/benchmark/stages/create_module_hashes.rs::stage::bench
CodSpeed Performance Gauge
0%
17 ms17 ms
bundle@threejs-production-sourcemap
xtask/benchmark/cases/bundle_threejs_production_sourcemap.rs::case::bench::bundle
CodSpeed Performance Gauge
0%
365.9 ms365.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@concatenate_module_code_generation
xtask/benchmark/stages/concatenate_module_code_generation.rs::stage::bench
CodSpeed Performance Gauge
0%
96.9 ms96.8 ms
sources@concat_generate_string
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
42.9 µs42.8 µs
rust@scan_dependencies@three_module
xtask/benchmark/cases/scan_dependencies.rs::case::bench
CodSpeed Performance Gauge
0%
21.4 ms21.4 ms
bundle@threejs-development
xtask/benchmark/cases/bundle_threejs_development.rs::case::bench::bundle
CodSpeed Performance Gauge
0%
247.2 ms247 ms
rust@flag_dependency_exports
xtask/benchmark/stages/flag_dependency_exports.rs::stage::bench
CodSpeed Performance Gauge
0%
11.3 ms11.3 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@build_swc-loader
xtask/benchmark/cases/build_module_graph.rs::case::bench
CodSpeed Performance Gauge
0%
1.8 s1.8 s
rust@build_chunk_graph
xtask/benchmark/cases/build_chunk_graph.rs::case::bench
CodSpeed Performance Gauge
0%
69.8 ms69.7 ms
bundle@basic-react-production-sourcemap
xtask/benchmark/cases/bundle_basic_react_production_sourcemap.rs::case::bench::bundle
CodSpeed Performance Gauge
0%
257.1 ms256.9 ms
sources@repetitive_react_components_map
xtask/benchmark/benches/rspack_sources.rs::rspack_sources_benches::rspack_sources::rspack_sources_benchmark::rspack_sources
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
rust@create_named_chunk_ids
xtask/benchmark/stages/create_named_chunk_ids.rs::stage::bench
CodSpeed Performance Gauge
0%
6.2 ms6.2 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
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
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.3 µ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

Commits

Click on a commit to change the comparison range
Base
main
6a618bf
-1.76%
perf: reduce compilation hash overhead
231484a
13 hours ago
by LingyuCoder
© 2026 CodSpeed Technology
Home Terms Privacy Docs