V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
doenitz
V2EX  ›  Python

给大家推荐一个 Python 的 web framework

  •  1
     
  •   doenitz · 2016-07-01 10:54:47 +08:00 · 2051 次点击
    这是一个创建于 3097 天前的主题,其中的信息可能已经有所发展或是发生改变。

    项目名称: karlooper
    GitHub 地址: https://github.com/karldoenitz/karlooper
    项目简介:一个用 Python 开发的单线程一部非阻塞的 web 应用框架,使用 epoll 或 kqueue 进行 io 多路复用。
    性能参数对比:
    服务完全部署在同一台机器上,

    tornado :
    This is ApacheBench, Version 2.3 <$Revision: 655654 $>
    Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Licensed to The Apache Software Foundation, http://www.apache.org/
    
    Benchmarking 127.0.0.1 (be patient).....done
    
    
    Server Software:        TornadoServer/4.0.2
    Server Hostname:        127.0.0.1
    Server Port:            9999
    
    Document Path:          /hello
    Document Length:        12 bytes
    
    Concurrency Level:      10
    Time taken for tests:   0.011 seconds
    Complete requests:      10
    Failed requests:        0
    Write errors:           0
    Total transferred:      2070 bytes
    HTML transferred:       120 bytes
    Requests per second:    946.70 [#/sec] (mean)
    Time per request:       10.563 [ms] (mean)
    Time per request:       1.056 [ms] (mean, across all concurrent requests)
    Transfer rate:          191.37 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0    0   0.2      0       1
    Processing:     1    4   1.9      4       6
    Waiting:        1    3   1.9      3       6
    Total:          1    4   1.8      4       7
    
    Percentage of the requests served within a certain time (ms)
      50%      4
      66%      5
      75%      5
      80%      6
      90%      7
      95%      7
      98%      7
      99%      7
     100%      7 (longest request)
    

    karlooper :
    This is ApacheBench, Version 2.3 <$Revision: 655654 $>
    Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Licensed to The Apache Software Foundation, http://www.apache.org/
    
    Benchmarking 127.0.0.1 (be patient).....done
    
    
    Server Software:
    Server Hostname:        127.0.0.1
    Server Port:            9987
    
    Document Path:          /test/test2
    Document Length:        10 bytes
    
    Concurrency Level:      10
    Time taken for tests:   0.005 seconds
    Complete requests:      10
    Failed requests:        0
    Write errors:           0
    Total transferred:      1738 bytes
    HTML transferred:       110 bytes
    Requests per second:    2157.96 [#/sec] (mean)
    Time per request:       4.634 [ms] (mean)
    Time per request:       0.463 [ms] (mean, across all concurrent requests)
    Transfer rate:          366.26 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0    2   0.6      2       2
    Processing:     1    2   0.6      2       2
    Waiting:        0    1   0.7      1       2
    Total:          2    3   0.5      3       4
    
    Percentage of the requests served within a certain time (ms)
      50%      3
      66%      3
      75%      4
      80%      4
      90%      4
      95%      4
      98%      4
      99%      4
     100%      4 (longest request)
    

    希望大家喜欢,能提出宝贵的意见或建议。

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4679 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:05 · PVG 18:05 · LAX 02:05 · JFK 05:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.