Coder Social home page Coder Social logo

wzugang / libgevent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from denik/libgevent

0.0 2.0 0.0 1.1 MB

green threading library for C on top of libuv and PyPy's stacklet

Makefile 0.33% C 96.63% Python 2.02% C++ 0.60% Batchfile 0.22% Assembly 0.19%

libgevent's Introduction

green threading library for C on top of libuv and PyPy's stacklet

This is just an experiment, only useful to benchmark things. See gevent.h for documentation.

Python wrappers

For documentation on Python API see examples and tests in python/.

The channel performance (if it's indication of anything) is pretty good, only half as slow as Stackless (which uses soft-switching there I believe).

Testing pypy: 2.7.3 (2.2.1+dfsg-1~ppa1, Nov 28 2013, 02:02:56) [PyPy 2.2.1 with GCC 4.6.3]
+ pypy channel_comparison.py test_pypy
<module 'stackless' from '/usr/lib/pypy/lib_pypy/stackless.py'>
1000000 sends took 0.397s

Testing stackless: 2.7.6 Stackless 3.1b3 060516 (v2.7.6-slp:2f45143b8ccb, Apr 30 2014, 23:14:55)  [GCC 4.6.3]
+ stackless channel_comparison.py test_stackless
<module 'stackless' (built-in)>
1000000 sends took 0.283s

Testing /usr/bin/python: 2.7.3 (default, Feb 27 2014, 19:58:35)  [GCC 4.6.3]
+ /usr/bin/python channel_comparison.py test_gevent2
<module 'gevent2' from '/home/denis/work/libgevent/python/gevent2.so'>
1000000 sends took 0.503s

Testing /usr/bin/python: 2.7.3 (default, Feb 27 2014, 19:58:35)  [GCC 4.6.3]
+ /usr/bin/python channel_comparison.py test_gevent1
<module 'gevent' from '/usr/lib/pymodules/python2.7/gevent/__init__.pyc'> 1.0.1
1000000 sends took 17.720s

libgevent's People

Contributors

denik avatar

Watchers

James Cloos avatar 江湖隐行客 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.