2024-06-27 11:48:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
if [ -d performance_testing ]; then
|
|
|
|
rm -rf performance_testing
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir performance_testing
|
|
|
|
cd performance_testing
|
|
|
|
git init
|
|
|
|
git branch -m main
|
|
|
|
git remote add origin $1
|
2024-06-27 17:26:06 +00:00
|
|
|
git fetch origin
|
|
|
|
git merge
|
2024-06-27 11:48:54 +00:00
|
|
|
dd if=/dev/urandom of=sample0 bs=1M count=1
|
|
|
|
git add .
|
|
|
|
git commit -m"first 1M sample created"
|
2024-06-27 17:26:06 +00:00
|
|
|
|
2024-06-27 11:48:54 +00:00
|
|
|
git push -u origin main
|
|
|
|
git tag start
|
|
|
|
dd if=/dev/urandom of=sample1 bs=1M count=1
|
|
|
|
git add sample1
|
|
|
|
git commit -m"second 1M sample created"
|
|
|
|
git push
|
|
|
|
git branch secondary
|
|
|
|
git checkout secondary
|
|
|
|
dd if=/dev/urandom of=sample2 bs=500K count=1
|
|
|
|
git add sample2
|
|
|
|
git commit -m"first 500K sample created in branch secondary"
|
2024-06-27 17:26:06 +00:00
|
|
|
git push -u origin secondary
|
2024-06-27 11:48:54 +00:00
|
|
|
git checkout main
|
|
|
|
dd if=/dev/urandom of=sample3 bs=1M count=1
|
|
|
|
git add sample3
|
|
|
|
git commit -m"third 1M sample created"
|
|
|
|
git push
|
|
|
|
dd if=/dev/urandom of=sample4 bs=5M count=1
|
|
|
|
git add sample4
|
|
|
|
git commit -m"first 5M sample created"
|
|
|
|
git push
|
|
|
|
rm sample4
|
|
|
|
git add sample4
|
|
|
|
git commit -m"sample4 deleted"
|
|
|
|
git push
|
|
|
|
|
|
|
|
#optional: tests to check if it has initialized correctly
|