meinheld

Software screenshot:
meinheld
Software ətraflı:
Version: 0.5.4
Tarixi Upload: 14 Apr 15
Geliştirici: Yutaka Matsubara
Lisenziya: Pulsuz
Məşhurluq: 1

Rating: nan/5 (Total Votes: 0)

meinheld hələ fapws3, tornado kimi bir asinxron web server edir.
meinheld bir wsgi uyğun web server edir.
Quraşdırma
Pypi quraşdırma:
& Nbsp; easy_install -ZU meinheld
Mənbədən bərpa edin:
& Nbsp; python bərpa setup.py
gunicorn dəstək meinheld.
Gunicorn yüklemek üçün:
& Nbsp; easy_install -ZU gunicorn
Əsas istifadə
sadə wsgi app:
meinheld idxal server
def hello_world (ekoloji, start_response):
& Nbsp; status = '200 OK'
& Nbsp; res = "Salam dünya!"
& Nbsp; response_headers = [(Content-type ',' text / plain) ("Content-Length 'küç (len (res)))]
& Nbsp; start_response (status, response_headers)
& Nbsp; [res] qayıtmaq
server.listen (("0.0.0.0", 8000))
server.run (hello_world)
gunicorn ilə. istifadəçi işçi sinifi "meinheld.gmeinheld.MeinheldWorker"
$ Gunicorn --workers = 2 --worker-class = "meinheld.gmeinheld.MeinheldWorker" gunicorn_test: app
Performance
meinheld yüksək performans http_parser istifadə olunur.
(Http://github.com/ry/http-parser bax)
və yüksək performans hadisə kitabxana picoev useing.
(Http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html bax)
sadə bir benchmark
sadə hello_world bench:
def hello_world (ekoloji, start_response):
& Nbsp; status = '200 OK'
& Nbsp; res = "Salam dünya!"
& Nbsp; response_headers = [(Content-type ',' text / plain) ("Content-Length 'küç (len (res)))]
& Nbsp; start_response (status, response_headers)
& Nbsp; [res] qayıtmaq
apach dəzgah istifadə edin:
$ Ab-c 100 -n 10000 http://127.0.0.1:8000/
spec
& Nbsp; * CPU: Intel (R) Atom (TM) CPU N270 @ 1.60GHz
& Nbsp; * Memoy: 1G
& Nbsp; * OS: Ubuntu 10.04
saniyədə server sorğular
meinheld 0.1 2927.62 [# / s]
fapws3 0.6 1293.53 [# / s]
Sendfile
. (2), wgsi.file_wrapper üzərində sendfile istifadə meinheld

tələblər

  • Python

Geliştirici digər proqram Yutaka Matsubara

Meinheld
Meinheld

1 Mar 15

Şərh meinheld

Şərhlər tapılmadı
Şərh əlavə
Images yandırın!