Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 1.32 KB

README.md

File metadata and controls

83 lines (55 loc) · 1.32 KB

io_uring vs epoll performance test

The project test the throughput and latency of HTTP Server with io_uring or epoll. For convenience, I use liburing to build a server.

Quick Start

1. install liburing

git submodule init
git submodule update
cd liburing
./configure --libdir=/usr/lib64 
make CFLAGS=-std=gnu99 && make install

2. build the test program

mkdir build
cd build
cmake ..
cmake --build .

3. run the program

./uring_server
# or
./epoll_server

4. use jmeter as client

first you need to download the jmeter, and load 压测线程.jmx file.

Result

A basic test result: test result.

io_uring 与 epoll 性能对比测试

本测试对比了作为HTTP Server时,两种io框架的性能差距。为节省工作量,io_uring 使用了 liburing 包来避免需要修改底层参数。

使用教程

1. 安装liburing

git submodule init
git submodule update
cd liburing
./configure --libdir=/usr/lib64 
make CFLAGS=-std=gnu99 && make install

2. 编译测试程序

cd build
cmake ..
cmake --build .

3. 运行测试程序

./uring_server
# or
./epoll_server

4. 使用jmeter进行压测

首先下载jmeter,之后载入 压测线程.jmx

调研报告

跳转链接