httperf的python包装器。
httperfp的Python项目详细描述
=========
高温等离子体
=========
httperfrb的python端口http://github.com/jmervine/httperfrb。
通过以下方式构建和测试:
$python—版本
Python2.7.3
$uname-s-r-m
Linux 3.2.0-29-通用x86_64
安装“httperf”
====================
当然需要httperf……
Mac电脑
-----
sudo端口安装httperf
debian/ubuntu
------
sudo apt get安装httperf
红帽/centos
------
sudo yum安装httperf
我的“httperf”
----
**这是正确的详细处理所必需的。**
请参见:http://mervine.net/httperf-0-9-1-with-individual-connection-times。
安装/设置
====================
性能化方法
--
$sudo pip安装httperfpy
请参见:http://pypi.python.org/pypi/httperfpy/
来源
-----
只需克隆代码并将签出位置添加到pythonpath。
正在运行测试…
--
1.sudo apt get安装python单元
2.Git克隆https://github.com/jmervine/httperfpy.git
3.CD高温等离子体
4./脚本/单元
用法
----
/usr/bin/envPython
从httperfpy导入httperf
perf=httperf(server=“www.example.com”,
端口=8080,
数量=100)
性能分析器=真
结果=性能运行()
打印结果[“连接时间平均值”]+“为平均值”
打印结果[“连接时间上限”]+“为上限”
您可以使用“httperf.display_options”打印所有可用选项的列表。
将变量和键值传递给httperf
/usr/bin/envPython
从httperfpy导入httperf
参数,键值参数
perf=httperf('hog','ssl',path='/path/to/httperf',
服务器='www.example.com'…)
或仅键值参数
perf=httperf(hog=true,ssl=true,path='/path/to/httperf',
服务器='www.example.com'…)
…
独立解析器…
----
/usr/bin/envPython
从httperfpy导入httperfparser
results=httperfparser.parse(httperf结果字符串)
打印结果[“连接时间平均值”]+“为平均值”
打印结果[“连接时间上限”]+“为上限”
分析器键:
----
-命令
-最大连接脉冲长度
-连接总数
-请求总数
-回复总数
-总测试持续时间
-每秒连接速率
-连接速率
-连接时间\u分钟
-连接时间平均值
-连接时间最长
-连接时间中值
-连接时间
-连接时间连接
-连接长度
-每秒请求速率
-请求速率
-请求大小
-回复率
-回复率平均值
-回复率最高
-回复率
-回复率样本
-回复时间
-回复时间传送
-回复大小标题
-回复大小内容
-回复页脚
-回复大小合计
-回复状态
-回复状态
-回复状态
-回复状态
-回复状态
-CPU时间用户秒
-CPU时间干秒
-CPU时间用户PCT
-CPU时间系统PCT
-CPU时间总计
-网络IO/U KB秒
-净业务流程
-错误总数
-错误客户端超时
-错误套接字超时
-错误连接被拒绝
-错误连接复位
-错误不可用
-错误地址不可用
-错误已满
-其他错误
高温等离子体
=========
httperfrb的python端口http://github.com/jmervine/httperfrb。
通过以下方式构建和测试:
$python—版本
Python2.7.3
$uname-s-r-m
Linux 3.2.0-29-通用x86_64
安装“httperf”
====================
当然需要httperf……
Mac电脑
-----
sudo端口安装httperf
debian/ubuntu
------
sudo apt get安装httperf
红帽/centos
------
sudo yum安装httperf
我的“httperf”
----
**这是正确的详细处理所必需的。**
请参见:http://mervine.net/httperf-0-9-1-with-individual-connection-times。
安装/设置
====================
性能化方法
--
$sudo pip安装httperfpy
请参见:http://pypi.python.org/pypi/httperfpy/
来源
-----
只需克隆代码并将签出位置添加到pythonpath。
正在运行测试…
--
1.sudo apt get安装python单元
2.Git克隆https://github.com/jmervine/httperfpy.git
3.CD高温等离子体
4./脚本/单元
用法
----
/usr/bin/envPython
从httperfpy导入httperf
perf=httperf(server=“www.example.com”,
端口=8080,
数量=100)
性能分析器=真
结果=性能运行()
打印结果[“连接时间平均值”]+“为平均值”
打印结果[“连接时间上限”]+“为上限”
您可以使用“httperf.display_options”打印所有可用选项的列表。
将变量和键值传递给httperf
/usr/bin/envPython
从httperfpy导入httperf
参数,键值参数
perf=httperf('hog','ssl',path='/path/to/httperf',
服务器='www.example.com'…)
或仅键值参数
perf=httperf(hog=true,ssl=true,path='/path/to/httperf',
服务器='www.example.com'…)
…
独立解析器…
----
/usr/bin/envPython
从httperfpy导入httperfparser
results=httperfparser.parse(httperf结果字符串)
打印结果[“连接时间平均值”]+“为平均值”
打印结果[“连接时间上限”]+“为上限”
分析器键:
----
-命令
-最大连接脉冲长度
-连接总数
-请求总数
-回复总数
-总测试持续时间
-每秒连接速率
-连接速率
-连接时间\u分钟
-连接时间平均值
-连接时间最长
-连接时间中值
-连接时间
-连接时间连接
-连接长度
-每秒请求速率
-请求速率
-请求大小
-回复率
-回复率平均值
-回复率最高
-回复率
-回复率样本
-回复时间
-回复时间传送
-回复大小标题
-回复大小内容
-回复页脚
-回复大小合计
-回复状态
-回复状态
-回复状态
-回复状态
-回复状态
-CPU时间用户秒
-CPU时间干秒
-CPU时间用户PCT
-CPU时间系统PCT
-CPU时间总计
-网络IO/U KB秒
-净业务流程
-错误总数
-错误客户端超时
-错误套接字超时
-错误连接被拒绝
-错误连接复位
-错误不可用
-错误地址不可用
-错误已满
-其他错误