-
-
Notifications
You must be signed in to change notification settings - Fork 37
Add uWS to benchmarks #2640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add uWS to benchmarks #2640
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughSummary by CodeRabbit
WalkthroughThe changes introduce support for the "uws" (uWebSockets.js) scenario in the server benchmarking workflow and implementation. The server logic is updated to conditionally start a uWebSockets.js server or a native Node.js HTTP server based on the scenario. Response handling is optimized to efficiently process string bodies without using streams. Changes
Sequence Diagram(s)sequenceDiagram
participant Env as Environment
participant Main as server.ts
participant UWS as uWebSockets.js App
participant HTTP as Node.js HTTP Server
Env->>Main: Set SCENARIO env variable
Main->>Main: Check SCENARIO
alt SCENARIO == "uws"
Main->>UWS: Create uWebSockets.js app
UWS->>UWS: Register serverAdapter for all routes
UWS->>UWS: Listen on port 4000
else
Main->>HTTP: Create native HTTP server
HTTP->>HTTP: Listen on port 4000
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@whatwg-node/node-fetch |
0.7.23-alpha-20250728110808-0981fe0c7ca2a9d25448c612ffa87274110a432f |
npm ↗︎ unpkg ↗︎ |
@whatwg-node/server |
0.10.11-alpha-20250728110808-0981fe0c7ca2a9d25448c612ffa87274110a432f |
npm ↗︎ unpkg ↗︎ |
✅
|
✅
|
✅
|
✅
|
✅
|
✅
|
Followup #2632
This PR adds uWS to the benchmarks, and fixes the regression that is shown in feTS benchmarks