Coder Social home page Coder Social logo

hpnetserver's Introduction

highPerformanceNetworkServer


目标: 高性能TCP网络服务器程序

简介: 程序架构采用master-worker模型,并利用libevent网络库来实现one loop per thread(一个事件循环一个线程)的IO模型。

  • 支持平台: x86-64 linux
  • 开发语言: C++
  • 开发平台: CentOS release 6.3
  • linux内核版本: 2.6.32-279.el6.x86_64
  • gcc 版本: 4.4.6
  • libevent版本: 2.0.21

测试结果:

  • 对于tcp短连接以简单的请求——回应进行测试,10万个请求,平均响应时间约为16ms。
  • 对于tcp长连接,根据业务实时做更新,目前2万个并发连接(加20s心跳),服务端可以轻松应对,消耗资源很小。

参考文章

hpnetserver's People

Contributors

yaocoder avatar

Watchers

Willem avatar

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.