paper-with-me

홈 › Papers

Static Metrics Are Insufficient: Predicting Java Method Energy Usage with Execution Time

2026-07-07 · Muhammad Imran, Vincenzo Stoico, Ivano Malavolta arxiv

The increasing energy demand of software systems is raising concerns about their environmental impact and associated costs. Reasoning on energy usage early in the development flow has the potential to significantly reduce the overall energy usage of a software system, as it allows developers to make informed design and refactoring decisions before inefficiencies propagate. However, assessing energy usage without repeated profiling and direct measurement is difficult, which limits early reasoning in practice. This study investigates the limits of method-level energy prediction in Java, examining whether static source code metrics complemented with method-level execution time can estimate the energy consumption of Java methods. We profile 2,786 Java methods to extract 33 static features and measure execution time and energy, then train and compare eleven regression models. Our findings show that static source code metrics alone yield poor predictive performance, with average R2 values close to zero. Incorporating execution time as a lightweight dynamic input significantly improves accuracy, raising R2 to as high as 0.46. Execution time, internal method calls, and cyclomatic complexity consistently emerge as the strongest predictors of energy consumption.

📄 PDF Abstract BibTeX arXiv:2607.06124

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Probabilistic energy profiler for statically typed JVM-based programming languages

2025-12-02 · Joel Nyholm, Wojciech Mostowski, Christoph Reichenbach arxiv

Energy consumption is a growing concern in several fields, from mobile devices to large data centers. Developers need detailed data on the energy consumption of their software to mitigate consumption issues. Previous app…

Call Me Maybe: Enhancing JavaScript Call Graph Construction using Graph Neural Networks

2025-06-22 · Masudul Hasan Masud Bhuiyan, Gianluca De Stefano, Giancarlo Pellegrino, Cristian-Alexandru Staicu

Static analysis plays a key role in finding bugs, including security issues. A critical step in static analysis is building accurate call graphs that model function calls in a program. However, due to hard-to-analyze lan…

graph constructionLink Prediction

Replication and Extension of Schnappinger’s Study on Human-level Ordinal Maintainability Prediction Based on Static Code Metrics

2023-06-14 · Evaluation and Assessment in Software Engineering 2023 6 · Sébastien Bertrand, Silvia Ciappelloni, Pierre-Alexandre Favier, Jean-Marc André

As a part of a research project concerning software maintainability assessment in collaboration with the development team, we wanted to explore dissensions between developers and the confounding effect of size. To this e…

Code Classification

Icing on the Cake: Automatic Code Summarization at Ericsson

2024-08-19 · Giriprasad Sridhara, Sujoy Roychowdhury, Sumit Soman, Ranjani H G 외

This paper presents our findings on the automatic summarization of Java methods within Ericsson, a global telecommunications company. We evaluate the performance of an approach called Automatic Semantic Augmentation of P…

Code SummarizationInformation RetrievalLarge Language ModelRetrieval

ScriptNet: Neural Static Analysis for Malicious JavaScript Detection

2019-04-01 · Jack W. Stokes, Rakshit Agrawal, Geoff McDonald, Matthew Hausknecht

Malicious scripts are an important computer infection threat vector in the wild. For web-scale processing, static analysis offers substantial computing efficiencies. We propose the ScriptNet system for neural malicious J…