News for hackers. Stuff that matters.
Re:Web server 'hello world' benchmark: Go vs. Node.js vs. Ni... by tarruda on Saturday October 07, 2023 @09:29AM (#37801550)
Yes. I don't know where this obsession over making JS fast comes from, considering most web applications are http glue code to a database server and spend most of time waiting on I/O

Biggest selling point of Bun is the potential it has to empty my node modules directory and free my mind of worries about supply chain attacks.

Re:Web server 'hello world' benchmark: Go vs. Node.js vs. Ni... by silverwind on Saturday October 07, 2023 @09:43AM (#37801634)
True, these benchmarks are mostly worthless because any non-trivial application will bottleneck at things like databases, not the http framework.

In my experience, even with a fast database like redis, one is unlikely to achieve more than like 5k req/sec per process in node.

Re:Web server 'hello world' benchmark: Go vs. Node.js vs. Ni... by DanielHB on Saturday October 07, 2023 @05:51PM (#37805863)
the perf improvements in the basic libraries help with reducing latency which shouldn't be scoffed at
Re:Web server 'hello world' benchmark: Go vs. Node.js vs. Ni... by tarruda on Saturday October 07, 2023 @06:49PM (#37806176)
Not scoffing, performance is nice to have. I really like how Bun replaces all development tools, is much faster for package management and bundling. The fast startup is also a bonus and means it could be used for writing command line tools.

However, as a server side runtime it doesn't matter much because the time spent on those libraries is minimal in compared to the time spent waiting for I/O