An Empirical Study of the Performance Impacts of Android Code Smells

Abstract : Android code smells are bad implementation practices withinAndroid applications (or apps) that may lead to poor software quality, in particular in terms of performance. Yet, performance is a main software quality concern in the development of mobile apps. Correcting Android code smells is thus an important activity to increase the performance of mobile apps and to provide the best experience to mobile end-users while considering the limited constraints of mobile devices (e.g., CPU, memory, battery). However, no empirical study has assessed the positive performance impacts of correcting mobile code smells. In this paper, we therefore conduct an empirical study focusing on the individual and combined performance impacts of three Android performance code smells (namely, Internal Getter/Setter, Member Ignoring Method, and HashMap Usage) on two open source Android apps. To perform this study, we use the Paprika toolkit to detect these three code smells in the analyzed apps, and we derive four versions of the apps by correcting each detected smell independently, and all of them. Then, we evaluate the performance of each version on a common user scenario test. In particular, we evaluate the UI and memory performance using the following metrics: frame time, number of delayed frames, memory usage, and number of garbage collection calls. Our results show that correcting these Android code smells effectively improve the UI and memory performance. In particular, we observe an improvement up to 12.4% on UI metrics when correcting Member Ignoring Method and up to 3.6% on memory-related metrics when correcting the three Android code smells. We believe that developers can benefit from these results to guide their refactoring, and thus improvethe quality of their mobile apps.
Type de document :
Communication dans un congrès
Lori Flynn; Paola Inverardi IEEE/ACM International Conference on Mobile Software Engineering and Systems (MOBILESoft'16), May 2016, Austin, Texas, United States. IEEE, 1 (1), 2016, Proceedings of the 3rd IEEE/ACM International Conference on Mobile Software Engineering and Systems. 〈http://mobilesoftconf.org/2016/〉
Liste complète des métadonnées

Littérature citée [25 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/hal-01276904
Contributeur : Romain Rouvoy <>
Soumis le : mardi 29 mars 2016 - 12:09:37
Dernière modification le : mercredi 25 avril 2018 - 15:42:56
Document(s) archivé(s) le : lundi 14 novembre 2016 - 06:30:35

Fichier

hecht-mobilesoft16-preprint.pd...
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : hal-01276904, version 1

Collections

Citation

Geoffrey Hecht, Naouel Moha, Romain Rouvoy. An Empirical Study of the Performance Impacts of Android Code Smells. Lori Flynn; Paola Inverardi IEEE/ACM International Conference on Mobile Software Engineering and Systems (MOBILESoft'16), May 2016, Austin, Texas, United States. IEEE, 1 (1), 2016, Proceedings of the 3rd IEEE/ACM International Conference on Mobile Software Engineering and Systems. 〈http://mobilesoftconf.org/2016/〉. 〈hal-01276904〉

Partager

Métriques

Consultations de la notice

65516

Téléchargements de fichiers

868