Skip to content
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

🤗 [Question]: comparison with bun? (elysia, hono #2559

Closed
ghost opened this issue Aug 6, 2023 · 6 comments
Closed

🤗 [Question]: comparison with bun? (elysia, hono #2559

ghost opened this issue Aug 6, 2023 · 6 comments

Comments

@ghost
Copy link

ghost commented Aug 6, 2023

No description provided.

@ghost ghost added the 🤔 Question label Aug 6, 2023
@welcome
Copy link

welcome bot commented Aug 6, 2023

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

@ReneWerner87
Copy link
Member

benchmarks are always difficult because it varies from machine to machine and in some cases with quite powerful frameworks also the network plays a big role for the performance test.

if you want to compare these frameworks i would recommend you 2 independent overview sites

the benchmarker which compares different web frameworks independent of the programming language and techempower which has a more accurate and from my point of view even more professional test setup

https://web-frameworks-benchmark.netlify.app/result?f=elysia,fiber,express

https://web-frameworks-benchmark.netlify.app/compare?f=fiber,elysia,express

https://www.techempower.com/benchmarks/#section=test&runid=273fa177-fc53-43a9-a97d-d6f3f2ade99a&test=json

Unfortunately this framework is not yet available on techempower, so you can only compare different frameworks on theBenchmarker.

but i would recommend you to check the frameworks there, maybe someone will add it later

@ghost
Copy link
Author

ghost commented Aug 7, 2023

@ReneWerner87 could you please tell me how this benchmark site compares? Because I dont think that python libraries slower than javaascript, even slower than express.
image

@gaby
Copy link
Member

gaby commented Aug 7, 2023

@terlan4 The source code they use to test each framework is here https://github.com/the-benchmarker/web-frameworks

@ReneWerner87
Copy link
Member

will close the report, hope you found your information
otherwise you have to ask the authors of the benchmarks

@jabarihunt
Copy link

@gaby i know but how is all python libraries slower than fastify and express?

Python is a lot of things, but being performant is not one of them! PHP 8 is generally faster than python, and Node JS is generally faster than PHP. Replace Node with Bun for JavaScript and the comparison becomes completely lopsided. Keep in mind, python is a general programming language that is good at most things. PHP, Node, and Bun were designed specifically with back end web development in mind, so it's not surprising that they perform better at those tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants