-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 984 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (23 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.PHONY: install test race bench stress soak tune clean
TEST_PACKAGES := $(filter-out github.com/ef2k/tempo/performance,$(shell go list ./...))
install:
go install gotest.tools/gotestsum@v1.13.0
test:
gotestsum -- $(TEST_PACKAGES)
race:
gotestsum -- -race $(TEST_PACKAGES)
bench:
go test ./performance -run '^$$' -bench . -benchmem
stress:
TEMPO_RUN_STRESS=1 gotestsum -- -run '^TestStressHighConcurrencyDelivery$$' ./performance
soak: SOAK_DURATION ?= 5m
soak:
@test -f performance/settings.json || (echo "run 'make tune' first to generate performance/settings.json" && exit 1)
TEMPO_RUN_SOAK=1 TEMPO_SOAK_DURATION=$(SOAK_DURATION) go test -timeout 20m -v -run '^TestSoakSustainedLoadStaysHealthy$$' ./performance
tune: TUNE_DURATION ?= 5s
tune: TUNE_PAYLOAD_BYTES ?=
tune:
go run ./performance/cmd/tempo-tune -duration $(TUNE_DURATION) $(if $(TUNE_PAYLOAD_BYTES),-payload-bytes $(TUNE_PAYLOAD_BYTES),)
clean:
rm -rf performance/out
rm -f performance/settings.json