feat(bench): add load test flags, bench matrix and plot scripts
This commit is contained in:
+4
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user