Git Product home page Git Product logo

mongols's Introduction

mongols

A high performance network library for c++:

  • Libevent, libev and libuv are outdated.

  • Both apache and nginx are very slow.

mongols.png

benchmark

mongols@mongols ~/Downloads $ grep MemTotal /proc/meminfo
MemTotal:        3939312 kB
mongols@mongols ~/Downloads $ grep 'model name' /proc/cpuinfo
model name	: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
model name	: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
model name	: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
model name	: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
mongols@mongols ~/Downloads $ uname -a
Linux mongols 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

mongols web_server 1 worker VS nginx 1 worker:

mongolsVSnginx_2.png

mongolsVSnginx_3.png

mongols web_server 4 worker VS nginx 4 worker:

mongolsVSnginx_4_worker.png

dependency

  • linux
  • gcc (-std=c11)
  • g++ (-std=c++11)
  • openssl

feature

mongols document

install

make clean && make -j2 && sudo make install && sudo ldconfig

usage

pkg-config --libs --cflags mongols openssl

binding

pymongols

example

example

mongols's People

Contributors

webcpp avatar

Watchers

James Cloos 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.