ASP.NET MVC Performance

后端 未结 14 1215
花落未央
花落未央 2020-11-29 17:10

I found some wild remarks that ASP.NET MVC is 30x faster than ASP.NET WebForms. What real performance difference is there, has this been measured and what are the performanc

14条回答
  •  时光说笑
    2020-11-29 17:36

    Contrary to the accepted opinion, optimized webforms usage completely kills MVC in terms of raw performance. Webforms has been hyper-optimized for the task of serving html far longer than MVC has.

    Metrics are available on http://www.techempower.com/benchmarks/#section=data-r7&hw=i7&test=db

    Every single comparison mvc is on the lower-middle/lower-upper rankings of the list, while optimized webforms usage places in the upper-middle/upper-lower rankings.

    Anecdotal but very serious validation to these metrics, www.microsoft.com is served by webforms not MVC. Does anyone here believe that they wouldn't have chosen MVC if it was empirically faster?

提交回复
热议问题