一句话:提出并实现 COBJoules,首个用于测量和分析 COBOL 遗留系统能耗的工具之一。
AI 普及推高软件能耗,但已有研究多集中于 Python 等机器学习系统,遗留系统尤其 COBOL 的能耗长期缺乏测量工具与方法。本文指出这一被忽视的方向,并面向金融、政府、医疗等仍依赖 COBOL 的关键场景,提出 COBJoules——首批用于测量和分析 COBOL 环境能耗的工具之一。工具基于 Rosetta Code 的基准任务进行评估,展示了其量化 COBOL 能耗模式的有效性。作者主张,在可持续性与运营成本压力下,为遗留代码库建立专用能耗度量,是优化与维护决策的重要基础。工具及工件已开源。
The increasing integration of artificial intelligence (AI) into everyday tasks has driven demand for high-performance software to an unprecedented level. This has resulted in an exponential growth in energy consumption by software systems. While extensive research has been done focusing on measuring and evaluating the energy consumption of machine learning and AI systems, particularly in Python, a significant gap remains in tools and methodologies for assessing energy usage in legacy systems. Legacy software systems continue to underpin critical operations across industries such as finance, government, and healthcare, yet their energy consumption remains largely unmeasured and unoptimized. As organizations face mounting pressure to improve sustainability and reduce operational costs, the lack of dedicated tools for quantifying the energy usage of legacy codebases, particularly those written in languages such as COBOL, has become a significant barrier. In this paper, we discuss this critical challenge and specifically focus on the legacy language of COBOL. In particular, we present COBJoules as one of the first tools designed to measure and analyze energy consumption in COBOL environments. The tool was evaluated using benchmark tasks from Rosetta Code, demonstrating its effectiveness in quantifying energy consumption patterns for COBOL. The tool and all related artifacts can be found at https://github.com/rishalab/COBJoules.