meinheld

ソフトウェアのスクリーンショット:
meinheld
ソフトウェアの詳細:
バージョン: 0.5.4
日付のアップロード: 14 Apr 15
開発者: Yutaka Matsubara
ライセンス: 無料
人気: 1

Rating: nan/5 (Total Votes: 0)

meinheldはまだfapws3、竜巻のような別の非同期のWebサーバです。
meinheldはWSGI準拠のWebサーバです。
<強い>インストールの
PyPIのからインストールします。
&NBSP; easy_installを-zu meinheld
ソースからインストールします。
&NBSP; Pythonがインストールsetup.py
gunicornをサポートmeinheld。
gunicornインストールするには:
&NBSP; easy_installを-zu gunicorn
の基本的な使い方
シンプルなWSGIアプリ:
meinheldインポートサーバーから
DEF hello_world(環境、start_responseを):
&NBSP;ステータス= '200 OK」
&NBSP; RES = "こんにちは、世界!"
&NBSP; response_headers = [( 'コンテンツタイプ'、 'text / plainの')( 'Content-Lengthの「STR(LEN(RES)))]
&NBSP; start_responseを(ステータス、response_headers)
&NBSP; 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(環境、start_responseを):
&NBSP;ステータス= '200 OK」
&NBSP; RES = "こんにちは、世界!"
&NBSP; response_headers = [( 'コンテンツタイプ'、 'text / plainの')( 'Content-Lengthの「STR(LEN(RES)))]
&NBSP; start_responseを(ステータス、response_headers)
&NBSP; RES]戻す
apachベンチを使用します。
$ AB -c 100 -n 10000 http://127.0.0.1:8000/
スペック
&NBSP; * CPU:インテル(R)アトム(TM)のCPU N270する@ 1.60GHz
&NBSP; * Memoy:1G
&NBSP; * OS:Ubuntuの10.04
毎秒サーバー要求
meinheld 0.1 2927.62 [#/秒]
fapws3 0.6 1293.53 [#/秒]
sendfileをの
wgs​​i.file_wrapper上で、(2)のsendfileを使用meinheld

の要件の:ます。

  • のPythonます。

開発者の他のソフトウェア Yutaka Matsubara

Meinheld
Meinheld

1 Mar 15

へのコメント meinheld

コメントが見つかりません
コメントを追加
画像をオンにする!