|
5#
楼主 |
发表于 2015-10-21 10:49:44
|
只看该作者
谢谢.
我的意思是在非UI的模式下运行jmeter测试,都是在后台命令行中执行.
不过问题已经解决了.
先生成一个jmeter.jmx文件,然后再执行:ant -Dtest=jmeter -f /usr/local/jmeter/extras/build.xml命令.
执行过程中会打印出下面的信息:
[jmeter] summary + 2126 in 20s = 108.8/s Avg: 134 Min: 39 Max: 1566 Err: 0 (0.00%) Active: 20 Started: 20 Finished: 0
[jmeter] summary + 4651 in 30s = 155.0/s Avg: 116 Min: 40 Max: 1146 Err: 0 (0.00%) Active: 20 Started: 20 Finished: 0
[jmeter] summary = 6777 in 50s = 136.8/s Avg: 121 Min: 39 Max: 1566 Err: 0 (0.00%)
[jmeter] summary + 1732 in 11s = 157.4/s Avg: 109 Min: 41 Max: 350 Err: 0 (0.00%) Active: 0 Started: 20 Finished: 20
[jmeter] summary = 8509 in 61s = 140.4/s Avg: 119 Min: 39 Max: 1566 Err: 0 (0.00%)
并会自动生成jmeter.html报告文件.
我想这个140.4/s 应该就是吞吐量TPS吧. |
|