15
Web performance optimization Dudayev Denis

Website performance optimization QA

Embed Size (px)

Citation preview

Page 1: Website performance optimization QA

Web performance optimization

Dudayev Denis

Page 2: Website performance optimization QA

What I will talk• Why we should care about performance?• What we should use?• How to add performance to your workflow?

Page 3: Website performance optimization QA

Why we should care about performance?

“If it is fast and ugly, they will use it and curse you,if it is slow, they will not use it.”

“Professor Billionaire“Devid Cheriton

Page 4: Website performance optimization QA

Performance evaluation parameters

• Server side– Time of rendering page– Count of requests in second– Amount of data transmitted

• Client side– Page processing on the client– Downloading content time– Awaiting time

Page 5: Website performance optimization QA

Performance profiling areas

• Client side– Request– Downloading– Rendering

• Server side– Response– Algorithm– Memory – SQL Server

Page 6: Website performance optimization QA

Requirements for performance

• What are we going to test? (goals)• Setup requirements:– TTFB and\or TTLB– RPS + number of users– Frequency of references to external resources

(database, other services, etc.)– etc.

Page 7: Website performance optimization QA

Anatomy of a web page

• DNS resolution• TCP connection• Send request• Wait for response• Download response• Parse (DOM, CSSOM)• Execute JS/Apply CSS• Render

Network

Server

Client

Page 8: Website performance optimization QA

Introduce to load testing• Performance testing• Capacity testing• Testing to stress the system or find its limits• Load testing• etc

Page 9: Website performance optimization QA

Testing plan

• Create a test scenario • Setup the test • Performing the test • Analysis of results

Page 10: Website performance optimization QA

Load testing tools

• Free/Open source– JMeter (Apache)– LoadUI (SmartBear)– etc.

• Commercial– LoadRunner (HP)– WebLOAD– etc.

Page 11: Website performance optimization QA

We chosen JMeter

• It has a respect• It free and open source• It has big community• We made the first easy demo project• We have support

Page 12: Website performance optimization QA

JMeter Demo

Page 13: Website performance optimization QA

Profiling

• VS Performance Analyzer (MS)• dotTRACE (JetBrains)• ANTS Performance Profiler (Redgate)• SQL Server Profiler• etc.

Page 14: Website performance optimization QA

How to add performance to your workflow?

• Reasons (e.g. PO\QA is unsatisfied)• We have available time and near no a release• Prepare for battle

Process:Searching for dips ->

Fixing step by step

Page 15: Website performance optimization QA