frevib / io_uring-echo-server

io_uring echo server
MIT License
365 stars 55 forks source link
async-io event-loop io-uring

io_uring bare minimum echo server

Install and run

First install the latest liburing:

git clone https://github.com/axboe/liburing

./configure

make

make install

Then install io_uring-echo-server:

git clone https://github.com/frevib/io_uring-echo-server.git

make io_uring_echo_server

./io_uring_echo_server [port_number]

compare with epoll echo server

https://github.com/frevib/epoll-echo-server

Benchmarks (without buffer selection)

https://github.com/frevib/io_uring-echo-server/blob/io-uring-feat-fast-poll/benchmarks/benchmarks.md

Versions

v1.7

v1.6

v1.5

v1.4

Fix bug that massively overstated the performance.

v1.3

Use pre-allocated sqe->user_data instead of dynamically allocating memory.

v1.1

Fix memory leak.

v1.0

Working release.