What are few advantages of Razor view engine over other view engines

Fraz Sundal picture Fraz Sundal · Jan 18, 2011 · Viewed 8k times · Source

I want to know what are few advantages of Razor view engine other then its syntax over other view engines like Spark, NHaml or default aspx view engine. Also what is the performance difference between them

Answer

marcind picture marcind · Jan 18, 2011

For some performance numbers see my blog post:

http://blogs.msdn.com/b/marcinon/archive/2011/01/17/mvc-3-performance.aspx

Razor is nominally a bit slower than aspx but in a real world application (that does database access etc) this would not be a big deal (unless you are running a really big site where you need to squeeze every bit of performance).