更快就意味着更环保吗?使用编译器优化的iOS应用程序中的运行时和能量权衡

IF 5.7 3区 计算机科学 Q1 COMPUTER SCIENCE, HARDWARE & ARCHITECTURE
José Miguel Aragón-Jurado , Abdul Ali Bangash , Bernabé Dorronsoro , Karim Ali , Abram Hindle , Patricia Ruiz
{"title":"更快就意味着更环保吗?使用编译器优化的iOS应用程序中的运行时和能量权衡","authors":"José Miguel Aragón-Jurado ,&nbsp;Abdul Ali Bangash ,&nbsp;Bernabé Dorronsoro ,&nbsp;Karim Ali ,&nbsp;Abram Hindle ,&nbsp;Patricia Ruiz","doi":"10.1016/j.suscom.2025.101166","DOIUrl":null,"url":null,"abstract":"<div><div>Smartphones outnumber people nowadays, requiring efficient energy management. High application energy use leads to faster battery drain and frequent recharging, negatively impacting both battery life and the environment. This cycle also contributes to rising electronic and chemical waste due to discarded mobile phone batteries. Compiler optimization flags may play a crucial role in mitigating these issues by optimizing software performance. However, there has been little research on examining how compiler optimization flags impact the energy consumption of smartphone applications. This work presents an empirical study on the effect of the most aggressive iOS compiler optimizations on runtime, power consumption, and energy consumption across six different iOS applications. For each application, we developed a benchmark focused on the specified category we aimed to study. Our results show that reducing application runtime does not always directly correlate with improved energy consumption. In fact, we observed that optimizations aimed at enhancing runtime performance often come at an energy cost in the applications studied, highlighting a trade-off between runtime and energy consumption. For example, we found that using <span>-Ounchecked</span> in Swift, combined with <span>-Oz</span> from LLVM in the GhostRun video game, increases energy consumption by 34%, despite improving runtime performance by 9%.</div></div>","PeriodicalId":48686,"journal":{"name":"Sustainable Computing-Informatics & Systems","volume":"47 ","pages":"Article 101166"},"PeriodicalIF":5.7000,"publicationDate":"2025-07-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Does faster mean greener? Runtime and energy trade-offs in iOS applications with compiler optimizations\",\"authors\":\"José Miguel Aragón-Jurado ,&nbsp;Abdul Ali Bangash ,&nbsp;Bernabé Dorronsoro ,&nbsp;Karim Ali ,&nbsp;Abram Hindle ,&nbsp;Patricia Ruiz\",\"doi\":\"10.1016/j.suscom.2025.101166\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Smartphones outnumber people nowadays, requiring efficient energy management. High application energy use leads to faster battery drain and frequent recharging, negatively impacting both battery life and the environment. This cycle also contributes to rising electronic and chemical waste due to discarded mobile phone batteries. Compiler optimization flags may play a crucial role in mitigating these issues by optimizing software performance. However, there has been little research on examining how compiler optimization flags impact the energy consumption of smartphone applications. This work presents an empirical study on the effect of the most aggressive iOS compiler optimizations on runtime, power consumption, and energy consumption across six different iOS applications. For each application, we developed a benchmark focused on the specified category we aimed to study. Our results show that reducing application runtime does not always directly correlate with improved energy consumption. In fact, we observed that optimizations aimed at enhancing runtime performance often come at an energy cost in the applications studied, highlighting a trade-off between runtime and energy consumption. For example, we found that using <span>-Ounchecked</span> in Swift, combined with <span>-Oz</span> from LLVM in the GhostRun video game, increases energy consumption by 34%, despite improving runtime performance by 9%.</div></div>\",\"PeriodicalId\":48686,\"journal\":{\"name\":\"Sustainable Computing-Informatics & Systems\",\"volume\":\"47 \",\"pages\":\"Article 101166\"},\"PeriodicalIF\":5.7000,\"publicationDate\":\"2025-07-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Sustainable Computing-Informatics & Systems\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S2210537925000873\",\"RegionNum\":3,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Sustainable Computing-Informatics & Systems","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2210537925000873","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
引用次数: 0

摘要

如今,智能手机的数量超过了人口数量,这就需要高效的能源管理。高应用能耗导致电池消耗更快,充电频繁,对电池寿命和环境都有负面影响。这种循环也导致了废弃手机电池造成的电子和化学废物的增加。编译器优化标志可以通过优化软件性能来缓解这些问题。然而,很少有关于编译器优化标志如何影响智能手机应用程序能耗的研究。本文对六个不同的iOS应用程序中最激进的iOS编译器优化对运行时、功耗和能耗的影响进行了实证研究。对于每个应用程序,我们都针对要研究的特定类别开发了基准测试。我们的结果表明,减少应用程序运行时并不总是与改进的能耗直接相关。事实上,我们观察到,在所研究的应用程序中,旨在增强运行时性能的优化通常是以能源成本为代价的,这突出了运行时和能源消耗之间的权衡。例如,我们发现在Swift中使用-Ounchecked,在ghostrn视频游戏中使用LLVM中的-Oz,尽管运行时性能提高了9%,但能耗增加了34%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Does faster mean greener? Runtime and energy trade-offs in iOS applications with compiler optimizations
Smartphones outnumber people nowadays, requiring efficient energy management. High application energy use leads to faster battery drain and frequent recharging, negatively impacting both battery life and the environment. This cycle also contributes to rising electronic and chemical waste due to discarded mobile phone batteries. Compiler optimization flags may play a crucial role in mitigating these issues by optimizing software performance. However, there has been little research on examining how compiler optimization flags impact the energy consumption of smartphone applications. This work presents an empirical study on the effect of the most aggressive iOS compiler optimizations on runtime, power consumption, and energy consumption across six different iOS applications. For each application, we developed a benchmark focused on the specified category we aimed to study. Our results show that reducing application runtime does not always directly correlate with improved energy consumption. In fact, we observed that optimizations aimed at enhancing runtime performance often come at an energy cost in the applications studied, highlighting a trade-off between runtime and energy consumption. For example, we found that using -Ounchecked in Swift, combined with -Oz from LLVM in the GhostRun video game, increases energy consumption by 34%, despite improving runtime performance by 9%.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Sustainable Computing-Informatics & Systems
Sustainable Computing-Informatics & Systems COMPUTER SCIENCE, HARDWARE & ARCHITECTUREC-COMPUTER SCIENCE, INFORMATION SYSTEMS
CiteScore
10.70
自引率
4.40%
发文量
142
期刊介绍: Sustainable computing is a rapidly expanding research area spanning the fields of computer science and engineering, electrical engineering as well as other engineering disciplines. The aim of Sustainable Computing: Informatics and Systems (SUSCOM) is to publish the myriad research findings related to energy-aware and thermal-aware management of computing resource. Equally important is a spectrum of related research issues such as applications of computing that can have ecological and societal impacts. SUSCOM publishes original and timely research papers and survey articles in current areas of power, energy, temperature, and environment related research areas of current importance to readers. SUSCOM has an editorial board comprising prominent researchers from around the world and selects competitively evaluated peer-reviewed papers.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信