Skip to content

Feat/perf#363

Merged
A6dulmalik merged 6 commits intoMindBlockLabs:mainfrom
nafiuishaaq:feat/perf
Mar 26, 2026
Merged

Feat/perf#363
A6dulmalik merged 6 commits intoMindBlockLabs:mainfrom
nafiuishaaq:feat/perf

Conversation

@nafiuishaaq
Copy link
Copy Markdown
Contributor

Added a middleware benchmark harness in the middleware workspace with one benchmark file per exported middleware, automated coverage verification against src/index.ts, and a report writer for PERFORMANCE.md. The main pieces are run-all.cjs, benchmark-runner.cjs, and verify-coverage.cjs. I also added benchmark definitions for jwt-auth.middleware.benchmark.cjs, timeout.middleware.benchmark.cjs, and circuit-breaker.middleware.benchmark.cjs, plus package scripts in package.json.

I was able to verify export coverage with node benchmarks/middleware/verify-coverage.cjs, and it confirms every currently exported middleware has a matching benchmark file. I was not able to generate real latency numbers or fill the markdown table with measured p99 deltas because this workspace still lacks installed runtime/build dependencies, and the install request was not approved. Because of that, PERFORMANCE.md is committed with the correct table structure and pending rows rather than fabricated results.

Closes #350

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 26, 2026

@nafiuishaaq Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@A6dulmalik A6dulmalik merged commit 9cb3f89 into MindBlockLabs:main Mar 26, 2026
3 of 6 checks passed
@A6dulmalik A6dulmalik mentioned this pull request Mar 26, 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.

Per-Middleware Performance Benchmarks

2 participants