A framework to measure and compare power consumption of different web browsers during typical usage scenarios. Created for Lewis University's Software Architecture class.
This suite evaluates browser energy efficiency across multiple test scenarios, providing data that can impact battery life and user experience.
Testing on a Microsoft Surface 7 running Ubuntu showed:
- Vivaldi: Best efficiency (78.2/100)
- Brave: Second best (68.2/100)
- Chrome: Unexpectedly lowest (22.6/100)
- Switching browsers could extend battery life by up to 17%
- Video Playback: Video streaming efficiency
- CSS Animation: Dynamic web content rendering
- JavaScript Computation: CPU-intensive tasks
- Static Webpage: Simple browsing baseline
- Multiple Tabs: Multiple tabs efficiency
- Linux system with battery
- Python 3.9+
- Required libraries: matplotlib, seaborn, numpy, pandas
- Browsers to test
- Clone repository
- Install requirements:
pip install -r requirements.txt - Update paths in
config.py
Run all tests:
python main.py
With options:
python main.py --duration 60 --browsers firefox chrome --test-types video webpage --iterations 3
Options:
--duration: Test duration in seconds--browsers: Specific browsers to test--test-types: Test types to run--url: URL for webpage tests--iterations: Number of test iterations