In the next version of Bun Initial node:cluster support has landed. Here's 1.29 million HTTP requests per second in TypeScript.
The code is in the alt text of the image above. This was run on a hetzner machine with an Intel i9 13900 CPU and 64 GB ram
@bunjavascript @nektro we'll have to rerun benchmarks again :')
@bunjavascript @nektro Does it mean, PM2 cluster mode will work?
@bunjavascript @nektro FEELS GOOD TO BE A BUN USER BABYYYU
@bunjavascript @nektro Why is this "special"? I see 12 processes handling 1.3 million requests per second. Sounds like each one is handling 100k a second. With Frameworks like Express.js it will be slower because of the overhead of express which has features that are necessary.
@bunjavascript @nektro How can you have a 6B request? Is there something shorter than this? "GET / HTTP/1.1" already has 14 bytes
@bunjavascript @jarredsumner @nektro techempower benchmark when
@bunjavascript @nektro Does this mean Bun can now pass socket handles to child processes? (Been waiting for that feature for ages!)
@bunjavascript @nektro Excited to try this out on a service I run that relies on cluster!
@bunjavascript @DrizzleORM @nektro This seems illegal.
@bunjavascript @nektro Ryzen 9 7900x with 32GB ram
@bunjavascript @nektro Just bring the http 2 server support dawg
@bunjavascript @nektro @bunjavascript @jarredsumner Is there any chance for `bun run` to support clustering without adding code? For example, `bun run --cluster index.ts`
@bunjavascript @nektro All I care about is what term-emu is that? Also, can do you advise I start my Js/TS journey with bun?
@bunjavascript @nektro I just use BUN_LATEST flag on CI and locally already switched to Bun, bud sadly only on my hobby projects.