Energy Profiles of Java']Java Collections Classes

被引:90
作者
Hasan, Samir [1 ]
King, Zachary [1 ]
Hafiz, Munawar [1 ]
Sayagh, Mohammed [2 ]
Adams, Bram [2 ]
Hindle, Abram [3 ]
机构
[1] Auburn Univ, Comp Sci & Software Engn, Auburn, AL 36849 USA
[2] Polytech Montreal, MCIS, Montreal, PQ, Canada
[3] Univ Alberta, Dept Comp Sci, Edmonton, AB, Canada
来源
2016 IEEE/ACM 38TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE) | 2016年
基金
加拿大自然科学与工程研究理事会;
关键词
Energy Profile; Collections; API; !text type='Java']Java[!/text; IMPACT;
D O I
10.1145/2884781.2884869
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 differ 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.
引用
收藏
页码:225 / 236
页数:12
相关论文
共 43 条
[1]  
Abtahizadeh S. A., 2015, P 34 IEEE INT PERF C
[2]  
Aggarwal K., 2014, PRESS 2014 C CTR ADV
[3]  
Amsel Nadine., 2010, Proceedings, CHI EA, P3337, DOI DOI 10.1145/1753846.1753981
[4]  
[Anonymous], 2011, P 10 ACM WORKSH HOT
[5]  
[Anonymous], 2014, 11 WORKING C MINING
[6]  
[Anonymous], ESEM 14
[7]  
Brooks D, 2000, PROCEEDING OF THE 27TH INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE, P83, DOI [10.1145/342001.339657, 10.1109/ISCA.2000.854380]
[8]  
Bunse C, 2009, ICSOFT 2009: PROCEEDINGS OF THE 4TH INTERNATIONAL CONFERENCE ON SOFTWARE AND DATA TECHNOLOGIES, VOL 2, P199
[9]   Exploring the Energy Consumption of Data Sorting Algorithms in Embedded and Mobile Environments [J].
Bunse, Christian ;
Hoepfner, Hagen ;
Mansour, Essam ;
Roychoudhury, Suman .
MDM: 2009 10TH INTERNATIONAL CONFERENCE ON MOBILE DATA MANAGEMENT, 2009, :600-607
[10]  
Bunse Christian., 2013, EASED@ BUIS, P7