Giter Site home page Giter Site logo

mu_event's Introduction

C语言版muduo,对muduo的部分设计做了优化

之前用buffer队列实现的缓冲区,效果不是很好,后来使用了环形缓冲区

下面是和muduo的部分性能对比测试,测试标准参考陈硕大佬自己的标准 https://blog.csdn.net/solstice/article/details/5864889

下面是各数据时的吞吐量对比

吞吐量对比1

通过使用环形缓冲区,使得吞吐量大大提高,并超过了muduo。我想除了学习到了muduo的精华,还因为目前我的程序结构比较简单,没有其他杂项的缘故

下图是发送数据量为16384B,不同并发连接下的对比

并发时吞吐量对比2

可以看到多连接时(高并发时)muevent吞吐量也超过了muduo

QQ讨论群:858791125

mu_event's People

Contributors

shonm520 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mu_event's Issues

pingpongcli 执行后没输出结果

./pingpongcli 198.168.1.248 7788 1 409 1 5
port, thread_num, blockSize, sessionCount, timeout is 7788, 1, 409, 1, 5
pid = 4203

./pingpongsvr 7788 4
port, thread_num is 7788, 4
connected!!!!
read n < 0, file: ../../connection.c, line: 83: Connection reset by peer
handle_close!!!
svr disconnected

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.