mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-11-29 12:46:32 +03:00
863 B
863 B
Running Benchmarks
The built-in benchmarks use selenium webdriver, which requires a headless browser for Chrome, Firefox, and Safari.
The default benchmarks just run in chrome, so
As mentioned here: https://www.selenium.dev/selenium/docs/api/javascript/module/selenium-webdriver/chrome.html
You'll need to install the latest ChromeDriver release and ensure it's on your PATH: https://chromedriver.chromium.org/downloads
For me(on a Mac) this means:
- Downloading chromedriver
- The version needs to match the
chromedriver
version already specified inpackage.json
. Right now it's 91.
- The version needs to match the
- In finder, right clicking it and opening it in terminal. This is to convince Apple that you trust this thing.
- Close that terminal
- then
cp Downloads/chromedriver /usr/local/bin/chromedriver
You should be good to run npm run run-benchmarks
!