Abstract
This article discusses the problems of optimizing computing power by improving the performance of web applications. The shared responsibility model for the Azure cloud is considered and the area of responsibility of the user and the provider of cloud services for such models as IaaS, PaaS and SaaS is shown. The article discusses methods for optimizing loops and provides the results of performance tests in Microsoft Visual Studio using Performance Profiler and C# language. Methods for optimizing such constructs as algebraic expressions are described and ways to increase performance from caching are considered. Optimization methods are described when using the String type. The article also looks at how boxing/unboxing objects of reference and value types improve application performance. The practical steps given in the article are aimed at writing safe and efficient code. Please, note that the tests and optimization designs carried out and described in the article will help to write code that will not cause poor application performance in the future. These steps will help to avoid buying software to detect optimization problems and, accordingly, significantly reduce material costs for the entire project as a whole.