refactor(benchmark): restart bench server after each run

This commit is contained in:
yusing
2026-01-03 12:54:18 +08:00
parent b2df749cd1
commit 1d90bec9ed
2 changed files with 98 additions and 86 deletions

View File

@@ -125,9 +125,9 @@ dev-build: build
benchmark:
@if [ -z "$(TARGET)" ]; then \
docker compose -f dev.compose.yml up -d --force-recreate whoami godoxy traefik caddy nginx; \
docker compose -f dev.compose.yml up -d --force-recreate godoxy traefik caddy nginx; \
else \
docker compose -f dev.compose.yml up -d --force-recreate whoami $(TARGET); \
docker compose -f dev.compose.yml up -d --force-recreate $(TARGET); \
fi
sleep 1
@./scripts/benchmark.sh