2. 2
Why is speed important ?
The impact of
mobility
How to test ?
Yesterdays
solutions
Todays
solutions
3. 3
Our brain
Sources : Public Library of Science, Appdynamics, “Timing responses to questions in dialogue”, Sofia Strömbergsson, Anna
Hjalmarsson, Jens Edlund, David House - Department of Speech, Music and Hearing, KTH, Stockholm, Sweden
Arabs numbers(150ms)
Comparison (190ms)
Movement (330ms)
Error corections (470ms)
Reaction time
100 to 500 ms
Response time
100 to 500 ms
Memory
Sensory memory
Duration: 0,5 max for visual
2 sec per audio
Short term memory
Duration : 30 seconds max
Long term memory
Average response time to
a question (ms)
460
310
180
90
Question ouverte
Question à réponse
simple
Question dont la
réponse est Oui/Non
Question incluant les
réponses possibles
4. 4
Effect of reaction time of an application
on humans
4
Reaction time
of an
application
Impact /
sensation on
the user
0,1 Seconds0,5 2 3 5 101 4
« Instant »
Perfect (eq.
Human
Realtionship)
« normal »
Time
« slow »
40 to 60% drops
on the web
desktop
« very slow »
30 to 40% drops
on the web
desktop
Loss of attention,
nervousness,
tiredness
No waiting
5. 55
0,1 Seconds0,5 2 3 5 101 4
« Instant »
Temps
« normal »
Average time
Web desktop
Average time
Web mobile
Impact /
sensation on
the user
Reaction time
of an
application
Effect of reaction time of an application
on humans
Perfect (eq.
Human
Realtionship)
« slow »
40 to 60% drops
on the web
desktop
No waiting
« very slow »
30 to 40% drops
on the web
desktop
Loss of attention,
nervousness,
tiredness
6. 66
0,1 Seconds0,5 2 3 5 101 4
« Instant »
Temps
« normal »
Average time
Web desktop
Average time
Web mobile
Impact /
sensation on
the user
Reaction time
of an
application
Effect of reaction time of an application
On humans
Perfect (eq.
Human
Realtionship)
« slow »
40 to 60% drops
on the web
desktop
No waiting
« very slow »
30 to 40% drops
on the web
desktop
Loss of attention
feeling nervous
tired
Revenue Decline Decline in Adoption
Decreased
productivity
Consequences
Amazon: If the
display time
increases by 100 ms,
the revenue goes
down to 1%
Google : If the
display time
increases 500ms ,
research fell by 25%
Compared to a site
loading in 1 second , a
site loading in 3
seconds losses 22%
of page views
,increase rebounds by
50 % and generate
22% less
transformations
A slow website requires
50% concentration of
additional efforts
78 % of users feel
stressed or angry when
using a slow website
Increase in usage time
for employees
Sources :Jakob Nielsen : http://www.useit.com/alertbox/response-times.html, Foviance: http://www.foviance.com/what-we-think/wen-
stress-a-wake-up-call-for european-business/, Harris interactive: http://www.tealeaf.com/news/news-releases/2011/tealeaf-announces-
new-mobile-research.php, PhoCusWright : http://www.phocuswright.com/free_reports/consumer-response-to-travel-site-performance,
Redhat http://www.webperformancetoday.com/2010/07/01/the-best-graphs-of-velocity/
8. 8
The sources of performance
Page
construction
Answers
Request
Display Treatment
Performance
=
Device processing
+
Time to communication
+
Server processing
Latency
Debit
Amount of Data
Quantity of requests
Protocol
9. 9
TCP SYN « Hi !»
TCP SYN ACK « Hi ?! »
TCP ACK « There you are ! »
HTTP GET « I want this »
HTTP 200« OK »
[index.html] « Here it is : ….»
Note: Secured version (SSL ), the dialogue before data recovery requires a turn and return to give
The " encryption keys "
HTTP
The most common protocol (HTTP)
= 2 round trips
Time for one round trip = latency
10. Estimated latency of the different
types of network
10Source : http://www.digitalsociety.org/2010/08/conflating-broadband-speed-with-internet-speed-is-misleading/
http://www.dslreports.com/
Because 2 round trips are required by HTTP, first « useful » data reaches
application in 40ms for ADSL , in 300ms in 3G
0 100 200 300 400
EDGE/2G
3G
Optical fiber inter-continental
Optical fiber inter-country
ADSL
Private local Network
11. 11
4G delivers us ?
11http://opensignal.com/reports/state-of-lte-q1-2014/
Yes, it multiple the
download by 4
More dedicated bandwidth depends on the overall traffic and
mobile traffic increased by 68 % in France
But it reduces latency
just by 40 %
13. 13
Tools to analyse application performance
(APM : Application Performance Management)
Synthetic testing Real User Monitoring (RUM)
Probe to integrate into applications or
based on emulations
Objectives : crash, display time , ...
by screens / by request
Actors: Compuware Riverbet , AppDynamics , New Relic , Akamai (
Movbitest ) , Keynote Systems, Witbe, Dynatrace, Aternity, Newrelic, …
Robots testing applications on
devices
15. 15
Time to communication
is a function of
Perception,
latency,
debit,
Amount of data,
Number of requests,
Protocol.
16. 16
Display items quickly
Programmation : flush , Post-load , pre-load
CDN
Akamai Technologies, Edgecast,
level 3, Amazon, OVH, CDNetworks
Cache memories
At the server level and devices
Prepare ahead cache
Infrastructures
Bandwidth & CPU
Compress
Gzip/deflate via accept-encoding
/ content-encoding
Data formats
Ex : JSON > HTML
Binary communication protocol
To reduce the amount of data to be transmitted
Programming Quality
Reduce the number of request by grouping , Putting scripts after the
maximum requests , Avoid interdependent queries, Web: avoid CSS
expressions, Redirects , ... .
Time to communication
is a function of
Perception,
latency,
debit,
Amount of data,
Number of requests,
Protocol.
19. 19
19
1st Goal: Reduce the
amount of data to be
transferred to the mobile
2nd goal: To reduce the
number of round trips for
the same amount of data
Source of the mobility problem
Latency
10 to 20ms
Latency
80 to 160 ms
20. 20
Sources
Server
« middleware mobile »
Agregation
Cache Cache
Orchestration
Eliminate
unnecessary data
Avoid the multiple
calls from the mobile
(*)
Send only new data
Using bidirectional
protocol
(*) Especially the application requires interdependent calls ( if the value of A to be found in such a server is X, then search B in another server)
21. 21
« Hello !»
« Yes ?! »
« Cool ! »
« I want this »
« OK »
« Here! »
HTTP
Page 1
Page 2
« Hello !»
« Again?! »
« Cool ! »
« I want this »
« OK »
« Here! »
Page 1 – Data refresh (*)
« Yeah … »
« Cool !»
« OK »
« Here! »
« Hello !»
« Yes ?! »
« I want this »
« OK »
« Tiens! »
Page 1
2nd page
«I want this »
« Here! »
1st page – data refresh
« Here! »
Bidirectional protocol
Note: (* ) upgradeable scenario with long polling
Compared to the conventional protocol and
two-way protocol
« Hello !»
« I want this »
« Cool ? »
22. 22
Transferred data for the same transaction
Mobile application for trading
Transferred data for the same transaction
Mobile application for sports betting
298
95
1.6
0
50
100
150
200
250
300
350
Web app Mobile app Motwin app
Ko Ko
608
243
48
0
100
200
300
400
500
600
700
Web app Mobile app Motwin app
-99% -92%
The impact of these new solutions on the
quantity of transferred data
25. 25
3 sensitive segments performance
Trading & Betting
• Access to real-time data
• UI faster for customers in a hurry to buy / sell / bet
Collaborators Tools
• Real time CRM/ERP
• Assisted maintenance
IoT real time BtB
• Configuration, Maintenance and Monitoring
• IU efficient and real - time control objects
25
Critical data
Efficiency and Productivity
Critical systems