IIS vs Kestrel performance comparison

前端 未结 5 1364
清酒与你
清酒与你 2020-12-15 17:27

How does the performance of IIS look like comparing to a Kestrel http server?

Seems like Kestrel is significantly inspired by the family of asynchronous and event-dr

5条回答
  •  不思量自难忘°
    2020-12-15 17:46

    I did quite a bit of benchmarking for my current project, hosting both .net core 1.0 and 2.0 apps on IIS and Kestrel. The tests were real-world rest-api CRUDs with authentication/authorization, logging, metrics, rate limiting etc. Also, .net core apps were done completely by the MS book, complying to recommended 1.0/2.0 standards.

    With the same hardware setups, hosting behind IIS constantly served around 40% more requests per second. I'm still unable to find an article or a consultant who is able to explain the performance difference.

    I also tried to find any sort of optimization tips from the core benchmarking authority https://github.com/aspnet/benchmarks, by rummaging through settings and service initializers, but still, IIS was just faster.

    Any pointers?

提交回复
热议问题