Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 277
kitsune Avatar asked May 14 '09 06:05

kitsune


People also ask

What are the 2 popular ASP.NET MVC view engines?

At this point there are two engines inside of the view engine collection: the Web forms view engine (the default ASP.NET MVC view engine) and the Spark View Engine.

Is spark a MVC?

Spark is a view engine for ASP.NET MVC and Castle Project MonoRail frameworks. The idea is to allow the html to dominate the flow and any code to fit seamlessly.

What type does a view engine return?

View Engine is responsible for rendering the view into html form to the browser. By default, Asp.net MVC support Web Form(ASPX) and Razor View Engine. There are many third party view engines (like Spark, Nhaml etc.) that are also available for Asp.net MVC.


1 Answers

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.

like image 163
loudej Avatar answered Dec 18 '22 04:12

loudej