arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.19222cs.SEcs.PF
收藏

能效软件开发:针对Stack Overflow的多维度实证分析

Energy-Efficient Software Development: A Multi-dimensional Empirical Analysis of Stack Overflow

University of Waterloo(滑铁卢大学);Queen's University(女王大学)

Bihui Jin, Heng Li, Pengyu Nie, Ying Zou

AI总结:

针对现有开发者能耗认知调研样本量有限的不足,本研究通过分析1193条Stack Overflow能耗相关问题开展多维度实证分析,揭示了能效开发中的核心痛点并提出分层优化启示。

摘要:

软件应用的能耗已成为开发者在日常开发流程中需要考量的关键问题。此前的研究仅调研了数量有限的开发者,以了解他们对能耗问题的看法。本研究通过分析精心整理的、包含1193条涉及能耗问题的Stack Overflow(SO)问题数据集,对上述研究形成补充,这些问题捕捉了实践场景中真实存在的能耗相关挑战。为理解从业者的认知,我们调研了这些问题背后的提问意图、语义主题以及关联技术(例如编程语言)。研究结果显示:(i)最普遍的能耗主题是平衡定位功能的使用;(ii)高效处理数据的难度尤为突出,这类问题的响应时间最长;(iii)从业者提问主要是为了理解与能耗相关的概念或API;(iv)在能效软件开发过程中,从业者会关注硬件、操作系统、编程语言等多个层面的能耗问题。本研究的成果提升了人们对能耗影响软件开发的认知,我们还为能耗感知软件开发过程中不同层面的能耗优化(例如优化API使用或硬件访问)提炼了可落地的实践启示。

英文摘要:

Energy consumption of software applications has emerged as a critical concern for developers to contemplate in their daily development processes. Previous studies have surveyed a limited number of developers to understand their viewpoints on energy consumption. We complement these studies by analyzing a meticulously curated dataset of 1,193 Stack Overflow (SO) questions concerning energy consumption. These questions capture real-world energy-related challenges in practice. To understand practitioners' perceptions, we investigate the intentions behind these questions, semantic topics, and associated technologies (e.g., programming languages). Our results reveal that: (i) the most prevalent energy consumption topic is about balancing Positioning usage; (ii) efficiently handling data is particularly challenging, with these questions having the longest response times; (iii) practitioners primarily ask questions to understand a concept or API related to energy consumption; and (iv) practitioners are concerned about energy consumption across multiple levels-hardware, operating systems, and programming languages-during energy efficient software development. Our findings raise awareness about energy consumption's impact on software development. We also derive actionable implications for energy optimization at different levels (e.g., optimizing API usage or hardware accesses) during energy-aware software development.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑