libhv icon indicating copy to clipboard operation
libhv copied to clipboard

introduce io_uring,using liburing,tested on kernel 6.1

Open firear opened this issue 2 years ago • 2 comments

firear avatar Oct 19 '23 11:10 firear

非常感谢你的贡献! 我需要点时间认真review和测试下。 另外你做过分别使用epoll和iouring的性能对比数据吗?

ithewei avatar Oct 23 '23 06:10 ithewei

用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

firear avatar Oct 26 '23 09:10 firear