6 ms·
Bun v0.5.7
- Jarred 4y agoI work on Bun Happy to answer any questions
- yuuuzzzzzz 4y agoWhat font is being used for the shell in the screenshot here: https://user-images.githubusercontent.com/709451/220815500-39575f67-c3a6-4217-87e9-e74217103e64.png https://user-images.githubusercontent.com/709451/220815500-3... ? And what theme is being used for it aswell? It looks very nice
- Jarred 4y agoHack, iirc It’s oh-my-zsh’s default theme
- yuuuzzzzzz 4y agoCool, thanks!
- austin-cheney 4y agoI have been troubled by bun’s prior benchmarks for WebSockets. Node does not have a native WebSocket library so bun compares a popular Node package, ws, against itself. That’s fair and practical but problematic from two technical perspectives. 1) bun is stress testing message send, not message receive. I find that using a better optimized implementation on Node it takes Node about 9x longer to receive a message than to send it and that difference compounds with increase of message frequency. On my laptop with DDR4 2133mhz memory I can send at up to 450,000 messages per second on Node (as opposed to bun’s 700,000 messages per second) before hitting garbage collection problems but receiving is dramatically slower. I suspect bun will be dramatically faster than Node on message receive frequency but I would still like to see the numbers. 2) common Node implementations of WebSockets execute messaging as streams over an established HTTP socket. This is certainly not a bun problem but it does make for a poor comparison. WebSockets are dramatically faster when executed over sockets from Node’s Net/TLS libraries directly as HTTP is not need at any step (even though the greeting packet looks like HTTP).