Add API benchmark latency suite#51
Open
deep-thought-tools wants to merge 3 commits into
Open
Conversation
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.
Benchmark API latency suite
/claim #30
Summary
autocannon./api/*route surface with endpoint-specific GET, JSON POST, multipart upload, and authenticated admin requests.benchmarks/results/.Demo
Short demo video: https://github.com/deep-thought-tools/bug-bounty/blob/benchmark-api-latency-suite/benchmarks/demo/pr-51-demo.webm
Validation
npm test BENCHMARK_DURATION_SECONDS=2 BENCHMARK_CONNECTIONS=4 npm run benchmark BENCHMARK_DURATION_SECONDS=1 BENCHMARK_CONNECTIONS=2 BENCHMARK_FAIL_ON_THRESHOLD=true npm run benchmark git diff --checkLocal validation on 2026-05-17 covered 20 endpoints with 0% benchmark errors. The threshold gate uses
benchmarks/thresholds.jsonand fails when p99 latency or error rate exceeds configured limits.Smoke benchmark markdown summary
API Benchmark Results
Benchmark Environment
Hardware
Runtime
If submitted by or with an AI agent
deep-thought-toolsworkflowtoken scope not present in the current CLI authNotes
BENCHMARK_MODE=trueso the API rate limiter does not dominate benchmark output. The flag is only used by the benchmark runner and should not be enabled in production.node --test src/teststonode --test src/tests/*.test.jsso Node's test runner actually discovers the current test files.