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
การใช้งานขั้นพื้นฐาน
แอพพลิเค WSGI ง่าย:
นำเข้าจากเซิร์ฟเวอร์ meinheld
def hello_world (สภาพแวดล้อม, start_response):
& nbsp; สถานะ = '200 ตกลง'
& nbsp; ละเอียด = "สวัสดีชาวโลก"
& nbsp; response_headers = [('ชนิดของเนื้อหา', 'text / plain'), ('ความยาวเนื้อหา', STR (len (Res)))]
& 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: app
ประสิทธิภาพ
meinheld จะใช้ประสิทธิภาพสูง http_parser
(ดู http://github.com/ry/http-parser)
และ use​​ing ห้องสมุดเหตุการณ์ที่มีประสิทธิภาพสูง picoev
(ดู http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)
มาตรฐานที่เรียบง่าย
ม้านั่ง hello_world ง่าย:
def hello_world (สภาพแวดล้อม, start_response):
& nbsp; สถานะ = '200 ตกลง'
& nbsp; ละเอียด = "สวัสดีชาวโลก"
& nbsp; response_headers = [('ชนิดของเนื้อหา', 'text / plain'), ('ความยาวเนื้อหา', STR (len (Res)))]
& nbsp; start_response (สถานะ response_headers)
& nbsp; กลับ [ละเอียด]
ใช้ม้านั่ง Apach:
$ AB -c 100 -n 10000 http://127.0.0.1:8000/
ข้อมูลจำเพาะ
& nbsp; * CPU: Intel (R) Atom (TM) ซีพียู N270 @ 1.60GHz
& nbsp; * Memoy: 1G
& nbsp; * OS: อูบุนตู 10.04
เซิร์ฟเวอร์ร้องขอต่อวินาที
meinheld 0.1 2,927.62 [# / วินาที]
fapws3 0.6 1,293.53 [# / วินาที]
sendfile
. meinheld ใช้ sendfile (2) กว่า wgsi.file_wrapper

ต้องการ

  • หลาม

ซอฟแวร์อื่น ๆ ของนักพัฒนา Yutaka Matsubara

Meinheld
Meinheld

1 Mar 15

ความคิดเห็นที่ meinheld

ความคิดเห็นที่ไม่พบ
เพิ่มความคิดเห็น
เปิดภาพ!