Add API benchmark suite#34
Open
BobbyZ2026 wants to merge 3 commits into
Open
Conversation
Code Review — Bounty #30 ($750)PR: Add API benchmark suite by @BobbyZ2026
Wallet: Code review under Bounty #30 — API Benchmark Suite ($750) |
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.
/claim #30
Summary
autocannonbenchmark suite underbenchmarks/covering all 20 current/api/endpoints with schema-shaped JSON and multipart payloads.BENCHMARK_AUTH_TOKENor a dedicated signed benchmark JWT for protected routes..env.benchmark.example, and a short demo video atbenchmarks/results/demo.mp4.Validation
npm testpassed.npm run benchmarkpassed locally and wrotebenchmarks/results/latest.jsonplusbenchmarks/results/latest.md.npm run benchmark:smoke -- --output-dir=/tmp/freelanceflow-benchmark-smoke-postpatchpassed locally.node --check benchmarks/run.mjs && node --check benchmarks/endpoints.mjs && git diff --checkpassed.ffprobe benchmarks/results/demo.mp4confirms H.264 1280x720, 6s.Benchmark Summary
Full committed report:
benchmarks/results/latest.md.Results
POST /api/auth/registerPOST /api/auth/loginGET /api/auth/oauth/github/callbackPOST /api/auth/refreshGET /api/usersPOST /api/usersGET /api/jobsPOST /api/jobsGET /api/proposalsPOST /api/proposalsPOST /api/paymentsGET /api/reviewsPOST /api/reviewsGET /api/messagesPOST /api/messagesGET /api/notificationsPOST /api/notificationsPOST /api/uploadsGET /api/search?q=typescript%20benchmarkGET /api/admin/metricsBenchmark Environment
Hardware
127.0.0.1)Runtime
If submitted by or with an AI agent