You are on page 1of 27

Improve mobile application performance

Mobility for Business – Oct 2014


Todays
Yesterdays solutions
solutions
How to test ?

The impact of
mobility

Why is speed important ?

2
Our brain
Reaction time Response time Memory
100 to 500 ms 100 to 500 ms
Average response time to
a question (ms)

Question incluant les


90
réponses possibles

Question dont la 180 Sensory memory


réponse est Oui/Non Duration: 0,5 max for visual
2 sec per audio
Arabs numbers(150ms)
Question à réponse
Comparison (190ms) 310 Short term memory
simple
Movement (330ms) Duration : 30 seconds max

Error corections (470ms) Question ouverte 460 Long term memory

Sources : Public Library of Science, Appdynamics, “Timing responses to questions in dialogue”, Sofia Strömbergsson, Anna 3
Hjalmarsson, Jens Edlund, David House - Department of Speech, Music and Hearing, KTH, Stockholm, Sweden
Effect of reaction time of an application
on humans
Reaction time
of an 0,1 0,5 1 2 3 4 5 10 Seconds
application

« normal »
« Instant »
Time

Impact / Loss of attention,


sensation on nervousness,
the user Perfect (eq. « slow »
40 to 60% drops tiredness
Human
on the web
Realtionship) desktop

« very slow »
No waiting 30 to 40% drops
on the web
desktop
4
Effect of reaction time of an application
on humans
Reaction time
of an 0,1 0,5 1 2 3 4 5 10 Seconds
application

Average time Average time


« Instant » WebTemps
desktop Web mobile
« normal »

Impact / Loss of attention,


sensation on nervousness,
the user Perfect (eq. « slow »
40 to 60% drops tiredness
Human
on the web
Realtionship) desktop

« very slow »
No waiting 30 to 40% drops
on the web
desktop
5
Effect of reaction time of an application
On humans
Reaction time
of an 0,1 0,5 1 2 3 4 5 10 Seconds
application Consequences

Revenue Decline Average time


Decline Average time Decreased
in Adoption
« Instant » WebTemps
desktop Web mobile productivity
« normal »
Amazon: If the Compared to a site A slow website requires
display time loading in 1 second , a 50% concentration of
Impact / increases by 100 ms, site loading in 3 Loss of attention
additional efforts
sensation on the revenue goes seconds losses 22% feeling nervous
the user down toPerfect
1% (eq. « slow »
of page views 78 % of userstired
feel
40 to 60% drops
Google : If Human
the ,increase rebounds by
on the web
stressed or angry when
displayRealtionship)
time 50 % and generate
desktop using a slow website
increases 500ms , 22% less
research fell by 25% transformations Increase in usage time
for employees
« very slow »
No waiting 30 to 40% drops
on the
Sources :Jakob Nielsen : http://www.useit.com/alertbox/response-times.html, Foviance: web
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-
desktop
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/ 6
Todays
Yesterdays Solutions
solutions
How to test ?

The Impact of mobility

Why is performance
important ?

7
The sources of performance
Page
construction Request

Answers
Display Treatment

Performance
=
Device processing Latency
+ Debit
Time to communication Amount of Data
+ Quantity of requests
Server processing Protocol
8
The most common protocol (HTTP)
= 2 round trips
HTTP

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 : ….»

Time for one round trip = latency

Note: Secured version (SSL ), the dialogue before data recovery requires a turn and return to give
The " encryption keys "
9
Estimated latency of the different
types of network
Private local Network

ADSL

Optical fiber inter-country

Optical fiber inter-continental

3G

EDGE/2G

0 100 200 300 400

Because 2 round trips are required by HTTP, first « useful » data reaches
application in 40ms for ADSL , in 300ms in 3G

Source : http://www.digitalsociety.org/2010/08/conflating-broadband-speed-with-internet-speed-is-misleading/ 10
http://www.dslreports.com/
4G delivers us ?
Yes, it multiple the But it reduces latency
download by 4 just by 40 %

More dedicated bandwidth depends on the overall traffic and


mobile traffic increased by 68 % in France
http://opensignal.com/reports/state-of-lte-q1-2014/ 11
11
Todays solutions
?
Yesterdays
solutions ?

How to test ?
The Impact of
mobility

Why is performance
important ?

12
Tools to analyse application performance
(APM : Application Performance Management)

Synthetic testing Real User Monitoring (RUM)

Probe to integrate into applications or Robots testing applications on


based on emulations devices

Objectives : crash, display time , ...


by screens / by request

Actors: Compuware Riverbet , AppDynamics , New Relic , Akamai (


Movbitest ) , Keynote Systems, Witbe, Dynatrace, Aternity, Newrelic, …

13
Todays solutions

How to test ?

Yesterdays solution
The impact of
mobility

Why is performance
important ?

14
Time to communication
is a function of

Perception,
latency,
debit,
Amount of data,
Number of requests,
Protocol.

15
Time to communication
is a function of
Display items quickly
Perception, Programmation : flush , Post-load , pre-load

CDN Cache memories


latency, Akamai Technologies, Edgecast,
level 3, Amazon, OVH, CDNetworks
At the server level and devices
Prepare ahead cache

Infrastructures
debit, Bandwidth & CPU

Compress Data formats


Amount of data, Gzip/deflate via accept-encoding
/ content-encoding
Ex : JSON > HTML

Programming Quality
Number of requests, Reduce the number of request by grouping , Putting scripts after the
maximum requests , Avoid interdependent queries, Web: avoid CSS
expressions, Redirects , ... .

Protocol. Binary communication protocol


To reduce the amount of data to be transmitted
16
Yesterdays
solutions
How to test ?

The impact of
mobility Todays solutions
Why is performance
important ?

17
Source of the mobility problem

Latency Latency
10 to 20ms 80 to 160 ms

18
Source of the mobility problem

Latency Latency
10 to 20ms 80 to 160 ms

1st Goal: Reduce the 2nd goal: To reduce the


amount of data to be number of round trips for
transferred to the mobile the same amount of data

19

19
Server
« middleware mobile »

Orchestration
Sources
Cache Cache
Agregation

Avoid the multiple


Eliminate Using bidirectional
calls from the mobile Send only new data
unnecessary data protocol
(*)

20
(*) 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)
Compared to the conventional protocol and
two-way protocol
Bidirectional protocol
HTTP
Page 1
Page 1
« Hello !»
« Yes ?! » « Hello !»
« Cool ! » « Yes ?! »
« Cool ? »
« I want this »
« OK » « I want this »
« Here! » « OK »
« Tiens! »

Page 1 – Data refresh (*)


1st page – data refresh
« Hello !»
« Yeah … »
« Cool !»

« I want this » « OK »
« Here! »
« Here! »

Page 2
« Hello !» 2nd page
« Again?! »
« Cool ! »
« I want this »
« OK » «I want this »
« Here! »
« Here! »

21
Note: (* ) upgradeable scenario with long polling
The impact of these new solutions on the
quantity of transferred data

Transferred data for the same transaction Transferred data for the same transaction
Mobile application for trading Mobile application for sports betting
350 700
298 608
300 600

250 -99% 500 -92%


Ko 200 Ko 400

150 300
243
95
100 200

50 100 48
1.6
0 0
Web app Mobile app Motwin app Web app Mobile app Motwin app

22
Do It Yourself or BUY/RENT
Motwin Platform

23
Implementation of the Motwin platform

24
3 sensitive segments performance

Trading & Betting Critical data


• Access to real-time data
• UI faster for customers in a hurry to buy / sell / bet

Collaborators Tools Efficiency and Productivity


• Real time CRM/ERP
• Assisted maintenance

IoT real time BtB Critical systems


• Configuration, Maintenance and Monitoring
• IU efficient and real - time control objects

25
Reactivity Disponibility Speed Maintenance Cost
deployment and Scalability

-30 to 70% 90% less data x7 -30% to -60%


Beyond the
Management first OS
Microcuts

26
Thank You !
Stand : E32B

community@motwin.com

www.motwin.com

@motwin_inc

27

You might also like