ClosDesign
ClosDesign

Reputation: 3924

Umbraco XSLT Performance factors

In Umbraco CMS. Is there a way to test and see how longs it takes to pull nodes of a certain DocType in XSLT? Is there an XSLT timer or anything that can do this.

We are trying to test what is faster to use. Razor or XSLT for our needs. In Razor we can get the time because it is essentially C# but if XSLT is rendered faster, we would like to use that instead.

Upvotes: 2

Views: 688

Answers (2)

amelvin
amelvin

Reputation: 9061

If you append a querystring of ?umbdebugshowtrace=true to your page you will get a stack trace of the various processes on your page - so you will be able to see when your xslt processes.

enter image description here

You could also use this guide to write into your umbracolog and use that as a rough timer (obviously some lag in the write).

Upvotes: 4

Jigar Pandya
Jigar Pandya

Reputation: 5987

Well In my opinion "XSLT is rendered faster" is pretty relative thing. In-fact if you consider 1 Million record to be render on umbraco page there is only marginal differance in page load when you test with XSLT and Razor.

A side note..... which is good for you to select between two; It is not the speed issue that makes you to choose between two but there are following things to consider.

  1. XSLT were famous when there was no RAZOR.
  2. Razor are easy (much easier) to work with compare to XSLT.
  3. Razor are generic and asp.net MVC developer can adopt umbraco development with RAZOR.
  4. RAZOR is future.
  5. Razor are much more readable and maintainable compare to XSLT.

See https://softwareengineering.stackexchange.com/questions/104361/is-razor-or-xslt-better-for-my-project as well.

My Vote.. If you are starting a new project please spend some learning curve with RAZOR and you will gain a lot in long run.

Thanks, Jigar

Upvotes: 3

Related Questions