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

Performance result looks wierd for c++ #108

Open
albertxavier100 opened this issue Jun 6, 2024 · 2 comments
Open

Performance result looks wierd for c++ #108

albertxavier100 opened this issue Jun 6, 2024 · 2 comments

Comments

@albertxavier100
Copy link

It's wierd to see cpp-beast server's performance so poor and the result is about half of Go and C# here.

I checked the cpp-beast code for the the benchmarks testing, I found looks like it's based on sync http server instead of async http server of beast's examples.
So the current c++ http server is a blocking server, so it's not fair to compare with other servers, since other servers are async servers.

@renerocksai
Copy link
Member

I know it's weird, but it is what it is. People kept sending me their benchmark code of their beloved frameworks and insisted, before eventually I decided that it' is enough.

It's obvious that c++, like most low level programming languages, is capable of more. Beast was not my selection.

Please send a PR to fix the code and make it async. Just complaining is not enough because I don't have time, especially for the benchmark game. Shouting "unfair" is not helpful enough.

The fact that I haven't received an update to the cpp-beast server when it's supposedly capable of much more, tells me: people who use it probably have other things to do than caring about this benchmark, which I understand completely.

@albertxavier100
Copy link
Author

#110 from sehe

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

No branches or pull requests

2 participants