-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 686 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (20 loc) · 686 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
run:
go run ./cmd/server
run-mock:
ENABLE_MOCK_PROVIDER=1 go run ./cmd/server
loadgen:
go run ./cmd/loadgen --qps 500 --concurrency 128 --duration 60s --policy cheapest --prompt "ping"
test:
go test ./... -race -coverprofile=coverage.out
build:
go build ./cmd/server && go build ./cmd/loadgen
lint:
golangci-lint run
docker-build:
docker build -t ghcr.io/ratnathegod/llm-router:local .
docker-run:
docker run --rm -p 8080:8080 ghcr.io/ratnathegod/llm-router:local
smoke-mock:
ENABLE_MOCK_PROVIDER=1 go run ./cmd/server & echo $$! > server.pid; sleep 2; \
go run ./cmd/loadgen --qps 200 --concurrency 64 --duration 15s --prompt "ping"; \
kill `cat server.pid` || true