feat(docs): add performance baseline documentation and update architecture references
Deploy Development / deploy (push) Successful in 41s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 11s
Test Suite / playwright-tests (push) Successful in 57s
Deploy Development / deploy (push) Successful in 41s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 11s
Test Suite / playwright-tests (push) Successful in 57s
- Introduced a new section for the Performance-Baseline in CLAUDE.md and updated HANDOVER.md to include references to the new BASELINE_SNAPSHOT.md. - Enhanced architecture documentation in README.md to clarify the purpose of the baseline snapshot and its relevance to the refactor roadmap. - Refactored OrgInboxContext to implement a unified loading logic for join requests and content reports, improving code maintainability and performance. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
255fa45e90
commit
4b2848c7c3
9 files changed
+221
-54
No files matched your search
@@ -0,0 +1,29 @@
|
||||
# k6 – Health-Baseline (Phase 0)
|
||||
|
||||
Parallele GETs auf `/health` – **ohne** Auth, geeignet für Dev/Prod hinter dem gleichen Proxy wie die App.
|
||||
|
||||
## Voraussetzung
|
||||
|
||||
[k6 installieren](https://k6.io/docs/getting-started/installation/).
|
||||
|
||||
## Aufruf Beispiel
|
||||
|
||||
```bash
|
||||
# Windows PowerShell
|
||||
$env:BASE_URL="https://dev.shinkan.jinkendo.de"
|
||||
k6 run scripts/load/k6-health-baseline.js
|
||||
```
|
||||
|
||||
```bash
|
||||
# Linux / macOS
|
||||
```bash
|
||||
BASE_URL=https://dev.shinkan.jinkendo.de k6 run scripts/load/k6-health-baseline.js
|
||||
```
|
||||
|
||||
Wenn `BASE_URL` fehlt, nutzt das Skript die Default-URL im Script (anpassen bei Bedarf).
|
||||
|
||||
## Auswertung
|
||||
|
||||
In der k6-Zusammenfassung `http_req_duration` → **p(95)** in [BASELINE_SNAPSHOT.md](../../docs/architecture/BASELINE_SNAPSHOT.md) eintragen.
|
||||
|
||||
Schwellwerte sind bewusst locker (`p95 < 3s`); bei Fehlschlag Proxy, Netz oder Backend prüfen.
|
||||
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Phase-0-Baseline: parallele GET /health (kein Auth).
|
||||
* BASE_URL optional, z. B. https://dev.shinkan.jinkendo.de
|
||||
*/
|
||||
import http from 'k6/http'
|
||||
import { check } from 'k6'
|
||||
|
||||
export const options = {
|
||||
scenarios: {
|
||||
health: {
|
||||
executor: 'constant-vus',
|
||||
vus: 10,
|
||||
duration: '30s',
|
||||
gracefulStop: '5s',
|
||||
tags: { scenario: 'health' },
|
||||
exec: 'health',
|
||||
},
|
||||
},
|
||||
thresholds: {
|
||||
http_req_failed: ['rate<0.05'],
|
||||
'http_req_duration{scenario:health}': ['p(95)<3000'],
|
||||
},
|
||||
}
|
||||
|
||||
const BASE = (__ENV.BASE_URL || 'https://dev.shinkan.jinkendo.de').replace(/\/$/, '')
|
||||
|
||||
export function health() {
|
||||
const res = http.get(`${BASE}/health`, { tags: { scenario: 'health' } })
|
||||
check(res, {
|
||||
'health 2xx': (r) => r.status >= 200 && r.status < 300,
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user