Reputation: 5630
I find that one of the key benefit of Asp.Net core is multi fold performance improvement (requests per second) compared to traditional Asp.Net. I find many bench mark sites talks about Asp.Net core performance, but I'm not sure if the performance is based on Asp.Net core with .Net core framework or the same performance benefit applies to asp.net core (full .Net framework).
Any idea/articles that explains/compares performance between asp.net core (.Net core) vs asp.net (full framework)?
Thanks
Upvotes: 15
Views: 7502
Reputation: 53
We are checking the asp.net core 2.0 performance and found out this:
Asp.Net core application hosted/running under IIS using ASP.NET Core Module performance is worst in about 60% then Full frame work. Second case: same application self-hosted and using IIS as reverse proxy with URL rewrite module increase performance in about 20% better than Full FW. FW 4.6.1.
Another aspect that have major impact on performance is logging. Insure that application under test doesn't write debug/info log to console (by default). Log configuration under test should not log info and debug.
Second problem that we deal with is: Asp.net core performance issue when consuming WCF service. We found out that in current version 2.0.5 the performance vs Asp.Net FW worse in about 70% and what is more important have a huge error rate (23%) of all test.
The problem here is laying in port exhaustion. MS recommend to increase the number of ephemeral ports. Increasing then number of ephemeral port improved the error rate, but not solved the problem. Our test setup: Asp.Net core2.0 and Asp.Net FW apps with WEB Api controller that return some string Load test: start with 5 user increase by 5 every 30 seconds. Test is running for 8 minutes
Read out the ASP.Net Core 2.1 RoadMap. I think MS aware for those issues and they will fix major issues in 2.1 release. We are waiting for it.
Upvotes: -1
Reputation: 313
ASP.Net Core 2.0 is nearly 2x faster than ASP.net 4.6 and also from ASP.Net 4.7 framework.
When comparing full .Net framework vs .Net Core's performance, ASP.Net Core wins but .Net Framework also has some advantage because of some pre-built feature works with asp.net framework.
But in terms of speed, ASP.Net Core(.Net Core) wins the game even from Node.js
Upvotes: 1
Reputation: 311
I recently develop using ASP.NET Core 2.0, and I have the same question regarding performance improvement beside its excellent cross platform support. There are many comparison from google search result, and the briefing idea is:
ASP.NET Core 2.0 is about 6x-23x faster than ASP.NET 4.6
Here are two resources for your reference
https://www.ageofascent.com/2016/02/18/asp-net-core-exeeds-1-15-million-requests-12-6-gbps/ https://github.com/aspnet/benchmarks
Upvotes: 13