feat: introduce apachebench

This commit is contained in:
Michele Cereda
2025-02-28 17:25:45 +03:00
parent 164cd0b89e
commit 1d9dc5e367
3 changed files with 83 additions and 0 deletions

10
snippets/ab.fish Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env fish
# Install
apt install 'apache2-utils'
dnf install 'httpd-tools'
ab -n '750' -c '1' 'http://grafana.example.org/'
ab -t 100 -c 250 -C 'GITLAB_TOKEN=0123…' 'https://gitlab.example.org/'
parallel ab -t 40 -c 100 -C 'GITLAB_TOKEN=1234…' {} ::: https://gitlab.{production,staging}.example.org/

View File

@@ -26,3 +26,6 @@ curl --url 'https://gitlab.com/api/v4/runners/all' \
curl -fsX 'PUT' 'https://gitlab.com/api/v4/runners/{}' -H 'PRIVATE-TOKEN: glpat-m-…' -F 'paused=true'
curl --fail --silent --request 'PUT' 'https://gitlab.com/api/v4/runners/{}' \
--header 'PRIVATE-TOKEN: glpat-m-…' --form 'paused=true'
curl -v --cookie "USER_TOKEN=Yes" http://127.0.0.1:5000/