Skip to content

Is this performance expected of Elysia? #1132

Answered by re-thc
winstxnhdw asked this question in Q&A

You must be logged in to vote

for such a trivial task seems to be bad

What are you benchmarking here? The underlying Bun server vs a Rust HTTP server? Well it's obvious that Rust will likely be faster.

For trivial tasks you're barely triggering any Javascript or Python code. It won't give you an indication of what the real world usage looks like.

For reference, my Granian server has a P99 of 100 ms to serve its entire Swagger documentation (which is arguably more work)

i.e. make some assumptions instead of actually benchmarking and comparing?

At the end of the day, P90 looks fine. It's hard to tell without more information (e.g. metrics). It could be a bug in Bun, Elysia or something else.

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@winstxnhdw

Answer selected by winstxnhdw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants