一句话:提出 RJoules,为 R 代码片段提供能耗测量,填补 R 语言能耗测量工具空白。
随着数据规模增长,R 已成为数据科学与统计建模常用语言,但现有能耗研究多集中于 Python 和 Java,缺少面向 R 的能耗测量工具。本文提出 RJoules,用于测量 R 代码片段的能耗,以支持能耗感知软件开发。作者在三种不同系统上,将 RJoules 应用于四种机器学习算法,评估其正确性与性能。结果表明该工具可在不同环境下用于 R 代码能耗测量。该工作旨在帮助开发者和实践者在 R 中构建能耗感知系统,并提供公开演示与工件。
With the exponential growth of data, the demand for effective data analysis tools has increased significantly. R language, known for its statistical modeling and data analysis capabilities, has become one of the most popular programming languages among data scientists and researchers. As the importance of energy-aware software systems continues to rise, several studies investigate the impact of source code and different stages of machine learning model training on energy consumption. However, existing studies in this domain primarily focus on programming languages like Python and Java, resulting in a lack of energy measuring tools for other programming languages such as R. To address this gap, we propose “RJoules”, a tool designed to measure the energy consumption of R code snippets. We evaluate the correctness and performance of RJoules by applying it to four machine learning algorithms on three different systems. Our aim is to support developers and practitioners in building energy-aware systems in R. The demonstration of the tool is available at https://youtu.be/yMKFuvAM-DE and related artifacts at https://rishalab.github.io/RJoules/.