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

评论没有发现
添加评论
打开图片!