Skip to content

mgechev/preload-all-stress-test

Repository files navigation

Preloading

PreloadAllModules could be very CPU and bandwidth intensive for large apps, and thus considered a bad practice. This is an automatically generated app which demonstrates this.

Comparison

As you can see from the comparison below, using PreloadAllModules is ~15x more CPU expensive compared to not using it.

Keep in mind that this example does not represent the average Angular app because it contains 500 generated routes. For an app with a few dozens of lazy routes the impact will be significantly lower.

Without PreloadAllModules

Without PreloadAllModules

Using PreloadAllModules

Using PreloadAllModules

License

MIT

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages