zap icon indicating copy to clipboard operation
zap copied to clipboard

Performance result looks wierd for c++

Open albertxavier100 opened this issue 1 year ago • 2 comments

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.

albertxavier100 avatar Jun 06 '24 22:06 albertxavier100

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.

renerocksai avatar Jun 06 '24 23:06 renerocksai

https://github.com/zigzap/zap/pull/110 from sehe

albertxavier100 avatar Jun 13 '24 16:06 albertxavier100