CPPJoules: An Energy Measurement Tool for C++

Read full text
Authors: S Shivadharshan, P Akilesh, Rajrupa Chattaraj, Sridhar Chimalakonda
Cited by: 1
References: 16

Abstract

With the increasing complexity of modern software and the demand for high performance, energy consumption has become a critical factor for developers and researchers. While much of the research community focuses on evaluating the energy consumption of machine learning and artificial intelligence systems, often implemented in Python, a gap exists in tools and frameworks for measuring energy usage in other programming languages. C++, in particular, remains a foundational language for a wide range of software applications, from game development to parallel programming frameworks, yet lacks dedicated energy measurement solutions. To address this, we have developed CPPJoules, a tool built on top of Intel-RAPL to measure the energy consumption of C++ code snippets. We have evaluated the tool by measuring the energy consumption of six standard computational tasks from the Rosetta Code repository. The demonstration of the tool is available at https://youtu.be/6EpoE5COyGI and related artifacts are open-sourced at https://rishalab.github.io/CPPJoules/.

Fields of Study & Subjects

Atomic and Subatomic Physics Research Nuclear Physics and Applications Particle Detector Development and Performance

Publication details

Journal / source
Proceedings of the 2026 34th IEEE/ACM International Conference on Program Comprehension
Publisher
ACM
Pages
473–477
Publication date
12 April 2026
Language
EN