Coder Social home page Coder Social logo

browser-efficiency-test-binaries's Introduction

Тестирование энергоэффективности браузеров

Методология

Методология измерения энергопотребления

Выполнение теста

  1. В схеме электропитания Windows, в дополнительных настройках, отключить "Уведомление о низком заряде батареи"("Low battery notification")
  2. Установить в систему сертификат WebPageReplay\ca.crt в хранилище "Доверенные корневые центры сертификации"("Trusted Root Certification Authorities")
  3. Добавить в файл C:\Windows\System32\drivers\etc\hosts содержимое файла WebPageReplay\hosts
  4. Проверить что в системе свободны TCP порты 80, 443, 8080-8090.
  5. Открыть CMD.
  6. Установить переменные окружения, которые определят путь до исполняемого файла браузера, например:
set OPERA_PATH=C:\Program Files (x86)\Opera\launcher.exe
set YB_PATH=C:\Users\%USERNAME%\AppData\Local\Yandex\YandexBrowser\Application\browser.exe
set CHROME_PATH=C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  1. Отключить все переферийные устройства от ноутбука: мыши, флешки и другие.

  2. Уменьшить яркость матрицы до минимума.

  3. Отключить ноутбук от питания

  4. Запустить тест:

    1. Чтобы запустить тест Яндекс.Браузер без режима энергосбережения: BrowserEfficiencyTest.exe -b yabro -infinite-loop -i 1 -w benchmark_v3_8 -rp .\Results\benchmark_v3_8_yandex_default -broargs "--disable-features=energy-saving --force-fieldtrials=crp/0

    2. Чтобы запустить тест Яндекс.Браузер в режиме энергосбережения: BrowserEfficiencyTest.exe -b yabro -infinite-loop -i 1 -w benchmark_v3_8 -rp .\Results\benchmark_v3_8_yandex_energy_saving -broargs "--enable-features=energy-saving<x,force-energy-saving --force-fieldtrials=crp/0/x/1 --force-fieldtrial-params=x.1:screen_refresh_rate/30/ui_refresh_rate/30/fps_progress_reduce_to/2/loading_progress/true/subresource_filter/false/block_animated_frames/false/active_to_background_tab_time_in_min/1/wake_ups_per_second/0.0/wake_up_duration_ms/0/cpu_budget/0.00/max_budget/300/max_delay/0/initial_budget/0.0/min_budget_level_to_run_sec/0"

    3. Чтобы запустить тест Chrome: BrowserEfficiencyTest.exe -b chrome -infinite-loop -i 1 -w benchmark_v3_8 -rp .\Results\benchmark_v3_8_chrome

    4. Чтобы запустить тест Opera: BrowserEfficiencyTest.exe -b opera -infinite-loop -i 1 -w benchmark_v3_8 -rp .\Results\benchmark_v3_8_opera

    5. Чтобы запустить тест Firefox: BrowserEfficiencyTest.exe -b firefox -infinite-loop -i 1 -w benchmark_v3_8 -rp .\Results\benchmark_v3_8_firefox

    6. Чтобы запустить тест MS Edge: BrowserEfficiencyTest.exe -b edge -infinite-loop -i 1 -w benchmark_v3_8 -rp .\Results\benchmark_v3_8_edge

  5. Тест идет до полной разрядки батареи и полного выключения ноутбука

  6. После разрядки батареи, включить ноутбук

  7. Лог времени работы теста будет в файле .\Results\benchmark_v3_8_<browser>\heartbeat.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.