- Linux OS (Tested on Ubuntu 22.04)
- Python3.10
- Make sure you install CUDA, cuDNN, and TensorFlow.
- Run
git clone https://github.com/tensorflow/benchmarks.git
inside the root directory to install the perfzero benchmark. - Install powerstat using
sudo apt install powerstat
- Run
pip install -r requirements.txt
to install the remainder of dependencies - Run with
python3 energyprofile.py <#experiments>
which runs #experiments * 3 (balanced, power-saving, performance) times with a default of 5 and a minimum of 1.
- Close all user processes.
- Disable all notifications.
- Disable auto screen brightness adjustment.
- Turn down screen brightness to the lowest level
- Make sure the laptop is connected to a power supply.
- Unplug any external devices (USB/Screen/Drives/etc..).
- Take external factors into account (room temperature adjustments around sunset/sunrise).
- Make sure the laptop is placed in the same location on the same surface for the entire duration of the measurement.