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

perf: avoid cloning ModuleInfo

#13821
Comparing
codex/module-info-no-clone
(
066e992
) with
main
(
ca7b12b
)
CodSpeed Performance Gauge
-3%
Regression
1
Untouched
33

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%
24 ms24.8 ms
rust@split_chunks
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
+1%
6.5 ms6.4 ms
js@record chunk group
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
+1%
79.2 µs78.6 µs
rust@concatenate_module_code_generation
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
+1%
120.8 ms120.1 ms
js@is css mod
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
84.2 µs84 µs
bundle@threejs-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
680.2 ms678.8 ms
js@Traverse compilation.modules
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
61.9 µs61.8 µs
rust@build_module_graph
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_module_graph_benchmark
CodSpeed Performance Gauge
0%
1.3 s1.3 s
bundle@threejs-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
2 s2 s
rust@mangle_exports
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
9.3 ms9.3 ms
js@record module
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
1.9 ms1.9 ms
rust@create_module_ids
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
9.7 ms9.7 ms
rust@module_graph_api
xtask/benchmark/benches/groups/module_graph_api.rs::module_graph_api::module_graph_api_benchmark
CodSpeed Performance Gauge
0%
11.7 ms11.7 ms
rust@flag_dependency_exports
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
13.2 ms13.2 ms
rust@scan_dependencies@three_module
xtask/benchmark/benches/groups/scan_dependencies.rs::scan_dependencies::benchmark_scan_dependencies
CodSpeed Performance Gauge
0%
22.9 ms22.9 ms
js@stats.toJson()
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
20.8 ms20.9 ms
rust@create_chunk_assets
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
3.7 ms3.7 ms
bundle@basic-react-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
730.2 ms730.4 ms
rust@real_content_hash
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
34.4 ms34.4 ms
js@collect imported identifiers
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
211 µs211.2 µs
rust@flag_dependency_usage
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
29.8 ms29.8 ms
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
js@Traverse module graph by dependencies
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
827.5 µs828.7 µs
js@Traverse module graph by connections
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
263.3 µs263.7 µs
rust@create_chunk_ids
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
8.9 ms8.9 ms

Commits

Click on a commit to change the comparison range
Base
main
ca7b12b
-9.89%
perf: reduce find new name allocations
2bed54c
15 hours ago
by LingyuCoder
+6.82%
Merge remote-tracking branch 'origin/main' into codex/module-info-no-clone
066e992
7 hours ago
by Copilot
© 2026 CodSpeed Technology
Home Terms Privacy Docs