Reputation: 5546
In my application I have to send about 10 kb/s per connection. All packets are put in a std::deque
. One thread iterates over the deque and sends packet data via asio::async_write
.
My question is how much connections can I handle simultaneously in one thread? Can I send say 20 Mbytes/s?
Upvotes: 1
Views: 1097
Reputation: 70526
The Boost.Asio author Kohlhoff's website has a performance page. Looking at the graph of Linux-perf-11, he gets a throughput of ~300 Mb/sec with 1000 connections on a single CPU, which is way above your target of 10kb/sec per connection.
Upvotes: 2