【发布时间】:2023-04-10 05:49:01
【问题描述】:
由于我们在 .Net/Angular Web 应用程序中的不利软件架构,我们可能无法为生产环境执行 ng build (--prod) 的捆绑。
我现在的问题是,与使用 ng build --prod 捆绑的相同应用程序相比,加载 SystemJS 的 Angular 应用程序的性能提升有多大?
有没有人进行过绩效评估?
我使用以下测试应用程序进行了尝试,并在开发者控制台中读取了执行时间,但这并不可靠。 angular-realworld-example-app
"系统JS" | “捆绑产品”
.....1.9s....... |........1.1s
.... 2.2s....... |........1.4s
.....1.7s....... |........1.3s
.....2.1s....... |........1.0s
.....1.8s....... |........1.1s
.....1.7s....... |........1.15s
...~1.68s.....|........~1.17s
(平均秒数)
【问题讨论】:
标签: angular performance