Reputation: 3924
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
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.
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
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.
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