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 install
mkdir build
cd build
cmake ..
cmake --build .
./uring_server
# or
./epoll_server
first 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 install
cd build
cmake ..
cmake --build .
./uring_server
# or
./epoll_server
首先下载jmeter,之后载入 压测线程.jmx