meinheld

צילום מסך תוכנה:
meinheld
פרטי תוכנה:
גרסה: 0.5.4
טען תאריך: 14 Apr 15
מפתחים: Yutaka Matsubara
רשיון: ללא תשלום
פופולריות: 1

Rating: nan/5 (Total Votes: 0)

meinheld הוא עוד שרת אינטרנט אסינכרוני כמו fapws3, טורנדו.
meinheld הוא שרת אינטרנט תואם WSGI.
התקנה
התקן מpypi:
& Nbsp; easy_install -ZU meinheld
להתקין ממקור:
& Nbsp; פיתון setup.py להתקין
meinheld לתמוך gunicorn.
כדי להתקין gunicorn:
& Nbsp; easy_install -ZU gunicorn
שימוש Basic
אפליקציה wsgi פשוטה:
מהשרת יבוא meinheld
hello_world def (Environ, start_response):
& Nbsp; מעמד = '200 OK'
& Nbsp; מיל = "שלום עולם!"
& Nbsp; response_headers = [, ('Content-סוג', 'טקסט / רגיל') ('Content-אורך ", str (len (מיל')))]
& Nbsp; start_response (מעמד, response_headers)
& Nbsp; לחזור [מיל]
server.listen (("0.0.0.0", 8000))
server.run (hello_world)
עם gunicorn. מעמד עובד משתמש "meinheld.gmeinheld.MeinheldWorker":
$ Gunicorn --workers = 2 --worker-class = "meinheld.gmeinheld.MeinheldWorker" gunicorn_test: אפליקציה
ביצועים
meinheld משמש http_parser ביצועים גבוה.
(ראה http://github.com/ry/http-parser)
וuseing picoev ספריית אירוע ביצועים גבוהים.
(ראה http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)
אמת מידה פשוטה
ספסל hello_world פשוט:
hello_world def (Environ, start_response):
& Nbsp; מעמד = '200 OK'
& Nbsp; מיל = "שלום עולם!"
& Nbsp; response_headers = [, ('Content-סוג', 'טקסט / רגיל') ('Content-אורך ", str (len (מיל')))]
& Nbsp; start_response (מעמד, response_headers)
& Nbsp; לחזור [מיל]
להשתמש apach ספסל:
-c ab $ 100 -n 10000 http://127.0.0.1:8000/
spec
& Nbsp; * CPU: Intel (R) Atom (TM) 1.60GHz @ N270 CPU
& Nbsp; * Memoy: 1G
& Nbsp; * OS: אובונטו 10.04
בקשות שרת לשנייה
0.1 meinheld 2,927.62 [# / sec]
0.6 fapws3 1,293.53 [# / sec]
sendfile
. Meinheld להשתמש sendfile (2), מעל wgsi.file_wrapper

דרישות :

  • Python

תוכנות אחרות של יזם Yutaka Matsubara

Meinheld
Meinheld

1 Mar 15

תגובות ל meinheld

תגובות לא נמצא
להוסיף הערה
הפעל את התמונות!