Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

CodeBehind framework is faster than ASP.NET Core

Posted on Oct 19 Based on tests conducted by Elanat Framework, the Codebehind framework is faster than the default cshtml structure in ASP.NET Core.In this performance test, we examine the performance of the default ASP.NET Core structure compared to CodeBehind. This review was done on .NET Core version 7.0 and CodeBehind version 1.5.2. This review is only focused on view section in MVC; In version 1.5.2 of CodeBehind, we need to specify the Controller class in the view section.cshtmlThe above codes are repeated in 10 pages (page1, page2, page3, ..., page10)Program.cs classaspxThe above codes are repeated in 10 pages (page1.aspx, page2.aspx, page3.aspx, ..., page10.aspx)ControllerNote: Controller is required in CodeBehind framework version 1.5.2Program.cs classPlease note that each line of code specified in the class above has been tested separately.Performance table by miliseconds (Lower is better)10,000 responsesCodeBehind is 3.64% betterAverage for 20,000 responsesCodeBehind is 8.1% betterPlease note that each line of code specified in the class above has been tested separately.Performance table by number of responses (Higher is better)10 secondsCodeBehind is 6.78% betterAverage for 20 secondsCodeBehind is 7.54% betterAs it turns out, CodeBehind outperforms the default ASP.NET Core architecture.Interestingly, the superiority of CodeBehind over the default structure of ASP.NET Core is not a linear graph, and the higher the number of requests over time, the greater the graph of superiority is drawn towards CodeBehind.CodeBehind on GitHub:https://github.com/elanatframework/Code_behindGet CodeBehind from NuGet:https://www.nuget.org/packages/CodeBehind/Templates let you quickly answer FAQs or store snippets for re-use. Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse Filippo Ceffa - Sep 11 max-arshinov - Sep 11 Filippo Ceffa - Sep 11 Jacky - Sep 11 Once suspended, elanatframework will not be able to comment or publish posts until their suspension is removed. Once unsuspended, elanatframework will be able to comment and publish posts again. Once unpublished, all posts by elanatframework will become hidden and only accessible to themselves. If elanatframework is not suspended, they can still re-publish their posts from their dashboard. Note: Once unpublished, this post will become invisible to the public and only accessible to elanatframework. They can still re-publish the post if they are not suspended. Thanks for keeping DEV Community safe. Here is what you can do to flag elanatframework: elanatframework consistently posts content that violates DEV Community's code of conduct because it is harassing, offensive or spammy. Unflagging elanatframework will restore default visibility to their posts. DEV Community — A constructive and inclusive social network for software developers. With you every step of your journey. Built on Forem — the open source software that powers DEV and other inclusive communities.Made with love and Ruby on Rails. DEV Community © 2016 - 2023. We're a place where coders share, stay up-to-date and grow their careers.



This post first appeared on VedVyas Articles, please read the originial post: here

Share the post

CodeBehind framework is faster than ASP.NET Core

×

Subscribe to Vedvyas Articles

Get updates delivered right to your inbox!

Thank you for your subscription

×