> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.

# performance

与性能相关的选项。

## performance.buildCache [![performance.buildCache](https://assets.rspack.rs/rsbuild/rsbuild-logo.svg)performance.buildCache](https://rsbuild.rs/zh/config/performance/build-cache)
用于启用或配置持久化构建缓存。

Rslib 默认启用持久化构建缓存。

## performance.printFileSize [![performance.printFileSize](https://assets.rspack.rs/rsbuild/rsbuild-logo.svg)performance.printFileSize](https://rsbuild.rs/zh/config/performance/print-file-size)
是否在构建后输出所有静态资源文件的体积。

## performance.removeConsole [![performance.removeConsole](https://assets.rspack.rs/rsbuild/rsbuild-logo.svg)performance.removeConsole](https://rsbuild.rs/zh/config/performance/remove-console)
是否自动移除代码中的 `console.[methodName]`。
