On the Energy Cost of Static Analysis Precision

An Empirical Study of SpotBugs Effort Levels

Conference Paper (2026)
Author(s)

Sophie Van Der Linden (Student TU Delft)

Xutong Liu (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Andy Zaidman (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Carolin Brandt (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Department
Software Technology
DOI related publication
https://doi.org/10.1145/3803437.3805601 Final published version
More Info
expand_more
Publication Year
2026
Language
English
Department
Software Technology
Pages (from-to)
1539-1543
Publisher
ACM
ISBN (electronic)
9798400726361
Event
ACM International Conference on the Foundations of Software Engineering, FSE 2026 (2026-07-05 - 2026-07-09), Montreal, Canada
Page Views
64
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Static analysis tools are commonly used in continuous integration (CI) pipelines to detect potential defects without executing the program. Such tools offer configuration options that control how thoroughly the code is analyzed. In SpotBugs, this is done through an effort level setting (Min, Less, More, Max), where higher levels enable deeper and more computationally intensive analysis. In this paper, we study how these effort levels affect energy consumption and analysis results. Our results show that higher effort levels generally consume more energy, which fits our intuition. However, the increase is not uniform: deeper static analysis comes with additional energy cost, but the marginal benefit of higher effort levels may be limited in some cases. This suggests that static analysis tool designers could make energy consumption more transparent and provide configuration options that explicitly expose trade-offs between analysis depth and energy cost.