-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 763 Bytes
/
Makefile
File metadata and controls
29 lines (24 loc) · 763 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
USERS ?= 250
SPAWN_RATE ?= 50
RUN_TIME ?= 5m
# Interactive UI — single process, useful for smoke tests
test:
poetry run locust -f src/locustfile.py
# Interactive UI — search only
test-read-only:
poetry run locust -f src/locustfile.py SearchUser
# Headless distributed — master + N workers, runs for 5 minutes then exits
test-headless:
poetry run locust -f src/locustfile.py \
--headless \
--users $(USERS) \
--spawn-rate $(SPAWN_RATE) \
--run-time $(RUN_TIME)
# Search-only headless distributed
test-read-only-headless:
poetry run locust -f src/locustfile.py SearchUser \
--headless \
--users $(USERS) \
--spawn-rate $(SPAWN_RATE) \
--run-time $(RUN_TIME)
.PHONY: test test-read-only test-headless test-read-only-headless