This app tests the energy consumption of writing data to a Room database by writing 1MB periodically.
The app writes 1MB of data to the Room database at the specified interval.
For this app we used the following frequencies:
- Low frequency: 3 seconds
- Medium frequency: 2 seconds
- High frequency: 1 second
You can easily change the frequency by opening the project in Android Studio, go to the MainActivity.kt class and look for the sentence
handler.postDelayed(runnable, low_frequency)
.
Here you can change the frequency by simply substituting low_frequency
with medium_frequency
or high_frequency
.
Use phone settings:
- Disable WiFi
- Set screen brightness to its minimum
- Disable location services
Use config.json settings:
enable_systrace_parsing
set to True