Code Monkey home page Code Monkey logo

ma's Introduction

MA (Master's Thesis Project)

Overview

This project is part of a master's thesis focused on measuring the energy consumption of unit tests. The goal is to analyze the energy efficiency of various sorting to determine how useful this approach is, using tools like PAPI and RAPL to gather energy consumption data. The results are then stored and analyzed using a time-series database for further research and comparison across multiple runs.

Features

  • Energy Efficiency Testing: Measures the energy consumption of unit tests using PAPI and RAPL energy readings inside a .Net project.
  • Time-Series Analysis: Stores and analyzes energy metrics over multiple test runs using a time-series database (InfluxDB).
  • Data Plotting: Python Scripts to plot the data from the time-series database.

Technologies

  • Languages: C, C#, Python
  • Frameworks: xUnit for unit testing, .Net for the example application
  • Measurement Tool: PAPI (with RAPL)
  • Time-Series Database: InfluxDB for storing energy consumption metrics

Setup Instructions

First, ensure all requirements are installed and working as expected to run the program. Afterwards, the following setup steps are necessary:
export PAPI_DIR=PATH_TO_PAPI
export PATH=${PAPI_DIR}/bin:$PATH
export LD_LIBRARY_PATH=${PAPI_DIR}/lib:$LD_LIBRARY_PATH
To find the PAPI directory use: sudo find / -name "libpapi.so" 2>/dev/null Afterwards, to run the project use the following commands: cd CpuIntensiveApp
gcc -fPIC -shared -o papi_wrapper.so papi_wrapper.c -I/${PAPI_DIR}/include -L/${PAPI_DIR}/lib -lpapi -lcurl
cd ../CpuIntensiveApp.Tests sudo env LD_LIBRARY_PATH=LIBRARY_PATH dotnet test

Inside the Plot-Data folder, one can find 2 scripts to plot the data stored inside InfluxDb.

Requirements

ma's People

Contributors

fl99kl avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.