ui-performance-benchmark
Skill438 starsChanged 53 days agoApache-2.0View on GitHub
Run and document CAIPE UI/BFF performance benchmarks with Locust against the Docker Compose UI, including audit-service, OpenFGA, MongoDB, Keycloak, RAG, and dynamic-agents health context. Use when asked to run UI performance, BFF latency, Locust load tests, benchmark user-count sweeps, or update UI benchmark result docs.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cnoe-io/ai-platform-engineeringword for word, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- cnoe-io/ai-platform-engineering★ 438100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/docker-compose-first-install.mdcCursor rule
- .cursor/rules/safe-git-worktree.mdcCursor rule
- .cursor/rules/specify-rules.mdcCursor rule
- docker-compose-first-installSkill
- local-integration-testingSkill
- release-docsSkill
- run-caipe-integration-testsSkill
- skillsSkill
- speckit.analyzeSkill
- speckit.checklistSkill
- speckit.clarifySkill
- speckit.constitutionSkill
- speckit.implementSkill
- speckit.planSkill
- speckit.specifySkill
- speckit.sync-templateSkill
- speckit.tasksSkill
- speckit.taskstoissuesSkill
- streaming-testingSkill
- update-docsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Start or verify the prod-parity UI stack:
- Very specific: line 37
Use the running UI container's NEXTAUTH_SECRET so the benchmark session cookie matches the server:
- Distinctive: line 91
Keep spawn rate and duration explicit in the report so comparisons are fair.
- Distinctive: line 116
If asked to persist results, update:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UI Performance Benchmark
Overview
Benchmark the CAIPE UI/BFF with Locust against the Docker Compose stack, then summarize and optionally record results in the evaluation docs.
Primary files:
scripts/locustfile.pyui/mint-test-session.mjsdocs/docs/evaluations/ui-performance-benchmark-results.mddocs/docs/security/rbac/audit-log-performance.md
Preflight
- Inspect the current harness and prior docs before running:
sed -n '1,220p' scripts/locustfile.py
sed -n '1,220p' docs/docs/evaluations/ui-performance-benchmark-results.md
sed -n '1,220p' docs/docs/security/rbac/audit-log-performance.md- Start or verify the prod-parity UI stack:
docker compose -f docker-compose.dev.yaml --profile caipe-ui-prod up -d
curl -sS http://localhost:3000/api/health
docker ps --filter name=caipe-ui --format '{{.Names}}\t{{.Status}}\t{{.Image}}\t{{.Ports}}'- Use the running UI container's
NEXTAUTH_SECRETso the benchmark session cookie matches the server:
export NEXTAUTH_SECRET="$(
docker inspect -f '{{range .Config.Env}}{{println .}}{{end}}' caipe-ui-prod \
| sed -n 's/^NEXTAUTH_SECRET=//p' \
| head -1
)"scripts/locustfile.py mints a test session through ui/mint-test-session.mjs at Locust startup. To debug session minting directly:
cd ui
NEXTAUTH_SECRET="$NEXTAUTH_SECRET" node mint-test-session.mjsRun
Default comparable run:
mkdir -p reports
ts="$(date -u +%Y%m%dT%H%M%SZ)"
locust -f scripts/locustfile.py \
--host http://localhost:3000 \
--users 300 \
--spawn-rate 20 \
--run-time 10m \
--headless \
--html "reports/300u-ui-benchmark-${ts}.html" \
--csv "reports/300u-ui-benchmark-${ts}"For a quick smoke run, reduce runtime:
locust -f scripts/locustfile.py \
--host http://localhost:3000 \
--users 300 \
--spawn-rate 50 \
--run-time 30s \
--headless \
--html "reports/300u-ui-smoke-${ts}.html" \
--csv "reports/300u-ui-smoke-${ts}" \
--only-summaryFor a sweep, run the same harness at:
5, 10, 50, 100, 300, 500, 1000Keep spawn rate and duration explicit in the report so comparisons are fair.
What to Measure
Capture:
- Requests per second
- p50, p95, p99 latency
- Error rate and expected synthetic errors
- Slowest endpoints
- Container health for audit-service, OpenFGA, MongoDB, Keycloak, RAG, and dynamic-agents
- Relevant container logs during or immediately after the run
The benchmark stresses UI/BFF paths such as platform health, admin dashboard/state reads, RBAC/admin gate checks, dynamic agent availability, audit reads/search/export paths, and chat/conversation state paths. Treat scripts/locustfile.py as the exact source of truth for the current endpoint mix.
Historical takeaway from the docs: 300-user behavior improved meaningfully after audit offload and BFF caching/coalescing. At 1000 users, throughput and p50 improved somewhat, but p95/p99 tail latency remained poor in full Docker Compose.
Report
After a run:
- Summarize aggregate RPS, total requests, failure count, p50, p95, p99, and max latency.
- List the slowest endpoints by p95/p99.
- Explain expected synthetic failures separately from real failures. For example, the fake conversation lookup may return 400 or 404 depending on the current route validation.
- Mention whether the UI and backing services stayed healthy.
- If asked to persist results, update:
docs/docs/evaluations/ui-performance-benchmark-results.mddocs/docs/security/rbac/audit-log-performance.mdwhen audit/RBAC behavior is part of the run
Reports under reports/ are ignored by git and are suitable for local artifacts.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

