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
xchange
V2EX  ›  Python

AB 测试 Gunicorn 时 Failed requests 数量惊人是怎么回事?

  •  
  •   xchange · 2016-03-22 14:51:20 +08:00 · 2740 次点击
    这是一个创建于 2950 天前的主题,其中的信息可能已经有所发展或是发生改变。

    $ ab -n 10000 -c 100 http://127.0.0.1:8000/random

    Server Software: gunicorn/19.4.5

    Server Hostname: 127.0.0.1

    Server Port: 8000

    Document Path: /random

    Document Length: 12379 bytes

    Concurrency Level: 100

    Time taken for tests: 17.068 seconds

    Complete requests: 10000

    Failed requests: 9790 # 大部分请求都失败了?

    (Connect: 0, Receive: 0, Length: 9790, Exceptions: 0)

    Total transferred: 125432017 bytes

    HTML transferred: 123732017 bytes # 从传输的数据量来看好像又没问题,差不多正好是 1 万个请求应该传输的字节数

    Requests per second: 585.91 [#/sec] (mean)

    Time per request: 170.676 [ms] (mean)

    Time per request: 1.707 [ms] (mean, across all concurrent requests)

    Transfer rate: 7176.89 [Kbytes/sec] received

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