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

Latency performance from HTTP awaitable server examples #2947

Open
shuwens opened this issue Nov 1, 2024 · 0 comments
Open

Latency performance from HTTP awaitable server examples #2947

shuwens opened this issue Nov 1, 2024 · 0 comments

Comments

@shuwens
Copy link

shuwens commented Nov 1, 2024

Hey,

Thank you all for all the work on boost/beast, it is a great library to use. I am working on a project which needs an embedded HTTP server, and I switched from civetweb to beast. One thing I am wondering is the actual achievable latency of beast. My project will be doing a large amount of HTTP requests so throughput and latency matter to me.

I run the http awaitable server with 1.86 against wrk. The benchmarking result is ranging from 250us to 400us. Is this the lowest latency I can achieve with boost beast, or am i missing anything here?

Regards,

An example is as follows.

16 threads and 80 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   258.48us  335.09us  17.77ms   98.98%
    Req/Sec    20.56k   800.05    26.78k    80.45%
  3304893 requests in 10.10s, 267.90MB read
Requests/sec: 327223.28
Transfer/sec:     26.53MB
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

1 participant