meinheld

High performance asynchronous Python WSGI Web Server
Download

meinheld Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Yutaka Matsubara
  • Publisher web site:
  • http://github.com/mopemope/

meinheld Tags


meinheld Description

High performance asynchronous Python WSGI Web Server meinheld is yet another asynchronous web server like fapws3, tornado.meinheld is a WSGI compliant web server.InstallationInstall from pypi: easy_install -ZU meinheldInstall from source: python setup.py installmeinheld support gunicorn .To install gunicorn: easy_install -ZU gunicornBasic Usagesimple wsgi app:from meinheld import serverdef hello_world(environ, start_response): status = '200 OK' res = "Hello world!" response_headers = start_response(status, response_headers) return server.listen(("0.0.0.0", 8000))server.run(hello_world)with gunicorn. user worker class "meinheld.gmeinheld.MeinheldWorker":$ gunicorn --workers=2 --worker-class="meinheld.gmeinheld.MeinheldWorker" gunicorn_test:appPerformancemeinheld is used high performance http_parser.(see http://github.com/ry/http-parser)and useing high performance event library picoev.(see http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)simple benchmarksimple hello_world bench:def hello_world(environ, start_response): status = '200 OK' res = "Hello world!" response_headers = start_response(status, response_headers) return use apach bench:$ ab -c 100 -n 10000 http://127.0.0.1:8000/spec * CPU : Intel(R) Atom(TM) CPU N270 @ 1.60GHz * Memoy : 1G * OS: Ubuntu 10.04server Requests per secondmeinheld 0.1 2927.62 fapws3 0.6 1293.53 sendfilemeinheld use sendfile(2), over wgsi.file_wrapper. Requirements: · Python


meinheld Related Software