Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spacedmonkey/fbed3a9b258ae17186b32967b0fa2c93 to your computer and use it in GitHub Desktop.
Save spacedmonkey/fbed3a9b258ae17186b32967b0fa2c93 to your computer and use it in GitHub Desktop.
runner.sh
#!/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