forked from gongxuegit/tiku-backend.net
perf: optimize authorization scoreline and workers
This commit is contained in:
12
tools/performance/README.md
Normal file
12
tools/performance/README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# TIKU API performance scenarios
|
||||
|
||||
Run the API against a prepared PostgreSQL database, then execute:
|
||||
|
||||
```bash
|
||||
TIKU_BASE_URL=http://localhost:5000 \
|
||||
TIKU_TENANT_CODE=<tenant-code> \
|
||||
TIKU_ACCESS_TOKEN=<optional-access-token> \
|
||||
k6 run tools/performance/tiku-api.js
|
||||
```
|
||||
|
||||
Do not store access tokens or database credentials in this directory. The default threshold is only a smoke gate; release comparison uses the same dataset and environment before and after a change, and requires at least a 50% p95 improvement for the targeted endpoint.
|
||||
Reference in New Issue
Block a user