Created
July 18, 2023 17:41
-
-
Save spacedmonkey/fbed3a9b258ae17186b32967b0fa2c93 to your computer and use it in GitHub Desktop.
runner.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for branch in trunk 6.2 6.1 6.0 5.9 | |
do | |
for theme in twentytwentytwo | |
do | |
for url in http://localhost:8889/ | |
do | |
cd wordpress-develop > /dev/null 2>&1; | |
npm run env:start > /dev/null 2>&1; | |
npm run env:cli wp theme activate $theme > /dev/null 2>&1; | |
git checkout $branch > /dev/null 2>&1; | |
cd ../ > /dev/null 2>&1; | |
cd wpp-research/ > /dev/null 2>&1; | |
echo "branch, $branch" | |
echo "theme, $theme" | |
node ./cli/run.mjs benchmark-server-timing --url $url -n 1000 -c 1 --output csv | |
npm run env:stop > /dev/null 2>&1; | |
cd ../ > /dev/null 2>&1; | |
done | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment