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

perf(core): defer top-level declaration flattening

#13662
Comparing
codex/top-level-declarations-multiple
(
b1a5b28
) with
main
(
6c9c5af
)
CodSpeed Performance Gauge
-5%
Regression
1
Untouched
18
Skipped
9
Archived
10

Benchmarks

38 total
rust@create_concatenate_module
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
-4%
42.7 ms44.6 ms
rust@create_module_hashes
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
+1%
22.1 ms21.9 ms
rust@create_chunk_ids
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
+1%
10.9 ms10.9 ms
rust@flag_dependency_exports
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
17.4 ms17.3 ms
rust@create_module_ids
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
12.6 ms12.5 ms
rust@persistent_cache_restore@basic-react-development
xtask/benchmark/benches/groups/persistent_cache.rs::persistent_cache::persistent_cache_benchmark::persistent_cache
CodSpeed Performance Gauge
0%
26.2 ms26.1 ms
rust@build_chunk_graph
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_chunk_graph_benchmark
CodSpeed Performance Gauge
0%
111.5 ms111.3 ms
rust@flag_dependency_usage
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
30.8 ms30.8 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
bundle@threejs-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
708.4 ms708.1 ms
bundle@threejs-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
2 s2 s
rust@persistent_cache_restore_after_single_file_change@basic-react-development
xtask/benchmark/benches/groups/persistent_cache.rs::persistent_cache::persistent_cache_benchmark::persistent_cache
CodSpeed Performance Gauge
0%
27.5 ms27.5 ms
bundle@basic-react-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
734.2 ms734.5 ms
rust@module_graph_api
xtask/benchmark/benches/groups/module_graph_api.rs::module_graph_api::module_graph_api_benchmark
CodSpeed Performance Gauge
0%
12.4 ms12.4 ms
rust@scan_dependencies@three_module
xtask/benchmark/benches/groups/scan_dependencies.rs::scan_dependencies::benchmark_scan_dependencies
CodSpeed Performance Gauge
0%
23.7 ms23.7 ms
rust@create_chunk_hashes
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
4.2 ms4.2 ms
bundle@basic-react-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
-1%
345.1 ms346.9 ms
rust@split_chunks
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
-1%
6.7 ms6.7 ms
rust@concatenate_module_code_generation
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
-3%
131.3 ms135 ms
js@stats.toJson()
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
21 ms*
js@record module
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
1.9 ms*
js@Traverse module graph by dependencies
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
840.4 µs*
js@record chunk group
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
79.4 µs*
js@collect imported identifiers
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
211.8 µs*
js@external getResolve
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
1.5 ms*

Commits

Click on a commit to change the comparison range
Base
main
6c9c5af
-38.73%
perf(core): defer top-level declaration flattening
044906a
24 days ago
by LingyuCoder
+1.4%
update
04518a4
24 days ago
by LingyuCoder
+32.2%
chore(review): address PR feedback
b1a5b28
24 days ago
by LingyuCoder
© 2026 CodSpeed Technology
Home Terms Privacy Docs