# websocket-server This benchmarks a websocket server intended as a simple but very active chat room. First, start the server. By default, it will wait for 16 clients which the client script will handle. Run in Bun (`Bun.serve`): ```bash bun ./chat-server.bun.js ``` Run in Node (`"ws"` package): ```bash node ./chat-server.node.mjs ``` Run in Deno (`Deno.serve`): ```bash deno run -A --unstable ./chat-server.deno.mjs ``` Then, run the client script. By default, it will connect 16 clients. This client script can run in Bun, Node, or Deno ```bash node ./chat-client.mjs ``` The client script loops through a list of messages for each connected client and sends a message. For example, when the client sends `"foo"`, the server sends back `"John: foo"` so that all members of the chatroom receive the message. The client script waits until it receives all the messages for each client before sending the next batch of messages. TODO: once Deno lands their performance improvements, increase the client count (it was originally going to be 32 or 64, but that would've exluded Deno from the benchmark) This project was created using `bun init` in bun v0.2.1. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. lock'>ciro/fetch-fix-with-lock Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/.vscode (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-04-28Improve test runner markdownGravatar Ashcon Partovi 2-67/+107
2023-04-28[resolver] Propagate module type from package.json `"exports"` when possibleGravatar Jarred Sumner 2-5/+33
2023-04-28Fix crash with invalid input in fetch()Gravatar Jarred Sumner 1-2/+14
2023-04-28Improves Body.Value life cycle and Signal life cycle on server.zig (#2752)Gravatar Ciro Spaciari 12-227/+331
2023-04-28Use global allocator tsconfig.jsonGravatar Jarred Sumner 1-3/+6
2023-04-28Use setup-bun insteadGravatar Ashcon Partovi 1-12/+15
2023-04-28Fix path of bun in workflow, try 3Gravatar Ashcon Partovi 1-1/+1
2023-04-28Fix path of bun in workflow, try 2Gravatar Ashcon Partovi 1-2/+1
2023-04-28Fix path of bun in workflowGravatar Ashcon Partovi 1-1/+2
2023-04-28Use GITHUB_PATH instead of cpGravatar Ashcon Partovi 1-1/+1
2023-04-28Maybe fix test runner on macOSGravatar Ashcon Partovi 1-2/+2
2023-04-28Improve test workflowGravatar Ashcon Partovi 3-39/+56
2023-04-28Fix typo in runnerGravatar Ashcon Partovi 1-1/+1
2023-04-28Use bun x instead of bunxGravatar Ashcon Partovi 1-1/+1
2023-04-28Fix manual test workflowGravatar Ashcon Partovi 1-2/+1
2023-04-28Use Node.js APIs for test runnerGravatar Ashcon Partovi 3-17/+28
2023-04-28New test runner with better Github integrationGravatar Ashcon Partovi 2-20/+634
2023-04-28Bundler docs updates + support for `naming` string (#2767)Gravatar Colin McDonnell 5-252/+394
2023-04-27address unicode issue (#2763)Gravatar Jarred Sumner 3-19/+17
2023-04-27:nail_care:Gravatar Jarred Sumner 2-15/+4
2023-04-27fix: make node:crypto Hash.copy work correctly (#2761)Gravatar Silver 12-8941/+7815
2023-04-27Add TODO noteGravatar Jarred Sumner 1-0/+2
2023-04-27Fix mimalloc-debugGravatar Jarred Sumner 1-3/+3
2023-04-27Remove extra word in docs/index.md (#2758)Gravatar B. Burt 1-1/+1
2023-04-27Implement `outdir` in `Bun.build`Gravatar Jarred Sumner 8-26/+362
2023-04-27Don't preallocate unless its profitableGravatar Jarred Sumner 5-40/+45