SlideShare a Scribd company logo
9
Most read
10
Most read
13
Most read
Web application performance
1
Sunday, July 07, 2013
Presented by
Pranjal Srivastava
What is performance?
Performance definition
• The accomplishment of a given task measured
against preset known standards of accuracy,
completeness, cost, and speed.
http://www.businessdictionary.com/definition/performance.html#ixzz2Y5
INtXmj
• Performance is based on your “Perception”
Perception
Perception
What is web application
performance?
Why application should perform well?
image courtesy “Times of India”
What is good / acceptable performance
• Good performance is a relative term
– Varies based on type of applications
– Varies based on type of usage
• What we say good today may not be good
enough in future
• 5-8 Second is generally a threshold for a page
to load on a web application
• For a rich web app (like gMail) initial load time
may be higher but that’s a trade
off for rich UX inside app
• AJAX and Use of animated gif to show that
page is loading…
Steps to optimize you application
• Measure performance
• Diagnose bottlenecks
• Fix issues
Measure
• Performance with single user
• Load it and monitor performance
• Monitor performance on Production server
– Identify bottlenecks
Diagnose problems
• JS / HTML level
• Code Level
• DB level
• Server level
• Network
Commonly used tools for diagnosis
• Slow query log
– Generally 5-10 ms is considered reasonable query
performance
• Yslow (http://developer.yahoo.com/yslow)/
Page speed
(https://developers.google.com/speed/pagesp
eed/)
• Code profiling and optimization
• Web based tools
– http://www.webpagetest.org
– http://tools.pingdom.com
Diagnostic tools (Page Speed)
Diagnostic tools (webpagetest.org)
• Initial page load time
• Repeat page load time
• Filmstrip View
• Video view of page load
• Load times for each individual elements
Fix (Browser level)
• XHTML
• DIV based design
• Optimized images
• No errors in code (Validated HTML)
Fix (Network level)
• Reduce size of files
– Gzip (JS, CSS compression)
– JS/ CSS minify (reduce size)
– Image compression (reduce size)
• Use Content delivery network (CDN)
– images, videos, audio clips, CSS files, JS files.
– Browsers limit the number of concurrent connections
to a single domain. Most permit four active
connections
– Distributed data center
– Distribute the load, save bandwidth, boost
performance
• Combine multiple web calls
Fix (Code level)
• Code Profiling
• Review code
• Change Algorithms
• Generally avoided since it can lead to
functional bugs
Fix (Server level)
• Increase server size
– Shared host
– VPS
– Dedicated server
– CPU / Memory
• Use Server Clusters
– Load balancing
– Sticky sessions
AWS Server layout
Fix (DB level)
• Indexes
• Not more than 3 and at max 5 tables join
• MySQL query cache
– query_cache_size (if set to 0 no cache)
– query_cache_type (value on or 1)
– query_cache_limit (max size limit)
• Optimize based on engine used (InnoDB,
MyiSAM)
Fix (Advanced)
• Cache
– Code level Cache
– Varnish
• DB cache
– Code level Cache
– Memcache
About Presenter
• Pranjal Srivastava is founder of CodeFire Technologies Pvt
Lts.
• He has over 14 years of experience in technology consultancy,
architecting enterprise systems and optimizing performance of
web applications.
• He received his B.Tech from Institute of Technology - Banaras
Hindu University, Varanasi, India
• He can be reached at pranjal@codefire.in

More Related Content

What's hot (20)

PPTX
AWS Route53 Fundamentals
Piyush Agrawal
 
PPTX
Introduction to MERN Stack
Surya937648
 
PPTX
Master page
Bhavesh Parmar
 
PPT
PHP - Introduction to PHP Error Handling
Vibrant Technologies & Computers
 
PPTX
HTTP request and response
Sahil Agarwal
 
PPTX
Introduction to Web Development
Parvez Mahbub
 
PDF
Angular - Chapter 3 - Components
WebStackAcademy
 
PDF
REST API and CRUD
Prem Sanil
 
PPT
IIS
Giritharan V
 
PPTX
REST API
Tofazzal Ahmed
 
PPT
Cookies and sessions
Lena Petsenchuk
 
PPTX
Apache web server
Sabiha M
 
PPTX
Web Development
Lena Petsenchuk
 
PPTX
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
PDF
Working with Dynamic Content and Adding Templating engines, MVC
Knoldus Inc.
 
PDF
jQuery for beginners
Arulmurugan Rajaraman
 
PPTX
Session tracking in servlets
vishal choudhary
 
PPTX
Dom(document object model)
Partnered Health
 
PPTX
Introduction to Node.js
Vikash Singh
 
AWS Route53 Fundamentals
Piyush Agrawal
 
Introduction to MERN Stack
Surya937648
 
Master page
Bhavesh Parmar
 
PHP - Introduction to PHP Error Handling
Vibrant Technologies & Computers
 
HTTP request and response
Sahil Agarwal
 
Introduction to Web Development
Parvez Mahbub
 
Angular - Chapter 3 - Components
WebStackAcademy
 
REST API and CRUD
Prem Sanil
 
REST API
Tofazzal Ahmed
 
Cookies and sessions
Lena Petsenchuk
 
Apache web server
Sabiha M
 
Web Development
Lena Petsenchuk
 
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
Working with Dynamic Content and Adding Templating engines, MVC
Knoldus Inc.
 
jQuery for beginners
Arulmurugan Rajaraman
 
Session tracking in servlets
vishal choudhary
 
Dom(document object model)
Partnered Health
 
Introduction to Node.js
Vikash Singh
 

Viewers also liked (20)

PDF
Mobile Tech Trends for 2017
Somo
 
PPTX
What is VAVE
Reff Ren
 
PDF
Dimensions of metric hex nuts
tejasudas
 
PDF
The Mobile Ecosystem
Ivano Malavolta
 
PPTX
Mobile Ecosystem
Pragati Rai
 
PPT
eMBMS for LTE
Isybel Harto
 
PPTX
Interferometric modulator (imod)
Ankita Sinha
 
PPT
E-commerce and M-commerce
ganesh_channa
 
PPTX
Mobile Commerce: A Security Perspective
Pragati Rai
 
PPTX
Receivable management presentation1
shruthi nair
 
PPTX
Módulo 3. ventilación mecánica neonatal
neonatologiaonline
 
PDF
Instrumentacion-control-procesos
dsrpato
 
PPT
Antiemeticos..farma
google
 
DOC
QMS White Paper
jeff_tuthill
 
PPTX
Microtome
Nicasio Jr Casido
 
PDF
Supply Chain Management in healthcare
Anurag Gupta
 
PPT
The x ray imaging system
Rad Tech
 
PPT
Engineering Web Search Applications
Alessandro Bozzon
 
Mobile Tech Trends for 2017
Somo
 
What is VAVE
Reff Ren
 
Dimensions of metric hex nuts
tejasudas
 
The Mobile Ecosystem
Ivano Malavolta
 
Mobile Ecosystem
Pragati Rai
 
eMBMS for LTE
Isybel Harto
 
Interferometric modulator (imod)
Ankita Sinha
 
E-commerce and M-commerce
ganesh_channa
 
Mobile Commerce: A Security Perspective
Pragati Rai
 
Receivable management presentation1
shruthi nair
 
Módulo 3. ventilación mecánica neonatal
neonatologiaonline
 
Instrumentacion-control-procesos
dsrpato
 
Antiemeticos..farma
google
 
QMS White Paper
jeff_tuthill
 
Supply Chain Management in healthcare
Anurag Gupta
 
The x ray imaging system
Rad Tech
 
Engineering Web Search Applications
Alessandro Bozzon
 
Ad

Similar to Web Application Performance (20)

PDF
Scalability and performance for e commerce
Ecommerce Solution Provider SysIQ
 
PDF
Web Application Performance Audit and Optimization
Zyxware Technologies
 
ODP
Cvcc performance tuning
John McCaffrey
 
PPTX
Performance in business terms
Strangeloop
 
PPT
Coradiant
gigamon
 
PPTX
10 things you can do to speed up your web app today stir trek edition
Chris Love
 
PPTX
Applying a Methodical Approach to Website Performance
PostSharp Technologies
 
PDF
Web Performance Optimization (WPO)
Betclic Everest Group Tech Team
 
PDF
Berlin Expert Days 2013 - Performance Talk
Eduard Tudenhoefner
 
PDF
Goal driven performance optimization (Пётр Зайцев)
Ontico
 
PPTX
Northeast PHP - High Performance PHP
Jonathan Klein
 
PPTX
Website Performance
Hugo Fonseca
 
PDF
Tips tricks deliver_high_performing_secure_web_pages
Aditya Singh
 
PPTX
Performance Testing
Anu Shaji
 
PPTX
Web Performance, Scalability, and Testing Techniques - Boston PHP Meetup
Jonathan Klein
 
PDF
Performance and optimization CakeFest 2014
markstory
 
PPTX
Web performance and measurement - UKCMG Conference 2011 - steve thair
Stephen Thair
 
PDF
Web Performance at First Glance
Atlassian
 
PPTX
Performance Best Practices - Part 1 - Client Side [JS, CSS, HTML, jQuery]
Mindfire Solutions
 
PDF
Proven ways to improve your website performance optimizing front end and back...
Katy Slemon
 
Scalability and performance for e commerce
Ecommerce Solution Provider SysIQ
 
Web Application Performance Audit and Optimization
Zyxware Technologies
 
Cvcc performance tuning
John McCaffrey
 
Performance in business terms
Strangeloop
 
Coradiant
gigamon
 
10 things you can do to speed up your web app today stir trek edition
Chris Love
 
Applying a Methodical Approach to Website Performance
PostSharp Technologies
 
Web Performance Optimization (WPO)
Betclic Everest Group Tech Team
 
Berlin Expert Days 2013 - Performance Talk
Eduard Tudenhoefner
 
Goal driven performance optimization (Пётр Зайцев)
Ontico
 
Northeast PHP - High Performance PHP
Jonathan Klein
 
Website Performance
Hugo Fonseca
 
Tips tricks deliver_high_performing_secure_web_pages
Aditya Singh
 
Performance Testing
Anu Shaji
 
Web Performance, Scalability, and Testing Techniques - Boston PHP Meetup
Jonathan Klein
 
Performance and optimization CakeFest 2014
markstory
 
Web performance and measurement - UKCMG Conference 2011 - steve thair
Stephen Thair
 
Web Performance at First Glance
Atlassian
 
Performance Best Practices - Part 1 - Client Side [JS, CSS, HTML, jQuery]
Mindfire Solutions
 
Proven ways to improve your website performance optimizing front end and back...
Katy Slemon
 
Ad

Recently uploaded (20)

PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 

Web Application Performance

  • 1. Web application performance 1 Sunday, July 07, 2013 Presented by Pranjal Srivastava
  • 3. Performance definition • The accomplishment of a given task measured against preset known standards of accuracy, completeness, cost, and speed. http://www.businessdictionary.com/definition/performance.html#ixzz2Y5 INtXmj • Performance is based on your “Perception”
  • 6. What is web application performance?
  • 7. Why application should perform well?
  • 9. What is good / acceptable performance • Good performance is a relative term – Varies based on type of applications – Varies based on type of usage • What we say good today may not be good enough in future • 5-8 Second is generally a threshold for a page to load on a web application • For a rich web app (like gMail) initial load time may be higher but that’s a trade off for rich UX inside app • AJAX and Use of animated gif to show that page is loading…
  • 10. Steps to optimize you application • Measure performance • Diagnose bottlenecks • Fix issues
  • 11. Measure • Performance with single user • Load it and monitor performance • Monitor performance on Production server – Identify bottlenecks
  • 12. Diagnose problems • JS / HTML level • Code Level • DB level • Server level • Network
  • 13. Commonly used tools for diagnosis • Slow query log – Generally 5-10 ms is considered reasonable query performance • Yslow (http://developer.yahoo.com/yslow)/ Page speed (https://developers.google.com/speed/pagesp eed/) • Code profiling and optimization • Web based tools – http://www.webpagetest.org – http://tools.pingdom.com
  • 15. Diagnostic tools (webpagetest.org) • Initial page load time • Repeat page load time • Filmstrip View • Video view of page load • Load times for each individual elements
  • 16. Fix (Browser level) • XHTML • DIV based design • Optimized images • No errors in code (Validated HTML)
  • 17. Fix (Network level) • Reduce size of files – Gzip (JS, CSS compression) – JS/ CSS minify (reduce size) – Image compression (reduce size) • Use Content delivery network (CDN) – images, videos, audio clips, CSS files, JS files. – Browsers limit the number of concurrent connections to a single domain. Most permit four active connections – Distributed data center – Distribute the load, save bandwidth, boost performance • Combine multiple web calls
  • 18. Fix (Code level) • Code Profiling • Review code • Change Algorithms • Generally avoided since it can lead to functional bugs
  • 19. Fix (Server level) • Increase server size – Shared host – VPS – Dedicated server – CPU / Memory • Use Server Clusters – Load balancing – Sticky sessions
  • 21. Fix (DB level) • Indexes • Not more than 3 and at max 5 tables join • MySQL query cache – query_cache_size (if set to 0 no cache) – query_cache_type (value on or 1) – query_cache_limit (max size limit) • Optimize based on engine used (InnoDB, MyiSAM)
  • 22. Fix (Advanced) • Cache – Code level Cache – Varnish • DB cache – Code level Cache – Memcache
  • 23. About Presenter • Pranjal Srivastava is founder of CodeFire Technologies Pvt Lts. • He has over 14 years of experience in technology consultancy, architecting enterprise systems and optimizing performance of web applications. • He received his B.Tech from Institute of Technology - Banaras Hindu University, Varanasi, India • He can be reached at [email protected]