GreenPy: Evaluating Application-Level Energy Efficiency in Python for Green Computing

Author:

Reya Nurzihan Fatema,Ahmed Abtahi,Zaman Tashfia,Islam Md. MotaharulORCID

Abstract

The increased use of software applications has resulted in a surge in energy demand, particularly in data centers and IT infrastructures. As global energy consumption is projected to surpass supply by 2030, the need to optimize energy consumption in programming has become imperative. Our study explores the energy efficiency of various coding patterns and techniques in Python, with the objective of guiding programmers to a more informed and energy-conscious coding practices. The research investigates the energy consumption of a comprehensive range of topics, including data initialization, access patterns, structures, string formatting, sorting algorithms, dynamic programming and performance comparisons between NumPy and Pandas, and personal computers versus cloud computing. The major findings of our research include the advantages of using efficient data structures, the benefits of dynamic programming in certain scenarios that saves up to 0.128J of energy, and the energy efficiency of NumPy over Pandas for numerical calculations. Additionally, the study also shows that assignment operator, sequential read, sequential write and string concatenation are 2.2 times, 1.05 times, 1.3 times and 1.01 times more energy-efficient choices, respectively, compared to their alternatives for data initialization, data access patterns, and string formatting. Our findings offer guidance for developers to optimize code for energy efficiency and inspire sustainable software development practices, contributing to a greener computing industry.

Publisher

International Association for Educators and Researchers (IAER)

Subject

Electrical and Electronic Engineering,General Computer Science

Reference23 articles.

1. Paolo Ciancarini, Shokhista Ergasheva, Zamira Kholmatova, Artem Kruglov, Giancarlo Succi et al., “Analysis of energy consumption of software development process entities”, Electronics, EISSN: 2079-9292, p. 1, Vol. 9, No. 10, 14th October 2020, Published by Multidisciplinary Digital Publishing Institute (MDPI), DOI:10.3390/electronics9101678, Available: https://www.mdpi.com/2079-9292/9/10/1678.

2. Luis Cruz and Rui Abreu, “Performance-based guidelines for energy efficient mobile applications”, in Proceedings of the IEEE/ACM 4th International Conference on Mobile Software Engineering and Systems (MOBILESoft), 22-23 May 2017, Buenos Aires, Argentina, E-ISBN: 978-1-5386-2669-6, Print on Demand (PoD) ISBN: 978-1-5386-2670-2, DOI: 10.1109/MOBILESoft.2017.19, pp. 46-57, Published by Institute of Electrical and Electronics Engineers (IEEE), Available: https://ieeexplore.ieee.org/abstract/document/7972717.

3. Fangwei Ding, Feng Xia, Wei Zhang, Xuhai Zhao and Chengchuan Ma, “Monitoring Energy Consumption of Smartphones”, in Proceedings of the International Conference on Internet of Things and 4th International Conference on Cyber, Physical and Social Computing, 19-22 October 2011, Dalian, China, Print ISBN: 978-1-4577-1976-9, DOI: 10.1109/iThings/CPSCom.2011.122, pp. 610–613, Published by Institute of Electrical and Electronics Engineers (IEEE), Available: https://ieeexplore.ieee.org/abstract/document/6142190.

4. Pawel Dymora and Andrzej Paszkiewicz, “Performance Analysis of Selected Programming Languages in the Context of Supporting Decision-Making Processes for Industry 4.0”, Applied Sciences, EISSN 2076-3417, p. 8521, Vol. 10, No. 23, 28th November 2020, Published by Multidisciplinary Digital Publishing Institute (MDPI), DOI:10.3390/app10238521, Available: https://www.mdpi.com/2076-3417/10/23/8521.

5. Marco Couto, Rui Pereira, Francisco Ribeiro, Rui Rua and Jo ̃ao Saraiva, “Towards a Green Ranking for Programming Languages”, in Proceedings of the 21st Brazilian Symposium on Programming Languages, 21st September 2017, CE, Fortaleza, Brazil, ISBN: 9781450353892, pp. 1–8, Published by Association for Computing Machinery (ACM), DOI: 10.1145/3125374.3125382, Available: https://dl.acm.org/doi/abs/10.1145/3125374.3125382.

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Python Library Dynamics: A Study of Patterns and Project Complexity on GitHub;2024 International Conference on Smart Computing, IoT and Machine Learning (SIML);2024-06-06

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3