-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Bun is 2x faster than Deno #86
Comments
You can see these benchmarks
|
There are quite a lot of benchmarks around and not a lot seem to agree with eachother, let alone that bun is 2x faster than deno. Looking at I am not involved with this repository whatsoever, but I think it would be appreciated to find a problem with their methodology instead of dropping a claim like this.
Which I think would all be valid questions and would be easier to follow up on. |
For simple benchmarking, wrk or wrk2 should be fine. The result mentioned above has an issue in |
Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz node v20.3.1 deno.ts Deno.serve({ port: 3000 }, () => new Response("Hello, Bench!")); bun.ts export default { port: 3000, fetch: () => new Response('Hello, Bench!') }; node.js require('http').createServer((request, response) => (response.write('Hello, Bench!'), response.end())).listen(3000);
All the best deno frameworks stay around 67,689.84 req/s (oak) |
WSL may have some impact on the result as it has some limitation as a virtual machine. I suggest you wrap the node handler with |
Like this? No difference const handler = response => () => {
response.write('Hello, Bench!');
response.end();
}
require('http').createServer((request, response) => setImmediate(handler(response))).listen(3000); |
@icetbr test on MacOS or other distro than Linux Mint |
Mint is Ubuntu. I don't have MacOS, sorry. My benchmarks seems consistent with some articles I found online by others. Post your results if you can. |
@icetbr bunsvr/benchmark is mine |
Cool! I can only see bun frameworks for now, are you updating the repo? |
@icetbr Can you give me a framework code because I don't want to install Deno lint |
Which framework? Deno itself? I've used the ones from here And pure deno Deno.serve({ port: 3000 }, () => new Response("Hello, Bench!")); |
@eliassjogreen Why are benchmark results flunctuating on every single update? |
@icetbr Bun performs better in Ubuntu than in Linux Mint |
Do you have the stats? That would be unusual, as I'm not aware of any performance difference between any program between any linux distro. |
@icetbr if you have Mint you can for example test node:test with bun:test. |
Do you have any reference of this? It makes no sense, its like saying strawberry ice cream is colder then chocolate ice cream. Mint IS Ubuntu. Even Arch, which is way different, there is no performance difference. I don't doubt your results, but I'm curious of the circumstances of the test. Even MacOs has the same performance. At least it used to be, I stopped following the benchmarks of dev environments a while ago, when i was deciding between a PC vs Mac for Node development. |
@icetbr See strager YT video |
Bun is 2x faster than Node, not Deno. |
@Shyam-Chen It was |
I have benchmarked Deno a few times on my machine and many benchmarks Deno is 2x slower than Bun
Maybe you can try use another benchmarking tool like
wrk
orbombardier
to see the result.Funding
The text was updated successfully, but these errors were encountered: