Locust使用点滴
2017-01-14 18:26
453 查看
博客原文
安利一篇我翻译的国外大牛的神经网络入门文章
locust的基本使用方法可以直接参考官方文档
这里主要记下一些使用时候遇到的细节需要注意的地方
在最后加上
即正确写法是这样:
安利一篇我翻译的国外大牛的神经网络入门文章
locust的基本使用方法可以直接参考官方文档
这里主要记下一些使用时候遇到的细节需要注意的地方
1. –no-web的使用
参考官方文档,写了一个简单测试,但是运行时候总是无法发起请求:(locust) liujinliu@liujinliu-OptiPlex-7010:~/code/servertest/locust$ locust --host=http://{ip}:{port} --print-stats /home/liujinliu/venv/locust/local/lib/python2.7/site-packages/locust/rpc/__init__.py:6: UserWarning: WARNING: Using pure Python socket RPC implementation instead of zmq. If running in distributed mode, this could cause a performance decrease. We recommend you to install the pyzmq python package when running in distributed mode. warnings.warn("WARNING: Using pure Python socket RPC implementation instead of zmq. If running in distributed mode, this could cause a performance decrease. We recommend you to install the pyzmq python package when running in distributed mode.") [2017-01-14 18:23:46,358] liujinliu-OptiPlex-7010/INFO/locust.main: Starting web monitor at *:8089 [2017-01-14 18:23:46,358] liujinliu-OptiPlex-7010/INFO/locust.main: Starting Locust 0.7.5 Name # reqs # fails Avg Min Max | Median req/s -------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------- Total 0 0(0.00%) 0.00 Name # reqs # fails Avg Min Max | Median req/s -------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------- Total 0 0(0.00%) 0.00 Name # reqs # fails Avg Min Max | Median req/s -------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------- Total 0 0(0.00%) 0.00 Name # reqs # fails Avg Min Max | Median req/s -------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------- Total 0 0(0.00%) 0.00 ^C[2017-01-14 18:23:53,095] liujinliu-OptiPlex-7010/ERROR/stderr: KeyboardInterrupt [2017-01-14 18:23:53,095] liujinliu-OptiPlex-7010/INFO/locust.main: Shutting down (exit code 0), bye. Name # reqs # fails Avg Min Max | Median req/s -------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------- Total 0 0(0.00%) 0.00 Percentage of the requests completed within given times Name # reqs 50% 66% 75% 80% 90% 95% 98% 99% 100% -------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------
在最后加上
--no-web的参数就好了
即正确写法是这样:
locust --host=http://{ip}:{port} --print-stats --no-web
相关文章推荐
- Asp.net开发心得点滴[动态加载的用户控件使用事件委托,交给页面处理的事件无效问题]
- 兔八哥笔记7:WebLogic Platform8.1使用点滴(1)
- MSFlexGrid控件使用点滴记录
- Oracle使用点滴
- Asp.net 2.0 WebPart使用经验点滴
- Sybase数据库使用点滴
- 编程经验点滴(四)——《使用类的成员函数作为线程的执行函数》
- FireBird 的使用点滴(一)
- Log4j使用点滴
- JNI使用技巧点滴
- asp.net技巧点滴(一):在asp.net中使用客户端脚本
- [BOOST]学习使用点滴-2-Timer库[by galphy]
- [BOOST]学习使用点滴-3-Smart_ptr库[by galphy]
- JNI使用技巧点滴
- MRTG使用经验点滴
- 使用WUI点滴(一)
- 内网BT首选:BitComet使用技巧点滴
- .net 使用带参数的SQL语句操作ACCESS 经验点滴
- map容器使用经验点滴
- Asp.net 2.0 WebPart使用经验点滴