feat(benchmark): enhance dev.compose.yml with benchmark services and scripts

- Added benchmark services (whoami, godoxy, traefik, caddy, nginx) to dev.compose.yml.
- Introduced a new benchmark.sh script for load testing using wrk and h2load.
- Updated Makefile to include a benchmark target for easy execution of the new script.
This commit is contained in:
yusing
2026-01-03 00:28:59 +08:00
parent 30eae68a91
commit 7702fa6696
3 changed files with 331 additions and 1 deletions

View File

@@ -123,6 +123,11 @@ dev:
dev-build: build
docker compose -f dev.compose.yml up -t 0 -d app --force-recreate
benchmark:
@docker compose -f dev.compose.yml up -d --force-recreate whoami godoxy traefik caddy nginx
sleep 1
@./scripts/benchmark.sh
dev-run: build
cd dev-data && ${BIN_PATH}
@@ -142,7 +147,7 @@ ci-test:
act -n --artifact-server-path /tmp/artifacts -s GITHUB_TOKEN="$$(gh auth token)"
cloc:
scc -w -i go --not-match '_test.go$'
scc -w -i go --not-match '_test.go$$'
push-github:
git push origin $(shell git rev-parse --abbrev-ref HEAD)