-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
53 lines (39 loc) · 897 Bytes
/
Copy pathrun.sh
File metadata and controls
53 lines (39 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -ex
for project in symfony7demo laravel12 wordpress68; do
systemctl restart php8.5-fpm
systemctl restart php8.4-fpm
systemctl restart php8.3-fpm
systemctl restart php8.2-fpm
systemctl restart php7.4-fpm
case $project in
symfony7demo | laravel12)
versions="82 83 84 85"
;;
wordpress68)
versions="74 82 83 84 85"
;;
*)
echo "Bug"
exit 1
;;
esac
for v in $versions; do
hostname="$project-$v"
case $project in
symfony7demo)
path="http://${hostname}.localhost/index.php/en/blog/"
;;
laravel12 | wordpress68)
path="http://${hostname}.localhost/"
;;
*)
echo "Bug"
exit 1
;;
esac
echo "GET $path" |vegeta attack "-name=${hostname}" -duration=5s -rate=30/1s > /dev/null
echo "GET $path" |vegeta attack "-name=${hostname}" -duration=60s -rate=50/1s |tee "results.${hostname}.bin" |vegeta report
done
sleep 3
done