meinheld

Programinė įranga Screenshot:
meinheld
Programinė detalės:
Versija: 0.5.4
Įkėlimo datą: 14 Apr 15
Kūrėjas: Yutaka Matsubara
Licencija: Nemokamai
Populiarumas: 1

Rating: nan/5 (Total Votes: 0)

meinheld yra dar vienas asinchroninio žiniatinklio serveris kaip fapws3, tornadas.
meinheld yra WSGI atitinka žiniatinklio serverio.
Diegimas
Įdiekite iš pypi:
& Nbsp; easy_install -ZU meinheld
Įdiekite iš šaltinio:
& Nbsp; python setup.py įdiegti
meinheld remti gunicorn.
Norėdami įdiegti gunicorn:
& Nbsp; easy_install -ZU gunicorn
Paprastas naudojimas
paprasta WSGI programa:
nuo meinheld importo serverį
Def hello_world (aplin, start_response):
& Nbsp; status = '200 Gerai "
& nbsp; res = "Hello world!"
& Nbsp; response_headers = [("Content-Type", "text / plain), (" Content-Length ", g (LEN (res)))]
& Nbsp; start_response (statusas, response_headers)
& Nbsp; sugrįžti [res]
server.listen (("0.0.0.0", 8000))
server.run (hello_world)
su gunicorn. vartotojas darbuotojas klasė "meinheld.gmeinheld.MeinheldWorker":
$ Gunicorn --workers = 2 --worker-class = "meinheld.gmeinheld.MeinheldWorker" gunicorn_test: programa
Performance
meinheld naudojamas didelio našumo http_parser.
(Žr http://github.com/ry/http-parser)
ir useing aukštos kokybės įvykis biblioteka picoev.
(Žr http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)
paprasta etalonas
paprasta hello_world suolas:
Def hello_world (aplin, start_response):
& Nbsp; status = '200 Gerai "
& nbsp; res = "Hello world!"
& Nbsp; response_headers = [("Content-Type", "text / plain), (" Content-Length ", g (LEN (res)))]
& Nbsp; start_response (statusas, response_headers)
& Nbsp; sugrįžti [res]
naudoti Apach stende:
$ Ab -c 100 -n 10000 http://127.0.0.1:8000/
spec
& Nbsp; * Procesorius: Intel (R) Atom (TM) CPU N270 @ 1.60GHz
& Nbsp; * Memoy: 1G
& Nbsp; * OS: Ubuntu 10.04
serverio užklausų per sekundę
meinheld 0.1 2927,62 [# / sek]
fapws3 0.6 1293,53 [# / sek]
sendfile
. meinheld naudoti sendfile (2), per wgsi.file_wrapper

Reikalavimai :

  • Python

Kita programinė įranga kūrėjas Yutaka Matsubara

Meinheld
Meinheld

1 Mar 15

Komentarai meinheld

Komentarai nerastas
Pridėti komentarą
Pasukite ant paveikslėlio!