The project test the throughput and latency of HTTP Server with io_uring or epoll. For convenience, I use liburing to build a server.
git submodule init git submodule update cd liburing ./configure --libdir=/usr/lib64 make CFLAGS=-std=gnu99 && make installmkdir build cd build cmake .. cmake --build ../uring_server # or ./epoll_serverfirst you need to download the jmeter, and load 压测线程.jmx file.
A basic test result: test result.
本测试对比了作为HTTP Server时,两种io框架的性能差距。为节省工作量,io_uring 使用了 liburing 包来避免需要修改底层参数。
git submodule init git submodule update cd liburing ./configure --libdir=/usr/lib64 make CFLAGS=-std=gnu99 && make installcd build cmake .. cmake --build ../uring_server # or ./epoll_server首先下载jmeter,之后载入 压测线程.jmx