refactor(benchmark): benchmark script functionality and fairness

This commit is contained in:
yusing
2026-01-03 00:57:50 +08:00
parent dc8abe943d
commit fb040afe90
3 changed files with 29 additions and 9 deletions

View File

@@ -124,7 +124,11 @@ 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
@if [ -z "$(TARGET)" ]; then \
docker compose -f dev.compose.yml up -d --force-recreate whoami godoxy traefik caddy nginx; \
else \
docker compose -f dev.compose.yml up -d --force-recreate whoami $(TARGET); \
fi
sleep 1
@./scripts/benchmark.sh