=================== Energy Measurements =================== How does the `T2-Project `_ with a microservices architecture compare to the monolithic implementation `T2-Modulith `_ in terms of energy consumption? To answer this question we use different methodologies and tools to measure the energy consumption of both variants under various scenarios. The files used for executing the measurements are located in the ``energy-tests`` folder of the `DevOps `_ repository. The following figure visualizes the basic procedure: .. image:: ../diagrams/c4-measurement-procedure.svg :alt: Overview of the basic procedure of how the energy measurement was executed: Workload generator uses an usage scenario to execute API requests to the system under test and a software-based logger records the energy consumption. **Apache JMeter** is used as the load workload generator. It executes a predefined test plan that consists of multiple HTTP requests to the backend. See page :doc:`JMeter ` for more information. There are currently *two measurement setups* prepared: - :doc:`Green Metrics Tool ` - :doc:`Kepler ` | The **Green Metrics Tool** is used for measure the energy consumption with different usage case scenarios, however without scaling behaviors. | **Kepler** is used for measurements in scenarios with scaling involved. The results are discussed on the page :doc:`Measurement Results `.