arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.06482cs.SEcs.PF
收藏

Web 能量模式:一项探索性研究

Energy Patterns for Web: An Exploratory Study

Pooja Rani, Jonas Zellweger, Veronika Kousadianos, Luis Cruz, Timo Kehrer, Alberto Bacchelli

AI总结:

本研究探索了将移动端能量模式移植到 Web 领域的可行性,通过专家访谈验证了 20 种可移植模式,并利用自动化流水线量化评估了 DRD 和 OOWN 两种模式的能耗效果,发现仅 OOWN 模式显著降低能耗。

摘要:

随着软件产生的能量足迹以惊人的速度增长,理解如何开发高能效应用已成为一种必要。先前的工作已经引入了编码实践目录,也称为能量模式。这些模式目前仅限于移动端或第三方库。在本研究中,我们聚焦于 Web 领域——一个主要的能量消耗来源。首先,我们调查了移动端能量模式是否以及如何能够移植到该领域,并发现 20 种模式可以被移植。然后,我们采访了来自不同公司的六位资深 Web 开发者,以检验这些移植后的模式。大多数开发者对反模式表达了担忧,特别是功能性反模式,并且能够制定指导方针来在源代码中定位这些模式。最后,为了量化 Web 能量模式对能量消耗的影响,我们搭建了一条自动化流水线来评估两种移植后的模式:“动态重试延迟”(DRD)和“仅在必要时打开”(OOWN)。通过这一评估,我们没有发现证据表明 DRD 模式比其反模式消耗更少的能量,而 OOWN 的情况则相反。数据与材料:https://doi.org/10.5281/zenodo.8404487

英文摘要:

As the energy footprint generated by software is increasing at an alarming rate, understanding how to develop energy-efficient applications has become a necessity. Previous work has introduced catalogs of coding practices, also known as energy patterns. These patterns are yet limited to Mobile or third-party libraries. In this study, we focus on the Web domain--a main source of energy consumption. First, we investigated whether and how Mobile energy patterns could be ported to this domain and found that 20 patterns could be ported. Then, we interviewed six expert web developers from different companies to challenge the ported patterns. Most developers expressed concerns for antipatterns, specifically with functional antipatterns, and were able to formulate guidelines to locate these patterns in the source code. Finally, to quantify the effect of Web energy patterns on energy consumption, we set up an automated pipeline to evaluate two ported patterns: 'Dynamic Retry Delay' (DRD) and 'Open Only When Necessary' (OOWN). With this, we found no evidence that the DRD pattern consumes less energy than its antipattern, while the opposite is true for OOWN. Data and Material: https://doi.org/10.5281/zenodo.8404487

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

↑