Skip to content

feat(benchmark): add k6 API benchmark suite for all /api/ endpoints#213

Open
wsimon1982 wants to merge 7 commits into
SecureBananaLabs:mainfrom
wsimon1982:feature/api-benchmarks
Open

feat(benchmark): add k6 API benchmark suite for all /api/ endpoints#213
wsimon1982 wants to merge 7 commits into
SecureBananaLabs:mainfrom
wsimon1982:feature/api-benchmarks

Conversation

@wsimon1982
Copy link
Copy Markdown

Adds a complete k6 benchmark suite for all FreelanceFlow /api/ endpoints.

What's included

File Purpose
benchmarks/api_benchmark.js k6 test script covering all 20 API routes
benchmarks/thresholds.json p50/p95/p99 + error rate thresholds
benchmarks/.env.benchmark.example Config template
benchmarks/check_thresholds.js CI threshold checker (Node.js)
benchmarks/package.json npm scripts for running benchmarks
.github/workflows/benchmark.yml CI smoke benchmark on every push/PR
benchmarks/README.md Usage docs

Acceptance criteria

  • All /api/ endpoints included (20 routes)
  • Realistic payloads (auth register/login, job creation)
  • Auth-protected routes use bearer token
  • Single command npm run benchmark runs full suite
  • p50/p95/p99 latency, RPS, error rate, TTFB captured
  • JSON + markdown summary output
  • CI runs smoke benchmark, fails on threshold violation

Benchmark Environment

Hardware: AMD EPYC 7B13, 128 GB RAM, NVMe SSD, Hetzner CPX22 VPS
OS: Ubuntu 24.04 LTS
Agent: Hermes (stepfun/step-3.5-flash) — fully autonomous, shell + internet access

/bounty $750

github-actions Bot added a commit that referenced this pull request May 18, 2026
davidweb3-ctrl pushed a commit to davidweb3-ctrl/bug-bounty that referenced this pull request May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant