1

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?

TemplateRex
  • 69,038
  • 19
  • 164
  • 304
Denis Ermolin
  • 5,530
  • 6
  • 27
  • 44

1 Answers1

2

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.

TemplateRex
  • 69,038
  • 19
  • 164
  • 304