Skip to main navigation Skip to search Skip to main content

Energy profiles of Java collections classes

  • Samir Hasan
  • , Zachary King
  • , Munawar Hafiz
  • , Mohammed Sayagh
  • , Bram Adams
  • , Abram Hindle
  • Auburn University
  • Polytechnique Montréal
  • University of Alberta

Research output: Contribution to Book/Report types › Contribution to conference proceedings › peer-review

125 Citations (Scopus)

Abstract

We created detailed profiles of the energy consumed by common operations done on Java List, Map, and Set abstractions. The results show that the alternative data types for these abstractions di.er significantly in terms of energy consumption depending on the operations. For example, an ArrayList consumes less energy than a LinkedList if items are inserted at the middle or at the end, but consumes more energy than a LinkedList if items are inserted at the start of the list. To explain the results, we explored the memory usage and the bytecode executed during an operation. Expensive computation tasks in the analyzed bytecode traces appeared to have an energy impact, but memory usage did not contribute. We evaluated our profiles by using them to selectively replace Collections types used in six applications and libraries. We found that choosing the wrong Collections type, as indicated by our profiles, can cost even 300% more energy than the most efficient choice. Our work shows that the usage context of a data structure and our measured energy profiles can be used to decide between alternative Collections implementations.

Original languageEnglish
Title of host publicationProceedings - 2016 IEEE/ACM 38th IEEE International Conference on Software Engineering Companion, ICSE 2016
PublisherIEEE Computer Society
Pages225-236
Number of pages12
ISBN (Electronic)9781450339001, 9781450342056
DOIs
Publication statusPublished - 14 May 2016
Externally publishedYes
Event2016 IEEE/ACM 38th IEEE International Conference on Software Engineering, ICSE 2016 - Austin, United States
Duration: 14 May 2016 → 22 May 2016

Publication series

NameProceedings - International Conference on Software Engineering
Volume14-22-May-2016
ISSN (Print)0270-5257

Conference

Conference2016 IEEE/ACM 38th IEEE International Conference on Software Engineering, ICSE 2016
Country/TerritoryUnited States
CityAustin
Period14/05/16 → 22/05/16

Keywords

  • API
  • Collections
  • Energy Profile
  • Java

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'Energy profiles of Java collections classes'. These topics are generated from the title and abstract of the publication. Together, they form a unique fingerprint.

Cite this