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

refactor(module-concatenation): reduce try_to_add allocations

#13741
Comparing
codex/optimize-try-to-add
(
5038dc9
) with
main
(
d6cf6e5
)
CodSpeed Performance Gauge
-3%
Improvement
2
Regression
1
Untouched
31

Benchmarks

34 total
rust@persistent_cache_restore@basic-react-development
xtask/benchmark/benches/groups/persistent_cache.rs::persistent_cache::persistent_cache_benchmark::persistent_cache
CodSpeed Performance Gauge
-3%
26.1 ms26.9 ms
rust@concatenate_module_code_generation
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
+4%
142.8 ms136.7 ms
rust@create_concatenate_module
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
+3%
41.2 ms39.8 ms
js@Traverse module graph by dependencies
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
+1%
834.6 µs828.4 µs
bundle@basic-react-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
+1%
345 ms342.4 ms
rust@create_chunk_assets
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
+1%
3.7 ms3.7 ms
js@Traverse compilation.modules
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
+1%
62.2 µs61.8 µs
js@is css mod
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
84 µs83.6 µs
rust@flag_dependency_usage
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
29.9 ms29.8 ms
js@collect imported identifiers
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
210.9 µs210 µs
js@record chunk group
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
78.9 µs78.6 µs
rust@build_chunk_graph
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_chunk_graph_benchmark
CodSpeed Performance Gauge
0%
101.3 ms100.9 ms
bundle@basic-react-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
731.8 ms729.2 ms
rust@flag_dependency_exports
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
17.1 ms17.1 ms
rust@runtime_requirements
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
57.2 ms57 ms
rust@build_module_graph
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_module_graph_benchmark
CodSpeed Performance Gauge
0%
1.5 s1.5 s
rust@create_chunk_hashes
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
4.1 ms4.1 ms
rust@scan_dependencies@three_module
xtask/benchmark/benches/groups/scan_dependencies.rs::scan_dependencies::benchmark_scan_dependencies
CodSpeed Performance Gauge
0%
23.2 ms23.2 ms
rust@create_module_hashes
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
21.2 ms21.1 ms
rust@create_full_hash
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
6.9 ms6.9 ms
rust@create_module_ids
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
12.2 ms12.2 ms
js@Traverse module graph by connections
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
263.5 µs263.2 µs
rust@module_graph_api
xtask/benchmark/benches/groups/module_graph_api.rs::module_graph_api::module_graph_api_benchmark
CodSpeed Performance Gauge
0%
11.9 ms11.9 ms
rust@real_content_hash
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
34.5 ms34.5 ms
js@stats.toJson()
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
20.9 ms20.9 ms

Commits

Click on a commit to change the comparison range
Base
main
d6cf6e5
-3.12%
refactor(module-concatenation): reduce try_to_add allocations
2b41723
10 days ago
by LingyuCoder
+0.1%
test(module-concatenation): drop implementation-detail checks
5038dc9
10 days ago
by LingyuCoder
© 2026 CodSpeed Technology
Home Terms Privacy Docs