Tutorial :How does Spark View Engine's performance compare to ASP.NET?



Question:

I'm interested in using Spark for an open source pet project of mine that runs with the asp.net mvc framework. I wonder if anyone has real experience with it and knows how it performs compared to the normal asp.net view engine?

I know that marketwatch.com runs asp.net mvc and Spark.


Solution:1

The view templates are parsed to generate and compile a class that does nothing more than write output. After the first request of a view there's no real work being done other than to create an instance of that type and render.

It's been profiled for cpu and memory costing pretty extensively. I believe it's safe to assume there's nothing measurably slower in Spark - and in general it's unlikely the rendering in either Spark or WebForms view engines would be a bottleneck in a real-world application.


Solution:2

Here is a benchmark done to compare WebForms to Spark. Spark scores 36% slower than WebForms, which probably is worth paying for extra flexibility that one gets with Spark.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »