1 / 18

Web Site Performance

Web Site Performance . What makes web sites slow? Back end Front end Tools for measuring performance Firebug / YSlow Visual Studio Test Edition W 3.org html and css validators. Web Site Performance . Back end – Many Culprits . Db queries

nysa
Télécharger la présentation

Web Site Performance

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web Site Performance • What makes web sites slow? • Back end • Front end • Tools for measuring performance • Firebug / YSlow • Visual Studio Test Edition • W3.org html and cssvalidators

  2. Web Site Performance • Back end – Many Culprits • Db queries • Calls to 3rd party systems (e.g. mainframe) • Mashups of multiple sources • Intensive computation • Web server performance settings (IIS) • Hardware, network bandwidth …

  3. Web Site Performance • Back end – Many Solutions • DB Tuning • Indexes, table joins, archiving • SQL Server Profiler, Tuning Advisor • IIS Tuning • MaxConns, IOThreads, WorkerThreads • Caching

  4. Web Site Performance • Caching – First Steps • Identify expensive data or output • Evaluate volatility • Evaluate frequency of use • Separate volatile data from non-volatile • Choose the appropriate caching mechanism

  5. Web Site Performance • Caching • Output Caching • Data Caching • Cache Dependencies • Demos…

  6. Web Site Performance • Output Caching - OFF

  7. Web Site Performance • Output Caching - ON

  8. Web Site Performance • Output Caching - OFF • Output Caching - ON • Output Caching - ON (10 seconds)

  9. Web Site Performance • Front end “… for most web pages, less than 10-20% of end user response time is spent getting the html document from the web server to the browser. If you want to dramatically reduce the response times of your web pages, you have to focus on the other 80-90%...” - Steve Souders, High Performance Web Sites

  10. Web Site Performance • How browsers work with HTTP 1.1 Two requests at a time per hostname

  11. Web Site Performance • Rule #1: Make Fewer HTTP Requests Combine javascript files Combine css files Use image maps or css sprites

  12. Web Site Performance • Rule #2: Use a CDN

  13. Web Site Performance • Rule #3: Add an expires header <staticContent> <clientCache httpExpires="Mon, 5 Apr 2010 00:00:00 GMT" cacheControlMode="UseExpires" /> </staticContent>

  14. Web Site Performance • Rule #4: Compress the response

  15. Web Site Performance • Rule #5: Put the stylesheets at the top • Rule #6: Put the javascript at the bottom

  16. Web Site Performance • Rule #10: Minify Javascript and CSS

  17. Web Site Performance • Rule #11: Avoid redirects

  18. Web Site Performance • Extras: • Make sure your html and css are valid • (http://validator.w3.org/) • Turn off View State for controls that aren’t using it

More Related