zigzap / zap

blazingly fast backends in zig
MIT License
2.4k stars 79 forks source link

Performance result looks wierd for c++ #108

Open albertxavier100 opened 5 months ago

albertxavier100 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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