SlideShare a Scribd company logo
1 of 16
Download to read offline
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Ivano Malavolta
Giuseppe Procaccianti
Paul Noorland
Petar Vukmirovic	́
VRIJE
UNIVERSITEIT
AMSTERDAM
Assessing the Impact of Service Workers on the
Energy Efficiency of Progressive Web Apps
Buenos Aires, 22 May 2017
VRIJE
UNIVERSITEIT
AMSTERDAM
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
BROWSER
<html>
<head>
<script src=” ...” />
</head>
<body>
...
NATIVE
APP
01010101010101101010
1010101011011010
010101010101011101
010101010101011010
PLATFORM APIs
Native Web
Mobile development strategies
Progressive
(PWA)
BROWSER
<html>
<head>
<script src=” ...” />
</head>
<body>
...
Service
workers
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Service worker
Implemented in JavaScript
Multithreading
→ it runs in a separate thread w.r.t.
the main thread
Used for:
• push notifications
• background operations
• content caching
– offline functionality
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Offline-first experience
Web App
Service
worker
response
response
request
Backend
Offline cache
this.addEventListener('fetch', function(event) {
event.respondWith(
caches.match(event.request).then(function(response){
return response || fetch(event.request);
});
);
});
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Goal of this work
PWAs + service workers have been advertised as:
• performance boosters
• network savers
• providers of better UX
However…
How does the use of service workers impact the
energy efficiency of PWAs under different network
conditions?
How does the use of service workers impact the
energy efficiency of PWAs?RQ1
RQ2
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Subjects selection
• Real apps from the pwa.rocks1 repository
• Pseudo-random selection
– no toy examples
– data-driven PWAs (e.g., no videogames)
1 https://pwa.rocks
Name Category Total size SW size (loc)
Ali Express Shopping 2.1Mb 69
Google I/O 2016 Events 4.2Mb 358
The Washington Post News 4.0Mb 85
Flipkart Shopping 3.8Mb 907
Babe News News 1.2Mb 156
Wiki offline Knowledge 800Kb 1009
The Billings Gazette News 2.1Mb 60
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Experiment design
Independent variables:
Dependent variable:
energy consumption of the device in Joules
Experiment design:
• full 2x2x2 factorial à all possible combinations of treatments
• 8 combinations x 7 PWAs x 8 runs à 448 runs
• each run executes a typical usage scenario (10-15 gestures)
Variable name Treatments
SW status <on, off>
Android device <high-end, low-end>
Network condition <2G, WiFi>
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Experiment execution
Orchestration
script
Monkey-
runner
Trepn
profiler
Chrome
Monkeyrunner
1. HTTP requests
impersonating phone
2. HTTP responses (recorded)
9. save
collected
data
3. Start experiment run
5. start 6. start
7a. HTTP
requests as part
of the scenario
7b. HTTP
responses
(possibly altered)
8. collect data
Fiddler
proxy
Hosted
PWA
ADB
OS
4. start
scenario
run
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Results
Overall energy consumption across devices
Low-end High-end
High difference across devices
à we use the type of
device as blocking factor
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Results (RQ1)
Results of the ANOVA test on all the factors
Factors Sum of
squares
F value p-value
Service workers (SW) 98.15 0.11 0.75
Network conditions 3164.28 3.41 0.07
Device type 67974.31 73.33 <0.05
SW:network 66.93 0.07 0.79
We cannot claim that service workers influence the energy
consumption of a PWA running on a mobile device
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Results (RQ1)
Let’s look at how service workers impact energy consumption on the
specific devices...
Low-end High-end
Difference in energy consumption in high-end
device – extremely minimal (0.42 J)
The high-end device consumes less energy
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Results (RQ2) – network conditions
High-end
+ 2G
Low-end
+ 2G
Low-end
+ WiFi
High-end
+ WiFiPWAs consume less energy on WiFi
Same device + same network condition à low impact of SWs
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
PWA-specific trends
Low-end
2G
WiFi
High-endDifferent PWAs
à different impact
of SWs
Same PWA
à SWs have a
different impact
under different
conditions
- - - - + + +
+
-
+
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Manual review of SW source code
Conjecture = specific implementation of each SW may be a
confounding factor
No specific trend here
Name Listened
events
Caching Obfuscation/
minification
Complexity
Ali Express P, N ✓ ✓ 12
Google I/O 2016 I, A, F, M ✓ 9
The Washington Post I, A, P, N ✓ 131
Flipkart I, A, F ✓ ✓ 5
Babe News I, A, F, P, N ✓ 16
Wiki offline I, A, F, S, M, N ✓ ✓ 7
The Billings Gazette I, A, F ✓ 194
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Conclusions
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Goal of this work
PWAs have been advertised as:
• performance boosters
• network savers
• providers of better UX
However…
How does the use of service workers impact the
energy efficiency of PWAs under different network
conditions?
How does the use of service workers impact the
energy efficiency of PWAs?RQ1
RQ2
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Results (RQ1)
Results of the ANOVA test on all the factors
Factors Sum of
squares
F value p-value
Service workers (SW) 98.15 0.11 0.75
Network conditions 3164.28 3.41 0.07
Device type 67974.31 73.33 <0.05
SW:network 66.93 0.07 0.79
We cannot claim that service workers influence the energy
consumption of a PWA running on a mobile device
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Backup slides
• Accuracy of Trepn profiler: close to 99%
– Hoque, Mohammad Ashraful, et al. "Modeling, profiling, and
debugging the energy consumption of mobile devices." ACM
Computing Surveys (CSUR) 48.3 (2016): 39.
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Experiment execution
Orchestration
script
Monkey-
runner
Trepn
profiler
Chrome
Monkeyrunner
1. HTTP requests
impersonating phone
2. HTTP responses (recorded)
9. save
collect
data
3. Start experiment run
5. start 6. start
7a. HTTP
requests as part
of the scenario
7b. HTTP
responses
(possibly altered)
8. collect data
Fiddler
proxy
Hosted
PWA
ADB
OS
4. start
scenario
run
VRIJE
UNIVERSITEIT
AMSTERDAM
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
PWA-specific trends
Low-end
2G
WiFi
High-endDifferent PWAs
à different impact
of SWs
Same PWA
à different impact of
SWs under different
conditions
- - - - + + +
+
-
+
Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires
Contact
Ivano Malavolta |
Assistant professor
Vrije Universiteit Amsterdam
iivanoo
i.malavolta@vu.nl
www.ivanomalavolta.com

More Related Content

Similar to Assessing the Impact of Service Workers on the Energy Efficiency of Progressive Web Apps

IRJET- Vanet Connection Performance Analysis using GPSR Protocol
IRJET- Vanet Connection Performance Analysis using GPSR ProtocolIRJET- Vanet Connection Performance Analysis using GPSR Protocol
IRJET- Vanet Connection Performance Analysis using GPSR ProtocolIRJET Journal
 
Smart web cam motion detection
Smart web cam motion detectionSmart web cam motion detection
Smart web cam motion detectionAnu Mathew
 
Analysis of programming aspects of wireless sensor networks
Analysis of programming aspects of wireless sensor networksAnalysis of programming aspects of wireless sensor networks
Analysis of programming aspects of wireless sensor networksiaemedu
 
TOP 20 Cited Wireless & Mobile Networks Research Articles 2021
TOP 20 Cited Wireless & Mobile Networks Research Articles 2021TOP 20 Cited Wireless & Mobile Networks Research Articles 2021
TOP 20 Cited Wireless & Mobile Networks Research Articles 2021ijwmn
 
Mid Term Project Report- GSM Based Flood Notification System
Mid Term Project Report- GSM Based Flood Notification SystemMid Term Project Report- GSM Based Flood Notification System
Mid Term Project Report- GSM Based Flood Notification SystemAnshul Joshi
 
Solar-Powered IoT-Enabled Weather Monitoring System with AJAX- Based Webserve...
Solar-Powered IoT-Enabled Weather Monitoring System with AJAX- Based Webserve...Solar-Powered IoT-Enabled Weather Monitoring System with AJAX- Based Webserve...
Solar-Powered IoT-Enabled Weather Monitoring System with AJAX- Based Webserve...IRJET Journal
 
A SURVEY OF ENERGY-EFFICIENT COMMUNICATION PROTOCOLS IN WSN
A SURVEY OF ENERGY-EFFICIENT COMMUNICATION PROTOCOLS IN WSNA SURVEY OF ENERGY-EFFICIENT COMMUNICATION PROTOCOLS IN WSN
A SURVEY OF ENERGY-EFFICIENT COMMUNICATION PROTOCOLS IN WSNIAEME Publication
 
IRJET-A Brief Study of Leach based Routing Protocol in Wireless Sensor Networks
IRJET-A Brief Study of Leach based Routing Protocol in Wireless Sensor NetworksIRJET-A Brief Study of Leach based Routing Protocol in Wireless Sensor Networks
IRJET-A Brief Study of Leach based Routing Protocol in Wireless Sensor NetworksIRJET Journal
 
Fuel Station Monitoring and Automation based on WSN
Fuel Station Monitoring and Automation based on WSN Fuel Station Monitoring and Automation based on WSN
Fuel Station Monitoring and Automation based on WSN IJECEIAES
 
Resume ( Pankaj Negi)
Resume ( Pankaj Negi)Resume ( Pankaj Negi)
Resume ( Pankaj Negi)Pankaj Negi
 
Prediction of Wireless Sensor Network and Attack using Machine Learning Techn...
Prediction of Wireless Sensor Network and Attack using Machine Learning Techn...Prediction of Wireless Sensor Network and Attack using Machine Learning Techn...
Prediction of Wireless Sensor Network and Attack using Machine Learning Techn...IRJET Journal
 
Contemporary Energy Optimization for Mobile and Cloud Environment
Contemporary Energy Optimization for Mobile and Cloud EnvironmentContemporary Energy Optimization for Mobile and Cloud Environment
Contemporary Energy Optimization for Mobile and Cloud Environmentijceronline
 
LORA BASED DATA ACQUISITION SYSTEM
LORA BASED DATA ACQUISITION SYSTEMLORA BASED DATA ACQUISITION SYSTEM
LORA BASED DATA ACQUISITION SYSTEMIRJET Journal
 
IRJET- Virtual Network Recognition and Optimization in SDN-Enabled Cloud Env...
IRJET-  Virtual Network Recognition and Optimization in SDN-Enabled Cloud Env...IRJET-  Virtual Network Recognition and Optimization in SDN-Enabled Cloud Env...
IRJET- Virtual Network Recognition and Optimization in SDN-Enabled Cloud Env...IRJET Journal
 
Implementing Saas as Cloud controllers using Mobile Agent based technology wi...
Implementing Saas as Cloud controllers using Mobile Agent based technology wi...Implementing Saas as Cloud controllers using Mobile Agent based technology wi...
Implementing Saas as Cloud controllers using Mobile Agent based technology wi...Sunil Rajput
 

Similar to Assessing the Impact of Service Workers on the Energy Efficiency of Progressive Web Apps (20)

SEDRP
SEDRPSEDRP
SEDRP
 
Mobile Cloud Computing
Mobile Cloud ComputingMobile Cloud Computing
Mobile Cloud Computing
 
IRJET- Vanet Connection Performance Analysis using GPSR Protocol
IRJET- Vanet Connection Performance Analysis using GPSR ProtocolIRJET- Vanet Connection Performance Analysis using GPSR Protocol
IRJET- Vanet Connection Performance Analysis using GPSR Protocol
 
Smart web cam motion detection
Smart web cam motion detectionSmart web cam motion detection
Smart web cam motion detection
 
2015 - 2016 ieee ns2 project titles
2015 - 2016 ieee ns2 project titles2015 - 2016 ieee ns2 project titles
2015 - 2016 ieee ns2 project titles
 
Analysis of programming aspects of wireless sensor networks
Analysis of programming aspects of wireless sensor networksAnalysis of programming aspects of wireless sensor networks
Analysis of programming aspects of wireless sensor networks
 
TOP 20 Cited Wireless & Mobile Networks Research Articles 2021
TOP 20 Cited Wireless & Mobile Networks Research Articles 2021TOP 20 Cited Wireless & Mobile Networks Research Articles 2021
TOP 20 Cited Wireless & Mobile Networks Research Articles 2021
 
Mid Term Project Report- GSM Based Flood Notification System
Mid Term Project Report- GSM Based Flood Notification SystemMid Term Project Report- GSM Based Flood Notification System
Mid Term Project Report- GSM Based Flood Notification System
 
Solar-Powered IoT-Enabled Weather Monitoring System with AJAX- Based Webserve...
Solar-Powered IoT-Enabled Weather Monitoring System with AJAX- Based Webserve...Solar-Powered IoT-Enabled Weather Monitoring System with AJAX- Based Webserve...
Solar-Powered IoT-Enabled Weather Monitoring System with AJAX- Based Webserve...
 
A SURVEY OF ENERGY-EFFICIENT COMMUNICATION PROTOCOLS IN WSN
A SURVEY OF ENERGY-EFFICIENT COMMUNICATION PROTOCOLS IN WSNA SURVEY OF ENERGY-EFFICIENT COMMUNICATION PROTOCOLS IN WSN
A SURVEY OF ENERGY-EFFICIENT COMMUNICATION PROTOCOLS IN WSN
 
IRJET-A Brief Study of Leach based Routing Protocol in Wireless Sensor Networks
IRJET-A Brief Study of Leach based Routing Protocol in Wireless Sensor NetworksIRJET-A Brief Study of Leach based Routing Protocol in Wireless Sensor Networks
IRJET-A Brief Study of Leach based Routing Protocol in Wireless Sensor Networks
 
40120140506009 2
40120140506009 240120140506009 2
40120140506009 2
 
Fuel Station Monitoring and Automation based on WSN
Fuel Station Monitoring and Automation based on WSN Fuel Station Monitoring and Automation based on WSN
Fuel Station Monitoring and Automation based on WSN
 
Resume ( Pankaj Negi)
Resume ( Pankaj Negi)Resume ( Pankaj Negi)
Resume ( Pankaj Negi)
 
Prediction of Wireless Sensor Network and Attack using Machine Learning Techn...
Prediction of Wireless Sensor Network and Attack using Machine Learning Techn...Prediction of Wireless Sensor Network and Attack using Machine Learning Techn...
Prediction of Wireless Sensor Network and Attack using Machine Learning Techn...
 
Contemporary Energy Optimization for Mobile and Cloud Environment
Contemporary Energy Optimization for Mobile and Cloud EnvironmentContemporary Energy Optimization for Mobile and Cloud Environment
Contemporary Energy Optimization for Mobile and Cloud Environment
 
LORA BASED DATA ACQUISITION SYSTEM
LORA BASED DATA ACQUISITION SYSTEMLORA BASED DATA ACQUISITION SYSTEM
LORA BASED DATA ACQUISITION SYSTEM
 
MIMIC Simulator Network Simulator
MIMIC Simulator Network SimulatorMIMIC Simulator Network Simulator
MIMIC Simulator Network Simulator
 
IRJET- Virtual Network Recognition and Optimization in SDN-Enabled Cloud Env...
IRJET-  Virtual Network Recognition and Optimization in SDN-Enabled Cloud Env...IRJET-  Virtual Network Recognition and Optimization in SDN-Enabled Cloud Env...
IRJET- Virtual Network Recognition and Optimization in SDN-Enabled Cloud Env...
 
Implementing Saas as Cloud controllers using Mobile Agent based technology wi...
Implementing Saas as Cloud controllers using Mobile Agent based technology wi...Implementing Saas as Cloud controllers using Mobile Agent based technology wi...
Implementing Saas as Cloud controllers using Mobile Agent based technology wi...
 

More from MobileSoft

Investigating Decreasing Energy Usage in Mobile Apps via Indistinguishable Co...
Investigating Decreasing Energy Usage in Mobile Apps via Indistinguishable Co...Investigating Decreasing Energy Usage in Mobile Apps via Indistinguishable Co...
Investigating Decreasing Energy Usage in Mobile Apps via Indistinguishable Co...MobileSoft
 
Predicting Android Application Security and Privacy Risk With Static Code Met...
Predicting Android Application Security and Privacy Risk With Static Code Met...Predicting Android Application Security and Privacy Risk With Static Code Met...
Predicting Android Application Security and Privacy Risk With Static Code Met...MobileSoft
 
A Framework for Regression Testing of Outdoor Mobile Applications
A Framework for Regression Testing of Outdoor Mobile ApplicationsA Framework for Regression Testing of Outdoor Mobile Applications
A Framework for Regression Testing of Outdoor Mobile ApplicationsMobileSoft
 
Who Changed You? Obfuscator Identification for Android
Who Changed You? Obfuscator Identification for AndroidWho Changed You? Obfuscator Identification for Android
Who Changed You? Obfuscator Identification for AndroidMobileSoft
 
Mobile App Development and Management: Results from a Qualitative Investigation
Mobile App Development and Management: Results from a Qualitative InvestigationMobile App Development and Management: Results from a Qualitative Investigation
Mobile App Development and Management: Results from a Qualitative InvestigationMobileSoft
 
Towards Mobile Twin Peaks for App Development
Towards Mobile Twin Peaks for App DevelopmentTowards Mobile Twin Peaks for App Development
Towards Mobile Twin Peaks for App DevelopmentMobileSoft
 
Leafactor: Improving Energy Efficiency of Android Apps via Automatic Refactoring
Leafactor: Improving Energy Efficiency of Android Apps via Automatic RefactoringLeafactor: Improving Energy Efficiency of Android Apps via Automatic Refactoring
Leafactor: Improving Energy Efficiency of Android Apps via Automatic RefactoringMobileSoft
 
Same App, Different App Stores: A comparative Study
Same App, Different App Stores: A comparative StudySame App, Different App Stores: A comparative Study
Same App, Different App Stores: A comparative StudyMobileSoft
 
Performance-based Guidelines for Energy-efficient Mobile Applications
Performance-based Guidelines for Energy-efficient Mobile ApplicationsPerformance-based Guidelines for Energy-efficient Mobile Applications
Performance-based Guidelines for Energy-efficient Mobile ApplicationsMobileSoft
 
Towards Native Code Offloading Platforms for Image Processing in Mobile Appli...
Towards Native Code Offloading Platforms for Image Processing in Mobile Appli...Towards Native Code Offloading Platforms for Image Processing in Mobile Appli...
Towards Native Code Offloading Platforms for Image Processing in Mobile Appli...MobileSoft
 
Leafactor: Improving Energy Efficiency of Android Apps via Automatic Refactoring
Leafactor: Improving Energy Efficiency of Android Apps via Automatic RefactoringLeafactor: Improving Energy Efficiency of Android Apps via Automatic Refactoring
Leafactor: Improving Energy Efficiency of Android Apps via Automatic RefactoringMobileSoft
 
IFMLEdit.org: Model Driven Rapid Prototyping of Mobile Apps
IFMLEdit.org: Model Driven Rapid Prototyping of Mobile AppsIFMLEdit.org: Model Driven Rapid Prototyping of Mobile Apps
IFMLEdit.org: Model Driven Rapid Prototyping of Mobile AppsMobileSoft
 
Performance-based Guidelines for Energy Efficient Mobile Applications
Performance-based Guidelines for Energy Efficient Mobile ApplicationsPerformance-based Guidelines for Energy Efficient Mobile Applications
Performance-based Guidelines for Energy Efficient Mobile ApplicationsMobileSoft
 
Towards Architectural Styles for Android App Software Product Lines
Towards Architectural Styles for Android App Software Product LinesTowards Architectural Styles for Android App Software Product Lines
Towards Architectural Styles for Android App Software Product LinesMobileSoft
 
CheckDroid: A Tool for Automated Detection of Bad Practices in Android Applic...
CheckDroid: A Tool for Automated Detection of Bad Practices in Android Applic...CheckDroid: A Tool for Automated Detection of Bad Practices in Android Applic...
CheckDroid: A Tool for Automated Detection of Bad Practices in Android Applic...MobileSoft
 
Authoring Tool for Location-based Learning Experiences
Authoring Tool for Location-based Learning ExperiencesAuthoring Tool for Location-based Learning Experiences
Authoring Tool for Location-based Learning ExperiencesMobileSoft
 
ACCUSE: Helping Users to minimize Android App Privacy Concerns
ACCUSE: Helping Users to minimize Android App Privacy ConcernsACCUSE: Helping Users to minimize Android App Privacy Concerns
ACCUSE: Helping Users to minimize Android App Privacy ConcernsMobileSoft
 
Automatically Locating Malicious Packages in Piggybacked Android Apps
Automatically Locating Malicious Packages in Piggybacked Android AppsAutomatically Locating Malicious Packages in Piggybacked Android Apps
Automatically Locating Malicious Packages in Piggybacked Android AppsMobileSoft
 
From reactive toproactive mobile security
From reactive toproactive mobile securityFrom reactive toproactive mobile security
From reactive toproactive mobile securityMobileSoft
 
Processing in Mobile Applications: A Case Study
Processing in Mobile Applications: A Case StudyProcessing in Mobile Applications: A Case Study
Processing in Mobile Applications: A Case StudyMobileSoft
 

More from MobileSoft (20)

Investigating Decreasing Energy Usage in Mobile Apps via Indistinguishable Co...
Investigating Decreasing Energy Usage in Mobile Apps via Indistinguishable Co...Investigating Decreasing Energy Usage in Mobile Apps via Indistinguishable Co...
Investigating Decreasing Energy Usage in Mobile Apps via Indistinguishable Co...
 
Predicting Android Application Security and Privacy Risk With Static Code Met...
Predicting Android Application Security and Privacy Risk With Static Code Met...Predicting Android Application Security and Privacy Risk With Static Code Met...
Predicting Android Application Security and Privacy Risk With Static Code Met...
 
A Framework for Regression Testing of Outdoor Mobile Applications
A Framework for Regression Testing of Outdoor Mobile ApplicationsA Framework for Regression Testing of Outdoor Mobile Applications
A Framework for Regression Testing of Outdoor Mobile Applications
 
Who Changed You? Obfuscator Identification for Android
Who Changed You? Obfuscator Identification for AndroidWho Changed You? Obfuscator Identification for Android
Who Changed You? Obfuscator Identification for Android
 
Mobile App Development and Management: Results from a Qualitative Investigation
Mobile App Development and Management: Results from a Qualitative InvestigationMobile App Development and Management: Results from a Qualitative Investigation
Mobile App Development and Management: Results from a Qualitative Investigation
 
Towards Mobile Twin Peaks for App Development
Towards Mobile Twin Peaks for App DevelopmentTowards Mobile Twin Peaks for App Development
Towards Mobile Twin Peaks for App Development
 
Leafactor: Improving Energy Efficiency of Android Apps via Automatic Refactoring
Leafactor: Improving Energy Efficiency of Android Apps via Automatic RefactoringLeafactor: Improving Energy Efficiency of Android Apps via Automatic Refactoring
Leafactor: Improving Energy Efficiency of Android Apps via Automatic Refactoring
 
Same App, Different App Stores: A comparative Study
Same App, Different App Stores: A comparative StudySame App, Different App Stores: A comparative Study
Same App, Different App Stores: A comparative Study
 
Performance-based Guidelines for Energy-efficient Mobile Applications
Performance-based Guidelines for Energy-efficient Mobile ApplicationsPerformance-based Guidelines for Energy-efficient Mobile Applications
Performance-based Guidelines for Energy-efficient Mobile Applications
 
Towards Native Code Offloading Platforms for Image Processing in Mobile Appli...
Towards Native Code Offloading Platforms for Image Processing in Mobile Appli...Towards Native Code Offloading Platforms for Image Processing in Mobile Appli...
Towards Native Code Offloading Platforms for Image Processing in Mobile Appli...
 
Leafactor: Improving Energy Efficiency of Android Apps via Automatic Refactoring
Leafactor: Improving Energy Efficiency of Android Apps via Automatic RefactoringLeafactor: Improving Energy Efficiency of Android Apps via Automatic Refactoring
Leafactor: Improving Energy Efficiency of Android Apps via Automatic Refactoring
 
IFMLEdit.org: Model Driven Rapid Prototyping of Mobile Apps
IFMLEdit.org: Model Driven Rapid Prototyping of Mobile AppsIFMLEdit.org: Model Driven Rapid Prototyping of Mobile Apps
IFMLEdit.org: Model Driven Rapid Prototyping of Mobile Apps
 
Performance-based Guidelines for Energy Efficient Mobile Applications
Performance-based Guidelines for Energy Efficient Mobile ApplicationsPerformance-based Guidelines for Energy Efficient Mobile Applications
Performance-based Guidelines for Energy Efficient Mobile Applications
 
Towards Architectural Styles for Android App Software Product Lines
Towards Architectural Styles for Android App Software Product LinesTowards Architectural Styles for Android App Software Product Lines
Towards Architectural Styles for Android App Software Product Lines
 
CheckDroid: A Tool for Automated Detection of Bad Practices in Android Applic...
CheckDroid: A Tool for Automated Detection of Bad Practices in Android Applic...CheckDroid: A Tool for Automated Detection of Bad Practices in Android Applic...
CheckDroid: A Tool for Automated Detection of Bad Practices in Android Applic...
 
Authoring Tool for Location-based Learning Experiences
Authoring Tool for Location-based Learning ExperiencesAuthoring Tool for Location-based Learning Experiences
Authoring Tool for Location-based Learning Experiences
 
ACCUSE: Helping Users to minimize Android App Privacy Concerns
ACCUSE: Helping Users to minimize Android App Privacy ConcernsACCUSE: Helping Users to minimize Android App Privacy Concerns
ACCUSE: Helping Users to minimize Android App Privacy Concerns
 
Automatically Locating Malicious Packages in Piggybacked Android Apps
Automatically Locating Malicious Packages in Piggybacked Android AppsAutomatically Locating Malicious Packages in Piggybacked Android Apps
Automatically Locating Malicious Packages in Piggybacked Android Apps
 
From reactive toproactive mobile security
From reactive toproactive mobile securityFrom reactive toproactive mobile security
From reactive toproactive mobile security
 
Processing in Mobile Applications: A Case Study
Processing in Mobile Applications: A Case StudyProcessing in Mobile Applications: A Case Study
Processing in Mobile Applications: A Case Study
 

Recently uploaded

Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
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
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
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
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
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
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
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.
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 

Recently uploaded (20)

Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
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
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
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
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
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
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
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...
 
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
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 

Assessing the Impact of Service Workers on the Energy Efficiency of Progressive Web Apps

  • 1. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Ivano Malavolta Giuseppe Procaccianti Paul Noorland Petar Vukmirovic ́ VRIJE UNIVERSITEIT AMSTERDAM Assessing the Impact of Service Workers on the Energy Efficiency of Progressive Web Apps Buenos Aires, 22 May 2017 VRIJE UNIVERSITEIT AMSTERDAM
  • 2. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires BROWSER <html> <head> <script src=” ...” /> </head> <body> ... NATIVE APP 01010101010101101010 1010101011011010 010101010101011101 010101010101011010 PLATFORM APIs Native Web Mobile development strategies Progressive (PWA) BROWSER <html> <head> <script src=” ...” /> </head> <body> ... Service workers
  • 3. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Service worker Implemented in JavaScript Multithreading → it runs in a separate thread w.r.t. the main thread Used for: • push notifications • background operations • content caching – offline functionality
  • 4. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Offline-first experience Web App Service worker response response request Backend Offline cache this.addEventListener('fetch', function(event) { event.respondWith( caches.match(event.request).then(function(response){ return response || fetch(event.request); }); ); });
  • 5. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Goal of this work PWAs + service workers have been advertised as: • performance boosters • network savers • providers of better UX However… How does the use of service workers impact the energy efficiency of PWAs under different network conditions? How does the use of service workers impact the energy efficiency of PWAs?RQ1 RQ2
  • 6. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Subjects selection • Real apps from the pwa.rocks1 repository • Pseudo-random selection – no toy examples – data-driven PWAs (e.g., no videogames) 1 https://pwa.rocks Name Category Total size SW size (loc) Ali Express Shopping 2.1Mb 69 Google I/O 2016 Events 4.2Mb 358 The Washington Post News 4.0Mb 85 Flipkart Shopping 3.8Mb 907 Babe News News 1.2Mb 156 Wiki offline Knowledge 800Kb 1009 The Billings Gazette News 2.1Mb 60
  • 7. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Experiment design Independent variables: Dependent variable: energy consumption of the device in Joules Experiment design: • full 2x2x2 factorial à all possible combinations of treatments • 8 combinations x 7 PWAs x 8 runs à 448 runs • each run executes a typical usage scenario (10-15 gestures) Variable name Treatments SW status <on, off> Android device <high-end, low-end> Network condition <2G, WiFi>
  • 8. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Experiment execution Orchestration script Monkey- runner Trepn profiler Chrome Monkeyrunner 1. HTTP requests impersonating phone 2. HTTP responses (recorded) 9. save collected data 3. Start experiment run 5. start 6. start 7a. HTTP requests as part of the scenario 7b. HTTP responses (possibly altered) 8. collect data Fiddler proxy Hosted PWA ADB OS 4. start scenario run
  • 9. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Results Overall energy consumption across devices Low-end High-end High difference across devices à we use the type of device as blocking factor
  • 10. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Results (RQ1) Results of the ANOVA test on all the factors Factors Sum of squares F value p-value Service workers (SW) 98.15 0.11 0.75 Network conditions 3164.28 3.41 0.07 Device type 67974.31 73.33 <0.05 SW:network 66.93 0.07 0.79 We cannot claim that service workers influence the energy consumption of a PWA running on a mobile device
  • 11. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Results (RQ1) Let’s look at how service workers impact energy consumption on the specific devices... Low-end High-end Difference in energy consumption in high-end device – extremely minimal (0.42 J) The high-end device consumes less energy
  • 12. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Results (RQ2) – network conditions High-end + 2G Low-end + 2G Low-end + WiFi High-end + WiFiPWAs consume less energy on WiFi Same device + same network condition à low impact of SWs
  • 13. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires PWA-specific trends Low-end 2G WiFi High-endDifferent PWAs à different impact of SWs Same PWA à SWs have a different impact under different conditions - - - - + + + + - +
  • 14. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Manual review of SW source code Conjecture = specific implementation of each SW may be a confounding factor No specific trend here Name Listened events Caching Obfuscation/ minification Complexity Ali Express P, N ✓ ✓ 12 Google I/O 2016 I, A, F, M ✓ 9 The Washington Post I, A, P, N ✓ 131 Flipkart I, A, F ✓ ✓ 5 Babe News I, A, F, P, N ✓ 16 Wiki offline I, A, F, S, M, N ✓ ✓ 7 The Billings Gazette I, A, F ✓ 194
  • 15. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Conclusions VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Goal of this work PWAs have been advertised as: • performance boosters • network savers • providers of better UX However… How does the use of service workers impact the energy efficiency of PWAs under different network conditions? How does the use of service workers impact the energy efficiency of PWAs?RQ1 RQ2 VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Results (RQ1) Results of the ANOVA test on all the factors Factors Sum of squares F value p-value Service workers (SW) 98.15 0.11 0.75 Network conditions 3164.28 3.41 0.07 Device type 67974.31 73.33 <0.05 SW:network 66.93 0.07 0.79 We cannot claim that service workers influence the energy consumption of a PWA running on a mobile device VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Backup slides • Accuracy of Trepn profiler: close to 99% – Hoque, Mohammad Ashraful, et al. "Modeling, profiling, and debugging the energy consumption of mobile devices." ACM Computing Surveys (CSUR) 48.3 (2016): 39. VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Experiment execution Orchestration script Monkey- runner Trepn profiler Chrome Monkeyrunner 1. HTTP requests impersonating phone 2. HTTP responses (recorded) 9. save collect data 3. Start experiment run 5. start 6. start 7a. HTTP requests as part of the scenario 7b. HTTP responses (possibly altered) 8. collect data Fiddler proxy Hosted PWA ADB OS 4. start scenario run VRIJE UNIVERSITEIT AMSTERDAM Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires PWA-specific trends Low-end 2G WiFi High-endDifferent PWAs à different impact of SWs Same PWA à different impact of SWs under different conditions - - - - + + + + - +
  • 16. Malavolta et al. – MOBILESoft, 22nd May 2017, Buenos Aires Contact Ivano Malavolta | Assistant professor Vrije Universiteit Amsterdam iivanoo i.malavolta@vu.nl www.ivanomalavolta.com