Skip to content

Commit

Permalink
feat: support optimization in compiler options builder (#8979)
Browse files Browse the repository at this point in the history
feat: init
  • Loading branch information
h-a-n-a authored Jan 9, 2025
1 parent 3c73d06 commit 6b6110b
Show file tree
Hide file tree
Showing 12 changed files with 420 additions and 43 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions crates/rspack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ rspack_regex = { workspace = true }
rustc-hash = { workspace = true }
serde_json = { workspace = true }

rspack_plugin_devtool = { workspace = true }
rspack_plugin_externals = { workspace = true }
rspack_ids = { workspace = true }
rspack_plugin_devtool = { workspace = true }
rspack_plugin_externals = { workspace = true }
rspack_plugin_javascript = { workspace = true }
# rspack_plugin_lightning_css_minimizer = { workspace = true }
rspack_plugin_runtime_chunk = { workspace = true }
rspack_plugin_swc_js_minimizer = { workspace = true }

[lints]
workspace = true
File renamed without changes.
File renamed without changes.
Loading

2 comments on commit 6b6110b

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented on 6b6110b Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Benchmark detail: Open

Name Base (2025-01-09 203b7e9) Current Change
10000_big_production-mode_disable-minimize + exec 37.4 s ± 521 ms 37.7 s ± 404 ms +0.86 %
10000_development-mode + exec 1.89 s ± 27 ms 1.86 s ± 22 ms -1.36 %
10000_development-mode_hmr + exec 680 ms ± 5 ms 680 ms ± 7.2 ms -0.03 %
10000_production-mode + exec 2.46 s ± 73 ms 2.43 s ± 71 ms -1.07 %
arco-pro_development-mode + exec 1.74 s ± 59 ms 1.74 s ± 61 ms -0.30 %
arco-pro_development-mode_hmr + exec 378 ms ± 0.84 ms 378 ms ± 1.9 ms +0.06 %
arco-pro_production-mode + exec 3.74 s ± 54 ms 3.65 s ± 152 ms -2.20 %
arco-pro_production-mode_generate-package-json-webpack-plugin + exec 3.74 s ± 137 ms 3.68 s ± 65 ms -1.54 %
arco-pro_production-mode_traverse-chunk-modules + exec 3.77 s ± 125 ms 3.67 s ± 103 ms -2.65 %
large-dyn-imports_development-mode + exec 2.13 s ± 30 ms 2.15 s ± 31 ms +0.68 %
large-dyn-imports_production-mode + exec 2.19 s ± 33 ms 2.19 s ± 38 ms -0.21 %
threejs_development-mode_10x + exec 1.54 s ± 55 ms 1.52 s ± 64 ms -1.51 %
threejs_development-mode_10x_hmr + exec 792 ms ± 20 ms 768 ms ± 31 ms -3.03 %
threejs_production-mode_10x + exec 5.36 s ± 92 ms 5.37 s ± 196 ms +0.09 %
10000_big_production-mode_disable-minimize + rss memory 9538 MiB ± 224 MiB 9583 MiB ± 21.4 MiB +0.46 %
10000_development-mode + rss memory 649 MiB ± 13.7 MiB 657 MiB ± 15.6 MiB +1.16 %
10000_development-mode_hmr + rss memory 1435 MiB ± 327 MiB 1453 MiB ± 381 MiB +1.22 %
10000_production-mode + rss memory 643 MiB ± 26.3 MiB 649 MiB ± 33.7 MiB +0.86 %
arco-pro_development-mode + rss memory 550 MiB ± 28.7 MiB 553 MiB ± 30.3 MiB +0.64 %
arco-pro_development-mode_hmr + rss memory 619 MiB ± 52 MiB 596 MiB ± 60.1 MiB -3.58 %
arco-pro_production-mode + rss memory 720 MiB ± 76 MiB 722 MiB ± 45.2 MiB +0.18 %
arco-pro_production-mode_generate-package-json-webpack-plugin + rss memory 725 MiB ± 72.1 MiB 725 MiB ± 42.7 MiB +0.04 %
arco-pro_production-mode_traverse-chunk-modules + rss memory 741 MiB ± 51 MiB 713 MiB ± 53.3 MiB -3.83 %
large-dyn-imports_development-mode + rss memory 632 MiB ± 2.97 MiB 624 MiB ± 6.13 MiB -1.19 %
large-dyn-imports_production-mode + rss memory 525 MiB ± 3.14 MiB 517 MiB ± 1.65 MiB -1.61 %
threejs_development-mode_10x + rss memory 579 MiB ± 11.7 MiB 566 MiB ± 12.6 MiB -2.32 %
threejs_development-mode_10x_hmr + rss memory 1131 MiB ± 121 MiB 1135 MiB ± 114 MiB +0.41 %
threejs_production-mode_10x + rss memory 880 MiB ± 51.8 MiB 860 MiB ± 46.4 MiB -2.28 %

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented on 6b6110b Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ecosystem CI detail: Open

suite result
modernjs ❌ failure
rspress ✅ success
rslib ✅ success
rsbuild ✅ success
rsdoctor ✅ success
examples ✅ success
devserver ✅ success
nuxt ✅ success

Please sign in to comment.