Author(s)
Term
4. term
Education
Publication year
2022
Submitted on
2022-06-09
Pages
82 pages
Abstract
Currently there is a focus on energy awareness. This report focuses on performing energy measurements on tests, with the goal of integrating these measurements into a Continuous Integration. We do this by integrating energy measurements into the MSTest framework. Upon investigation we find that measurements are often inaccurate and therefore test the limitations of Intel RAPL with regards to sampling rate. From this knowledge we establish a minimum testing duration. We detect energy differences in Newtonsoft.JSON-framework through unit tests. The first being for Integer serialization and the second being for path traversal. We are able to measure the energy consumption of tests and are able to detect differences in energy consumption and run time between the changes introduced to the code. The contribution is methodology regarding how the changes in energy usage of tests can be measured as well as how smaller tests can be accurately measured using Intel RAPL.
Currently there is a focus on energy awareness. This report focuses on performing energy measurements on tests, with the goal of integrating these measurements into a Continuous Integration. We do this by integrating energy measurements into the MSTest framework. Upon investigation we find that measurements are often inaccurate and therefore test the limitations of Intel RAPL with regards to sampling rate. From this knowledge we establish a minimum testing duration. We detect energy differences in Newtonsoft.JSON-framework through unit tests. The first being for Integer serialization and the second being for path traversal. We are able to measure the energy consumption of tests and are able to detect differences in energy consumption and run time between the changes introduced to the code. The contribution is methodology regarding how the changes in energy usage of tests can be measured as well as how smaller tests can be accurately measured using Intel RAPL.
Documents
Colophon: This page is part of the AAU Student Projects portal, which is run by Aalborg University. Here, you can find and download publicly available bachelor's theses and master's projects from across the university dating from 2008 onwards. Student projects from before 2008 are available in printed form at Aalborg University Library.
If you have any questions about AAU Student Projects or the research registration, dissemination and analysis at Aalborg University, please feel free to contact the VBN team. You can also find more information in the AAU Student Projects FAQs.