存储Funkload的jmeter的测试结果以供报告。
benchbase的Python项目详细描述
用法
benchbase [–version] [–logfile=LOGFILE] [–database=DATABASE] COMMAND [OPTIONS] [ARGUMENT]
命令
- list
- List the imported benchmark in the database.
- info BID
- Give more information about the benchmark with the bid number (benchmark identifier).
- import [–jmeter|–funkload|–comment=COMMENT] FILE
- Import the benchmark result into the database. Output the BID number. The input file can be gzipped.
- addsar –host HOST [–comment=COMMENT] BID SAR
- Import the text sysstat sar output, the input file can be gzipped.
- report –output REPORT_DIR BID
- Generate the report for the imported benchmark
示例
- benchbase list
- List of imported benchmarks.
- benchbase import -m”Run 42” jmeter-2010.xml
- Import a JMeter benchmark result file, this will output a BID number.
- benchbase addsar -H”localhost” -m”bencher host” 1 /tmp/sysstat-sar.log.gz
- Attach a gzipped sysstat sar file for the bench BID 1.
- benchbase report 1 -o /tmp/report-run42
- Build the report of benchmark BID 1 into /tmp/report-run42 directory.
安装
sudo easy_install benchbase
输入
jmeter
支持的jmeter文件格式是jtl 2.1示例属性。
已使用具有以下配置的ant脚本对此进行了测试:
<jmeter ...> ... <property name="file_format.testlog" value="2.1"/> <property name="jmeter.save.saveservice.output_format" value="xml"/> <property name="jmeter.save.saveservice.bytes" value="true"/> <property name="jmeter.save.saveservice.thread_counts" value="true"/> ... </jmeter>
csv输出也支持10列或12列
10: ['ts', 't', 'lb', 'tn', 'de', 's', 'by', 'ng', 'na', 'lt'], 12: ['ts', 't', 'lb', 'rc', 'rm', 'tn', 'de', 's', 'by', 'ng', 'na', 'lt']}
满载
应该可以处理任何Funkload XML结果文件。
sysstat sar文件
支持的sysstat sar格式是文本输出。例如,你可以 捕捉这样的内容:
sar -d -o /tmp/sar.data 1 100 > /dev/null 2>&1 &
这将在100秒内获取统计数据并将结果存储在文件中。
要获得文本输出,您需要运行以下命令:
LC_ALL=C sar -f /tmp/sar.data -A > /tmp/sar.log