An empirical study of metric-based comparisons of software libraries

Fernando López De La Mora, Sarah Nadi

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

BACKGROUND: Software libraries provide a set of reusable functionality, which helps developers write code in a systematic and timely manner. However, selecting the appropriate library to use is often not a trivial task. AIMS: In this paper, we investigate the usefulness of software metrics in helping developers choose libraries. Different developers care about different aspects of a library and two developers looking for a library in a given domain may not necessarily choose the same library. Thus, instead of directly recommending a library to use, we provide developers with a metric-based comparison of libraries in the same domain to empower them with the information they need to make an informed decision. METHOD: We use software data analytics from several sources of information to create quantifiable metric-based comparisons of software libraries. For evaluation, we select 34 open-source Java libraries from 10 popular domains and extract nine metrics related to these libraries. We then conduct a survey of 61 developers to evaluate whether our proposed metric-based comparison is useful, and to understand which metrics developers care about. RESULTS: Our results show that developers find that the proposed technique provides useful information when selecting libraries. We observe that developers care the most about metrics related to the popularity, security, and performance of libraries. We also find that the usefulness of some metrics may vary according to the domain. CONCLUSIONS: Our survey results showed that our proposed technique is useful. We are currently building a public website for metric-based library comparisons, while incorporating the feedback we obtained from our survey participants.

Original languageEnglish (US)
Title of host publicationPROMISE 2018 - 14th International Conference Predictive Models and Data Analytics in Software Engineering
PublisherAssociation for Computing Machinery
Pages22-31
Number of pages10
ISBN (Electronic)9781450365932
DOIs
StatePublished - Oct 10 2018
Event14th International Conference Predictive Models and Data Analytics in Software Engineering, PROMISE 2018 - Oulu, Finland
Duration: Oct 10 2018Oct 10 2018

Publication series

NameACM International Conference Proceeding Series

Conference

Conference14th International Conference Predictive Models and Data Analytics in Software Engineering, PROMISE 2018
Country/TerritoryFinland
CityOulu
Period10/10/1810/10/18

ASJC Scopus subject areas

  • Software
  • Human-Computer Interaction
  • Computer Vision and Pattern Recognition
  • Computer Networks and Communications

Fingerprint

Dive into the research topics of 'An empirical study of metric-based comparisons of software libraries'. Together they form a unique fingerprint.

Cite this