SlideShare a Scribd company logo
1 of 28
Y Slow.
By Nimmi Joseph
nimmij@mindfiresolutions.com
What is YSlow?
YSlow analyzes web page performance by examining
all the components on the page, including components
dynamically created by using JavaScript.
It measures the page's performance and offers
suggestions for improvement.
It suggest ways to improve the performance based on
a set of rules for high performance web pages.
Features of Y Slow?
- Grades web page based on one of three predefined
ruleset or a user-defined ruleset.
- It offers suggestions for improving the page's
performance.
- Summarizes the page's components.
- Displays statistics about the page.
- Provides tools for performance analysis.
How does YSlow work?
YSlow works in three phases to generate its results.
Step -1
YSlow crawls the DOM to find all the components
(images, scripts, stylesheets, etc.) in the page and loops
through Firebug's Net Panel components and adds
those to the list of components already found in the
DOM.
Step – 2
YSlow gets information about each component: size,
whether it was gzipped, Expires header, etc.
Step – 3
YSlow takes all this data about the page and generates
a grade for each rule, which produces the overall
grade.
Performance Rules of YSlow.
Yahoo!'s Exceptional Performance team has
identified 34 rules that affect web page performance.
YSlow's web page analysis is based on the 23 of
these 34 rules that are testable.
Studies have shown that web page response time can
be improved by 25% to 50% by following these
rules.
1. Minimize HTTP Requests
2. Use a Content Delivery Network
3. Avoid empty src or href
4. Add an Expires or a Cache-Control Header
5. Gzip Components
6. Put StyleSheets at the Top
7. Put Scripts at the Bottom
8. Avoid CSS Expressions
9. Make JavaScript and CSS External
10.Reduce DNS Lookups
11. Minify JavaScript and CSS
12.Avoid Redirects
13.Remove Duplicate Scripts
14. Configure ETags
15. Make AJAX Cacheable
16. Use GET for AJAX Requests
17. Reduce the Number of DOM Elements
18. No 404s
19. Reduce Cookie Size
20. Use Cookie-Free Domains for Components
21. Avoid Filters
22. Do Not Scale Images in HTML
23. Make favicon.ico Small and Cacheable.
For more details on the rules refer the following url
http://developer.yahoo.com/performance/rules.html#n
um_http
When analyzing a web page, YSlow deducts points
for each infraction of a rule and then applies a grade
to each rule.
An overall grade and score for the web page is
computed by summing up the values of the score for
each rule weighted by the rule's importance.
Installing YSlow.
Firefox
YSlow for Firefox needs Firebug to run.
Latest version of Firebug can be obtained from
https://addons.mozilla.org/en-US/firefox/addon/1843
--------------------------
Safari
Latest version and installation process can be obtained
from
http://yslow.org/safari/
---------------------------
For Chrome
https://chrome.google.com/webstore/detail/yslow/ninejjco
How to run the YSlow.
Firefox
YSlow for Firefox runs in the Firebug window, so in
order to run the tool, Firebug must be enabled.
There are different ways to start YSlow for Firefox:
1. Open the Firebug window and click on the YSlow
tab.
2. Click the YSlow button on the status bar.
The first time you bring up YSlow, the following
screen appears:
Run the Test.
Click Run Test to run YSlow.
OR
Click on the Grade, Components or Statistics tabs to
start the web page analysis.
Autorun YSlow.
Clicking on the box next to Autorun, makes the
YSlow run each time a web page is loaded in the
browser.
You can enable or disable the Autorun option by
selecting or deselecting Autorun OR by right clicking
anywhere in the YSlow status bar.
NOTE : Autorun option is only available for Firefox
browser.
YSlow Views.
The results of analysis are displayed in three different
views
1. Grade View
2. Components view.
3. Statistics View.
They can be navigated by selecting the tab with the
view name under the Yslow tab.
Grade View .
Grade tab displays an analysis of the page's
performance.
The Grade View displays a report card for the web
page with grade for the page displayed at the top along
with an overall numeric performance score.
The rules are listed in order of importance from most
important to least important.
Each rule is assigned a letter grade A through F,A
being the highest grade.
If a rule is not relevant to the web page, the grade
returned is N/A, not applicable.
Each of the 23 testable rules can be reviewed for the
web page.
For each rule, a grade is listed along with a list of
components that violated the rule and suggestions for
improvement.
There is a short description of the rule and a “Read
More” link to read more about how the rule impacts
web page performance.
Component View.
Component tab displays information about all the
components present on the web page.
This view, helps to see which components could be
gzipped to improve performance.
At the top it displays a summary of the total number
of components on the page and the page weight in
kilobytes.
Then there is a table with the component information.
Click on the Expand All link to expand all the rows in
the table.
Following is a summary of the columns in the
Components View table:
1. Type - the component's type. The page is
comprised of components of the following types: doc,
js, css, flash, cssimage, image, redirect, favicon, xhr,
and iframe.
Size - the component's size in kilobytes.
Gzip - the component's gzipped size in kilobytes.
Cookie Received - the number of bytes in the HTTP
Set-Cookie response header.
Cookie Sent - the number of bytes in the HTTP
Cookie request header.
Headers - the HTTP header icon. To view the header
click the magnifying glass icon. Click the icon again
to close the header.
URL - the component's URL.
Expires - the date in the Expires header or max-age in
the cache-control header. This field is set to no
expires if there is no expires information.
Response Time - the time in milliseconds it takes to
load the component using XMLHttpRequest.
ETag - the ETag response header value, if applicable.
Action - an action to take on the component for
additional performance analysis.
Statistics view dislays a summary of the total number
of HTTP requests and the total weight of the page in
kilobytes as well as page weight analysis for both
Empty Cache and Primed Cache perspectives.
The Empty Cache perspective indicates all the
components that the browser must request to load the
page when the user visits it for the first time.
In the Primed Cache perspective, all or most of the
components would already be in the cache, which
would reduce the number of HTTP requests and the
weight of the page.
Statistics View.
There are 3 predefined rulesets .
1.YSlow(V2) - this ruleset contains all 23 testable
rules.
2.Classic(V1) - this ruleset contains the original 13
rules that were used in YSlow 1.0.
3. Small Site or Blog - this ruleset contains the 14 rules
that are applicable to small web sites or blogs.
4. [Own Ruleset ] - To create our own ruleset, click on
the Edit button next to the Rulesets pull-down menu.
Ruleset.
Select the rules that needs to be included in the
ruleset and then save the ruleset with a name.
To run a particular ruleset , select the ruleset and
click on " Run Test"
If the ruleset is no longer needed , it can be deleted
by clicking on the Delete button.
Clicking on the Printable View link displays the page
performance analysis.
YSlow asks what information you want to display.
Selecting one or more of the available views opens a
new window, formatted for printing, containing the
information from the views you selected.
Printable View .
Help Menu.
Clicking on Help brings up the following menus
- YSlow Help - links to this document, the YSlow
User Guide
- YSlow FAQ - links to frequently asked questions
about using YSlow
- YSlow Community - links to the Exceptional
Performance Yahoo! group
- Send Feedback - links to a feedback form for
sending comments and suggestions
- YSlow Home - links to YSlow home page
YSlow's Tools menu provides several reporting tools
that you can use to get information to help with your
web page analysis.
NOTE – The Tools menu is only available for Firefox
browser.
Tools Menu .
Reference Links.
1. http://yslow.org/
2. http://yslow.org/user-guide/
3.http://developer.yahoo.com/performance/rules.html#
num_http

More Related Content

Similar to YSlow For QA

Web Application Performance from User Perspective
Web Application Performance from User PerspectiveWeb Application Performance from User Perspective
Web Application Performance from User PerspectiveŁódQA
 
Magento 2 CMS Display Rules Extension by IToris inc.
Magento 2 CMS Display Rules Extension by IToris inc.Magento 2 CMS Display Rules Extension by IToris inc.
Magento 2 CMS Display Rules Extension by IToris inc.Itexus LLC
 
Web Slices
Web SlicesWeb Slices
Web Slicesklcintw
 
Blog Management System
Blog Management SystemBlog Management System
Blog Management SystemStudentRocks
 
Csdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer YahooCsdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer Yahooguestb1b95b
 
Why Analytics is Important for Any Business - EBriks Infotech
Why Analytics is Important for Any Business - EBriks InfotechWhy Analytics is Important for Any Business - EBriks Infotech
Why Analytics is Important for Any Business - EBriks InfotechEBriks Infotech Pvt. Ltd.
 
Google analytics
Google analyticsGoogle analytics
Google analyticsHemant Mali
 
Single Page Application Best practices
Single Page Application Best practicesSingle Page Application Best practices
Single Page Application Best practicesTarence DSouza
 
d5)Go to the following website by clicking on the provided link,
d5)Go to the following website by clicking on the provided link,d5)Go to the following website by clicking on the provided link,
d5)Go to the following website by clicking on the provided link,OllieShoresna
 
Why Analytics important for any business - EBriks Infotech
 Why Analytics important for any business - EBriks Infotech Why Analytics important for any business - EBriks Infotech
Why Analytics important for any business - EBriks InfotechEBriks Infotech Pvt. Ltd.
 
google-analytics-4.pptx
google-analytics-4.pptxgoogle-analytics-4.pptx
google-analytics-4.pptxunaskhan94
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with spparallelminder
 
Visualize your Twitter network
Visualize your Twitter networkVisualize your Twitter network
Visualize your Twitter networkVerkostoanatomia
 
[Part 1] understand google search console outrankco
[Part 1] understand google search console   outrankco[Part 1] understand google search console   outrankco
[Part 1] understand google search console outrankcoOutrankco Pte Ltd
 
How to Use Google Search Console
How to Use Google Search ConsoleHow to Use Google Search Console
How to Use Google Search ConsoleBoostability
 
AD207 Presentation
AD207 PresentationAD207 Presentation
AD207 Presentationmackejo1
 
Performace optimization (increase website speed)
Performace optimization (increase website speed)Performace optimization (increase website speed)
Performace optimization (increase website speed)clickramanm
 
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...I-Verve Inc
 

Similar to YSlow For QA (20)

Web Application Performance from User Perspective
Web Application Performance from User PerspectiveWeb Application Performance from User Perspective
Web Application Performance from User Perspective
 
Magento 2 CMS Display Rules Extension by IToris inc.
Magento 2 CMS Display Rules Extension by IToris inc.Magento 2 CMS Display Rules Extension by IToris inc.
Magento 2 CMS Display Rules Extension by IToris inc.
 
Web Slices
Web SlicesWeb Slices
Web Slices
 
Blog Management System
Blog Management SystemBlog Management System
Blog Management System
 
ClearPass Insight 6.3 User Guide
ClearPass Insight 6.3 User GuideClearPass Insight 6.3 User Guide
ClearPass Insight 6.3 User Guide
 
Csdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer YahooCsdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer Yahoo
 
Why Analytics is Important for Any Business - EBriks Infotech
Why Analytics is Important for Any Business - EBriks InfotechWhy Analytics is Important for Any Business - EBriks Infotech
Why Analytics is Important for Any Business - EBriks Infotech
 
Google analytics
Google analyticsGoogle analytics
Google analytics
 
Single Page Application Best practices
Single Page Application Best practicesSingle Page Application Best practices
Single Page Application Best practices
 
d5)Go to the following website by clicking on the provided link,
d5)Go to the following website by clicking on the provided link,d5)Go to the following website by clicking on the provided link,
d5)Go to the following website by clicking on the provided link,
 
Why Analytics important for any business - EBriks Infotech
 Why Analytics important for any business - EBriks Infotech Why Analytics important for any business - EBriks Infotech
Why Analytics important for any business - EBriks Infotech
 
google-analytics-4.pptx
google-analytics-4.pptxgoogle-analytics-4.pptx
google-analytics-4.pptx
 
Seo checklist
Seo checklistSeo checklist
Seo checklist
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with sp
 
Visualize your Twitter network
Visualize your Twitter networkVisualize your Twitter network
Visualize your Twitter network
 
[Part 1] understand google search console outrankco
[Part 1] understand google search console   outrankco[Part 1] understand google search console   outrankco
[Part 1] understand google search console outrankco
 
How to Use Google Search Console
How to Use Google Search ConsoleHow to Use Google Search Console
How to Use Google Search Console
 
AD207 Presentation
AD207 PresentationAD207 Presentation
AD207 Presentation
 
Performace optimization (increase website speed)
Performace optimization (increase website speed)Performace optimization (increase website speed)
Performace optimization (increase website speed)
 
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
 

More from Mindfire Solutions (20)

Physician Search and Review
Physician Search and ReviewPhysician Search and Review
Physician Search and Review
 
diet management app
diet management appdiet management app
diet management app
 
Business Technology Solution
Business Technology SolutionBusiness Technology Solution
Business Technology Solution
 
Remote Health Monitoring
Remote Health MonitoringRemote Health Monitoring
Remote Health Monitoring
 
Influencer Marketing Solution
Influencer Marketing SolutionInfluencer Marketing Solution
Influencer Marketing Solution
 
ELMAH
ELMAHELMAH
ELMAH
 
High Availability of Azure Applications
High Availability of Azure ApplicationsHigh Availability of Azure Applications
High Availability of Azure Applications
 
IOT Hands On
IOT Hands OnIOT Hands On
IOT Hands On
 
Glimpse of Loops Vs Set
Glimpse of Loops Vs SetGlimpse of Loops Vs Set
Glimpse of Loops Vs Set
 
Oracle Sql Developer-Getting Started
Oracle Sql Developer-Getting StartedOracle Sql Developer-Getting Started
Oracle Sql Developer-Getting Started
 
Adaptive Layout In iOS 8
Adaptive Layout In iOS 8Adaptive Layout In iOS 8
Adaptive Layout In iOS 8
 
Introduction to Auto-layout : iOS/Mac
Introduction to Auto-layout : iOS/MacIntroduction to Auto-layout : iOS/Mac
Introduction to Auto-layout : iOS/Mac
 
LINQPad - utility Tool
LINQPad - utility ToolLINQPad - utility Tool
LINQPad - utility Tool
 
Get started with watch kit development
Get started with watch kit developmentGet started with watch kit development
Get started with watch kit development
 
Swift vs Objective-C
Swift vs Objective-CSwift vs Objective-C
Swift vs Objective-C
 
Material Design in Android
Material Design in AndroidMaterial Design in Android
Material Design in Android
 
Introduction to OData
Introduction to ODataIntroduction to OData
Introduction to OData
 
Ext js Part 2- MVC
Ext js Part 2- MVCExt js Part 2- MVC
Ext js Part 2- MVC
 
ExtJs Basic Part-1
ExtJs Basic Part-1ExtJs Basic Part-1
ExtJs Basic Part-1
 
Spring Security Introduction
Spring Security IntroductionSpring Security Introduction
Spring Security Introduction
 

Recently uploaded

A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 

Recently uploaded (20)

A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 

YSlow For QA

  • 1. Y Slow. By Nimmi Joseph nimmij@mindfiresolutions.com
  • 2. What is YSlow? YSlow analyzes web page performance by examining all the components on the page, including components dynamically created by using JavaScript. It measures the page's performance and offers suggestions for improvement. It suggest ways to improve the performance based on a set of rules for high performance web pages.
  • 3. Features of Y Slow? - Grades web page based on one of three predefined ruleset or a user-defined ruleset. - It offers suggestions for improving the page's performance. - Summarizes the page's components. - Displays statistics about the page. - Provides tools for performance analysis.
  • 4. How does YSlow work? YSlow works in three phases to generate its results. Step -1 YSlow crawls the DOM to find all the components (images, scripts, stylesheets, etc.) in the page and loops through Firebug's Net Panel components and adds those to the list of components already found in the DOM. Step – 2 YSlow gets information about each component: size, whether it was gzipped, Expires header, etc.
  • 5. Step – 3 YSlow takes all this data about the page and generates a grade for each rule, which produces the overall grade.
  • 6. Performance Rules of YSlow. Yahoo!'s Exceptional Performance team has identified 34 rules that affect web page performance. YSlow's web page analysis is based on the 23 of these 34 rules that are testable. Studies have shown that web page response time can be improved by 25% to 50% by following these rules. 1. Minimize HTTP Requests 2. Use a Content Delivery Network 3. Avoid empty src or href
  • 7. 4. Add an Expires or a Cache-Control Header 5. Gzip Components 6. Put StyleSheets at the Top 7. Put Scripts at the Bottom 8. Avoid CSS Expressions 9. Make JavaScript and CSS External 10.Reduce DNS Lookups 11. Minify JavaScript and CSS 12.Avoid Redirects 13.Remove Duplicate Scripts 14. Configure ETags 15. Make AJAX Cacheable 16. Use GET for AJAX Requests 17. Reduce the Number of DOM Elements 18. No 404s
  • 8. 19. Reduce Cookie Size 20. Use Cookie-Free Domains for Components 21. Avoid Filters 22. Do Not Scale Images in HTML 23. Make favicon.ico Small and Cacheable. For more details on the rules refer the following url http://developer.yahoo.com/performance/rules.html#n um_http When analyzing a web page, YSlow deducts points for each infraction of a rule and then applies a grade to each rule. An overall grade and score for the web page is computed by summing up the values of the score for each rule weighted by the rule's importance.
  • 9. Installing YSlow. Firefox YSlow for Firefox needs Firebug to run. Latest version of Firebug can be obtained from https://addons.mozilla.org/en-US/firefox/addon/1843 -------------------------- Safari Latest version and installation process can be obtained from http://yslow.org/safari/ --------------------------- For Chrome https://chrome.google.com/webstore/detail/yslow/ninejjco
  • 10. How to run the YSlow. Firefox YSlow for Firefox runs in the Firebug window, so in order to run the tool, Firebug must be enabled. There are different ways to start YSlow for Firefox: 1. Open the Firebug window and click on the YSlow tab. 2. Click the YSlow button on the status bar.
  • 11. The first time you bring up YSlow, the following screen appears:
  • 12. Run the Test. Click Run Test to run YSlow. OR Click on the Grade, Components or Statistics tabs to start the web page analysis. Autorun YSlow. Clicking on the box next to Autorun, makes the YSlow run each time a web page is loaded in the browser. You can enable or disable the Autorun option by selecting or deselecting Autorun OR by right clicking anywhere in the YSlow status bar. NOTE : Autorun option is only available for Firefox browser.
  • 13. YSlow Views. The results of analysis are displayed in three different views 1. Grade View 2. Components view. 3. Statistics View. They can be navigated by selecting the tab with the view name under the Yslow tab.
  • 14. Grade View . Grade tab displays an analysis of the page's performance. The Grade View displays a report card for the web page with grade for the page displayed at the top along with an overall numeric performance score. The rules are listed in order of importance from most important to least important. Each rule is assigned a letter grade A through F,A being the highest grade.
  • 15.
  • 16. If a rule is not relevant to the web page, the grade returned is N/A, not applicable. Each of the 23 testable rules can be reviewed for the web page. For each rule, a grade is listed along with a list of components that violated the rule and suggestions for improvement. There is a short description of the rule and a “Read More” link to read more about how the rule impacts web page performance.
  • 17. Component View. Component tab displays information about all the components present on the web page. This view, helps to see which components could be gzipped to improve performance.
  • 18. At the top it displays a summary of the total number of components on the page and the page weight in kilobytes. Then there is a table with the component information. Click on the Expand All link to expand all the rows in the table. Following is a summary of the columns in the Components View table: 1. Type - the component's type. The page is comprised of components of the following types: doc, js, css, flash, cssimage, image, redirect, favicon, xhr, and iframe.
  • 19. Size - the component's size in kilobytes. Gzip - the component's gzipped size in kilobytes. Cookie Received - the number of bytes in the HTTP Set-Cookie response header. Cookie Sent - the number of bytes in the HTTP Cookie request header. Headers - the HTTP header icon. To view the header click the magnifying glass icon. Click the icon again to close the header.
  • 20. URL - the component's URL. Expires - the date in the Expires header or max-age in the cache-control header. This field is set to no expires if there is no expires information. Response Time - the time in milliseconds it takes to load the component using XMLHttpRequest. ETag - the ETag response header value, if applicable. Action - an action to take on the component for additional performance analysis.
  • 21. Statistics view dislays a summary of the total number of HTTP requests and the total weight of the page in kilobytes as well as page weight analysis for both Empty Cache and Primed Cache perspectives. The Empty Cache perspective indicates all the components that the browser must request to load the page when the user visits it for the first time. In the Primed Cache perspective, all or most of the components would already be in the cache, which would reduce the number of HTTP requests and the weight of the page. Statistics View.
  • 22.
  • 23. There are 3 predefined rulesets . 1.YSlow(V2) - this ruleset contains all 23 testable rules. 2.Classic(V1) - this ruleset contains the original 13 rules that were used in YSlow 1.0. 3. Small Site or Blog - this ruleset contains the 14 rules that are applicable to small web sites or blogs. 4. [Own Ruleset ] - To create our own ruleset, click on the Edit button next to the Rulesets pull-down menu. Ruleset.
  • 24. Select the rules that needs to be included in the ruleset and then save the ruleset with a name. To run a particular ruleset , select the ruleset and click on " Run Test" If the ruleset is no longer needed , it can be deleted by clicking on the Delete button.
  • 25. Clicking on the Printable View link displays the page performance analysis. YSlow asks what information you want to display. Selecting one or more of the available views opens a new window, formatted for printing, containing the information from the views you selected. Printable View .
  • 26. Help Menu. Clicking on Help brings up the following menus - YSlow Help - links to this document, the YSlow User Guide - YSlow FAQ - links to frequently asked questions about using YSlow - YSlow Community - links to the Exceptional Performance Yahoo! group - Send Feedback - links to a feedback form for sending comments and suggestions - YSlow Home - links to YSlow home page
  • 27. YSlow's Tools menu provides several reporting tools that you can use to get information to help with your web page analysis. NOTE – The Tools menu is only available for Firefox browser. Tools Menu .
  • 28. Reference Links. 1. http://yslow.org/ 2. http://yslow.org/user-guide/ 3.http://developer.yahoo.com/performance/rules.html# num_http