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%. • Software greenness is critical for smartphones, as high energy consumption negatively impacts their battery life. • Compiler optimizations are generic and are primarily designed with a focus on improving runtime. • Improving application runtime may significantly worsen energy consumption for the studied iOS applications. • When compiling the considered iOS applications, the best optimizations for runtime offer often the worst consumption performance, and vice versa.

Authors

Institutions

Publication Details

Journal
Sustainable Computing Informatics and Systems
Published
2025-07-21
DOI
https://doi.org/10.1016/j.suscom.2025.101166
Citations
1
Primary Topic
Green IT and Sustainability
Type
article
Field-Weighted Citation Impact
0.73
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Does faster mean greener? Runtime and energy trade-offs in iOS applications with compiler optimizations

Patricia Ruiz, José Miguel Aragón-Jurado, Abram Hindle, Karim Ali et al.
1 citations
Sustainable Computing Informatics and Systems
Green IT and Sustainability
0.73
article

Does faster mean greener? Runtime and energy trade-offs in iOS applications with compiler optimizations

Patricia Ruiz, José Miguel Aragón-Jurado, Abram Hindle, Karim Ali, Bernabè Dorronsoro, Abdul Ali Bangash
article en
1 citations

Abstract

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%. • Software greenness is critical for smartphones, as high energy consumption negatively impacts their battery life. • Compiler optimizations are generic and are primarily designed with a focus on improving runtime. • Improving application runtime may significantly worsen energy consumption for the studied iOS applications. • When compiling the considered iOS applications, the best optimizations for runtime offer often the worst consumption performance, and vice versa.

Sustainable Computing Informatics and SystemsVol. 47
New York University Abu Dhabi (AE), University of Alberta (CA), Queen's University (CA), Universidad de Cádiz (ES)
Openalex Percentile: Top 26%
Green IT and Sustainability
0.73
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.