feat(bench): add load test flags, bench matrix and plot scripts

This commit is contained in:
kk10
2026-10-20 13:18:07 +03:00
parent 3f639bd7e6
commit 9cfe15ef1a
5 changed files with 234 additions and 2 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
LOAD_ARGS = $(if $(LOAD_WORKERS),-workers=$(LOAD_WORKERS),) \
$(if $(LOAD_DURATION),-duration=$(LOAD_DURATION),) \
$(if $(LOAD_RATE),-rate=$(LOAD_RATE),)
$(if $(LOAD_RATE),-rate=$(LOAD_RATE),) \
$(if $(LOAD_CSV),-csv=$(LOAD_CSV),) \
$(if $(LOAD_LABEL),-label=$(LOAD_LABEL),)
REPLICA ?= 1
ACTION ?= stop-one.sh
ACTION_AT ?= 10s
@@ -20,7 +22,7 @@ race-go:
go test -tags=race ./student-tests/... -race -v -args -base-url=$(BASE_URL)
load-go:
go test -tags=load ./student-tests/... -v -args -base-url=$(BASE_URL) $(LOAD_ARGS)
go test -count=1 -tags=load ./student-tests/... -v -args -base-url=$(BASE_URL) $(LOAD_ARGS)
failure-go:
go test -tags=failure ./student-tests/... -v -args -base-url=$(BASE_URL)