meinheld

軟件截圖:
meinheld
軟件詳細信息:
版本: 0.5.4
上傳日期: 14 Apr 15
許可: 免費
人氣: 1

Rating: nan/5 (Total Votes: 0)

meinheld又是一個異步Web服務器一樣fapws3,龍捲風。
meinheld是一個WSGI兼容的Web服務器。
安裝
一封來自PyPI安裝:
  easy_install的-zu meinheld
從源代碼安裝:
 蟒蛇setup.py安裝
meinheld支持gunicorn。
要安裝gunicorn:
  easy_install的-zu gunicorn
基本用法
簡單的WSGI應用程序:
從meinheld導入服務器
DEF參考hello world(ENVIRON,start_response):
 狀態='200 OK'
  RES =“世界,你好!”
  response_headers = [(“內容型”,“text / plain的”),(“內容長度”,STR(LEN(RES)))]
  start_response(狀態,response_headers)
 返回[RES]
server.listen((“0.0.0.0”,8000))
server.run(參考hello world)
與gunicorn。用戶工人階級“meinheld.gmeinheld.MeinheldWorker”:
$ gunicorn --workers = 2 --worker級=“meinheld.gmeinheld.MeinheldWorker”gunicorn_test:應用程序
性能
meinheld用於高性能http_parser。
(見http://github.com/ry/http-parser)
並期運用高性能的事件庫picoev。
(見http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)
簡單的基準
簡單的參考hello world替補:
DEF參考hello world(ENVIRON,start_response):
 狀態='200 OK'
  RES =“世界,你好!”
  response_headers = [(“內容型”,“text / plain的”),(“內容長度”,STR(LEN(RES)))]
  start_response(狀態,response_headers)
 返回[RES]
使用apach的替補:
$ AB -c 100 -n 10000 http://127.0.0.1:8000/
規範
  * CPU:英特爾(R)的Atom(TM)CPU N270 1.60GHz的@
  * Memoy:1G
  *操作系統:Ubuntu的10.04
每秒服務器請求
meinheld 0.1 2927.62 [#/秒]
fapws3 0.6 1293.53 [#/秒]
發送文件
。meinheld的sendfile使用(2),在wgsi.file_wrapper

要求

  • 在Python中

顯影劑的其他軟件 Yutaka Matsubara

Meinheld
Meinheld

1 Mar 15

意見 meinheld

評論沒有發現
添加評論
打開圖片!