feat: add k6 benchmark suite for all API endpoints#301
Closed
niufox wants to merge 1 commit into
Closed
Conversation
Closes #30 - Add k6 benchmark script covering all /api/ endpoints - Public: health, jobs, users, search, reviews - Auth: register, login, refresh - Protected: proposals, messages, notifications, payments, admin - Capture p50, p95, p99 latency, RPS, error rate, and TTFB per endpoint - Write results to benchmarks/results/ as JSON and markdown summary - Add regression gate thresholds in benchmarks/thresholds.json - Add .env.benchmark template for target host configuration - Add single-command runner (npm run benchmark) - Include CI-friendly threshold checks (fail on p99 > 500ms, error > 5%, rps < 50)
14 tasks
Author
|
Follow-up on this benchmark suite! Why this PR stands out:
All acceptance criteria from Issue #30 met. Happy to address any feedback! |
Author
|
💰 Payment info for bounty payout:
Please use this PayPal account for any approved bounty reward. Thank you! |
Author
|
Closing: identified as fake bounty project, no actual payouts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a comprehensive benchmark suite for all platform API endpoints using k6. Closes #30
Benchmark Environment
Hardware
Runtime
If submitted by or with an AI agent
Changes Made
benchmarks/k6/benchmark.js— Main k6 benchmark script/api/routes covered: health, auth, users, jobs, proposals, payments, reviews, messages, notifications, uploads, search, adminBENCHMARK_TOKENfrom environmentbenchmarks/thresholds.json— Regression thresholdsbenchmarks/.env.benchmark— Environment configuration templatebenchmarks/run.sh— One-command runner with health check and timestamped resultsbenchmarks/README.md— Full documentation with setup, usage, and CI integration guidepackage.json— Addednpm run benchmarkscriptAcceptance Criteria Checklist
/api/are included in the benchmark suite/benchmarksnpm run benchmark) runs the full suite.env.benchmarktemplate is documented/benchmarks/results/as JSON and markdown/benchmarks/thresholds.json