Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Performance of precompiled Objects View modes: 
User avatar
Member
Member
JAA - 2/12/2014 8:01:31 AM
   
Performance of precompiled Objects
Hello,

Has any performance measurements or metrics been done between the difference of precompiled objects like Page Templates?

Currently we are deployment mode off with all objects except stylesheets been pre-compiled on deployment. I am considering taking out Page Templates from source control.

Is anyone aware of the performance hit here?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 2/13/2014 6:15:34 PM
   
RE:Performance of precompiled Objects
Hello,

You can take a look at the Kentico CMS 6.0 Performance Test Report

as well as the following forums threads:
1. performance of Kentico CMS without precompilation
2. Performance

Unfortunately, we do not have any other tests or metrics for not. But this is really a good idea!

Best Regards,
Martin Danko

User avatar
Member
Member
lukasm - 3/12/2014 8:54:38 AM
   
RE:Performance of precompiled Objects
Hi,

Precompilation will help you tremendously with the initial response time. First-load times of pages on a precompiled site may be even 10x faster. Of course, it depends on the number of controls and virtual objects used on the pages. However, after a page is loaded, the controls, web parts, pages and virtual objects are compiled and moved to the "Temporary ASP.NET files". So the performance of non-precompiled projects is as good as precompiled projects on subsequent requests.

Does it seem worth it? Have you considered Application Initialization in IIS?

FYI: We compared both types of projects (web site, web application and precompiled web site) and our tests have shown that the most expensive part of compilation is the markup of controls and virtual objects. There wasn't a big difference between web site and web application projects. When Temporary ASP.NET files contain compiled controls and virtual objects, the performance of both types of projects is basically the same even after an IIS or application restart.

More info about precompilation: http://msdn.microsoft.com/en-us/library/bb398860(v=vs.110).aspx

-Lukas