1.源文件下载地址:http://vegan.net/tony/supersmack/
2.安装:注意在编译时,可以先把对应的libmysqlclient.so.*拷贝到/usr/lib
3.测试:
[root@DB_Backupsmacks]#super-smack-dmysqlselect-key.smack1010000
QueryBarrelReportforclientsmacker1
connect:max=37msmin=0msavg=10msfrom10clients
Query_typenum_queriesmax_timemin_timeq_per_s
select_index2000000010148.47[root@DB_Backupsmacks]#super-smack-dmysqlupdate-select.smack101000
QueryBarrelReportforclientsmacker
connect:max=2msmin=0msavg=0msfrom10clients
Query_typenum_queriesmax_timemin_timeq_per_s
select_index10000104038.90
update_index10000104038.90在以上测试结果中,*10代表10个客户端同时接入,1000代表每个客户端的查询次数(脚本中,对查询次数做了翻倍处理)
*max、min、avg为客户端最大、最小、平均连接时间
*num_queries、max_time、min_time为总请求次数,最大、最小查询时间(以毫秒为单位)
*q_per_s为每秒处理的请求数