perf: optimize authorization scoreline and workers

This commit is contained in:
2026-07-30 09:12:27 +08:00
parent 4bea745b79
commit bedc77bffd
52 changed files with 21911 additions and 347 deletions

View 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.