Files
loader/_docs/02_document/tests/performance-tests.md
T
Oleksandr Bezdieniezhnykh 8f7deb3fca Add E2E tests, fix bugs
Made-with: Cursor
2026-04-13 05:17:48 +03:00

1.2 KiB

Performance Tests

NFT-PERF-01: Health endpoint latency

Summary: Verify health endpoint responds within acceptable time under normal load. Traces to: AC-1 Category: Latency

Preconditions: Loader service is running.

Scenario:

  • Send 100 sequential GET /health requests
  • Measure p95 response time

Expected outcome: p95 latency ≤ 100ms Threshold: threshold_max: 100ms


NFT-PERF-02: Login latency

Summary: Verify login completes within acceptable time. Traces to: AC-2 Category: Latency

Preconditions: Loader service is running; mock API available.

Scenario:

  • Send 10 sequential POST /login requests
  • Measure p95 response time

Expected outcome: p95 latency ≤ 2000ms (includes mock API round-trip) Threshold: threshold_max: 2000ms


NFT-PERF-03: Resource download latency (small resource)

Summary: Verify small resource download completes within acceptable time. Traces to: AC-4 Category: Latency

Preconditions: Logged in; mock API and CDN serving a 10KB test resource.

Scenario:

  • Send 5 sequential POST /load/smallfile requests
  • Measure p95 response time

Expected outcome: p95 latency ≤ 5000ms Threshold: threshold_max: 5000ms