introduce io_uring,using liburing,tested on kernel 6.1
非常感谢你的贡献! 我需要点时间认真review和测试下。 另外你做过分别使用epoll和iouring的性能对比数据吗?
用pingpong echo简单测试结果如下: epollserver epollclient: Running 10s test @ 127.0.0.1:2000 2 threads and 100 connections, send 1024 bytes each time total readcount=1906725 readbytes=1952486400 throughput = 186 MB/s
epollserver uringclient: 2 threads and 100 connections, send 1024 bytes each time total readcount=1866482 readbytes=1911277568 throughput = 182 MB/s
uringserver epollclient: Running 10s test @ 127.0.0.1:2000 2 threads and 100 connections, send 1024 bytes each time total readcount=1976892 readbytes=2024337408 throughput = 193 MB/s
uringserver uringclient: 2 threads and 100 connections, send 1024 bytes each time total readcount=1927291 readbytes=1973545984 throughput = 188 MB/s