Tuesday 20 December 2016

performance - Angular 4 - How much faster is Angular bundled with --prod

Due to our unfavorable software architecture in a .Net/Angular web application, we probably can't execute the bundling of ng build (--prod) for the production environment.



My question now is, how big is the performance gain from an Angular application loaded with SystemJS compared to the same application bundled with ng build --prod?



Has anyone performed a performance measurement?



I tried it with the following test application and read the execution time in the Developer Console but this is not really reliable. angular-realworld-example-app




"SystemJS" | "Bundled Prod"
.....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
(Average seconds)

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...