Giter Club home page Giter Club logo

uring-server's Introduction

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

调研报告

跳转链接

uring-server's People

Contributors

chen622 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uring-server's Issues

golang为什么这么高

测试结果来看golang为什么会这么高?
吞吐量是c/c++的几倍, 这没有道理阿.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.