Add API benchmark suite#32
Open
TheOnlyOne001 wants to merge 1 commit into
Open
Conversation
Author
|
Demo / verification note for reviewers:
I could not attach a native GitHub video through the CLI, so I included reproducible commands, CI evidence, and the full generated summary directly in the PR body. |
Code Review — Bounty #30 ($750)PR: Add API benchmark suite by @TheOnlyOne001
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
npm run benchmarkandnpm run benchmark:smokefor the API benchmark suite.benchmarks/run.mjsto start the Express API locally by default, cover every current/api/*route plus/health, send realistic JSON/form payloads, and use a benchmark JWT for/api/admin/metrics.benchmarks/results, threshold checks inbenchmarks/thresholds.json,.env.benchmarkdocumentation, and a GitHub Actions smoke benchmark gate.npm testruns reliably on Node 22.Validation
npm testpassed.npm run benchmark:smokepassed and wrote JSON/Markdown results.npm run benchmarkpassed and wrote JSON/Markdown results.git diff --checkpassed.Full Benchmark Summary
Run:
2026-05-17T06-08-38-962Z-fullMode: local, concurrency 2, 4 iterations per worker.
GET /healthPOST /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=api%20benchmarkGET /api/admin/metricsAll endpoints passed configured thresholds.
Benchmark Environment
Hardware
CT500P1SSD8)127.0.0.1) for local benchmarkRuntime
If submitted by or with an AI agent