Skip to content

kbaran1998/energy-comsumption-project

Repository files navigation

energy-comsumption-project

Energy consumption project for Frontend JavaScript frameworks (React, Vue, Angular, Svelte).

Set up on your machine

  1. Make sure you have python and pip installed (and download Power Gadget 3.6).
python3 -m pip install --user --upgrade pip
python3 -m pip --version
python3 -m pip install --user virtualenv
  1. Create and activate virtual environment (preferably in Git Bash).
python3 -m venv venv
source venv/Scripts/activate

OR

python3 -m venv venv
.\venv\Scripts\activate
  1. Install all packages in requirements.txt with pip. If you need to use a python package, put it there.
pip install -r requirements.txt
  1. Download the necessary selenium webdrivers (make sure you also have "chrome", "firefox", "ie", "edge" and "opera" browsers downloaded on your machine).
python drivers/driver_downloader.py
  1. Create a configurations.ini and copy the following configurations (of course replace the place holder __your_path__ with your actual paths to the downloaded drivers):
[DRIVER_PATHS]
EDGE_EXE_PATH=__your_path__\\.wdm\\drivers\\edgedriver\\win64\\98.0.1108.62\\msedgedriver.exe
OPERA_EXE_PATH=__your_path__\\.wdm\\drivers\\operadriver\\win64\\v.98.0.4758.82\\operadriver_win64\\operadriver.exe
CHROME_EXE_PATH=__your_path__\\.wdm\\drivers\\chromedriver\\win32\\98.0.4758.102\\chromedriver.exe
FIREFOX_EXE_PATH=__your_path__\\.wdm\\drivers\\geckodriver\\win64\\v0.30.0\\geckodriver.exe
IE_EXE_PATH=__your_path__\\.wdm\\drivers\\IEDriverServer\\win64\\4.0.0\\IEDriverServer.exe
  1. To run the experiments run scripts:
python experiment_run.py
  1. To get parsed csv files within new generated directory out and get results for each framework and website run:
python parsers/parse.py
  1. Once you have finished working within the virtual environment, you can deactivate it.
deactivate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages