性能测试工具sysbench简介
作者:网络转载 发布时间:[ 2014/1/21 10:58:14 ] 推荐标签:性能测试 测试工具
清理现场
以下是引用片段:
NinGoo:/u01/sysbench/bin>$sysbench --test=fileio --num-threads=16
--file-total-size=300M --file-test-mode=rndrw cleanup
sysbench 0.4.12: multi-threaded system evaluation benchmark
Removing test files...
Mutex测试
以下是引用片段:
NinGoo:/u01/sysbench/bin>$sysbench --test=mutex --num-threads=16
--mutex-num=1024 --mutex-locks=10000 --mutex-loops=5000 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 16
Doing mutex performance test
Threads started!
Done.
Test execution summary:
total time: 1.1561s
total number of events: 16
total time taken by event execution: 18.3831
per-request statistics:
min: 1084.60ms
avg: 1148.94ms
max: 1153.52ms
approx. 95 percentile: 10000000.00ms
Threads fairness:
events (avg/stddev): 1.0000/0.00
execution time (avg/stddev): 1.1489/0.02
内存测试
以下是引用片段:
NinGoo:/u01/sysbench/bin>$sysbench --test=memory --num-threads=16
--memory-block-size=8192 --memory-total-size=1G run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 16
Doing memory operations speed test
Memory block size: 8K
Memory transfer size: 1024M
Memory operations type: write
Memory scope type: global
Threads started!
WARNING: Operation time (0.000000) is less than minimal counted value, counting as 1.000000
WARNING: Percentile statistics will be inaccurate
Done.
Operations performed: 131072 (114162.68 ops/sec)
1024.00 MB transferred (891.90 MB/sec)
Test execution summary:
total time: 1.1481s
total number of events: 131072
total time taken by event execution: 16.0448
per-request statistics:
min: 0.00ms
avg: 0.12ms
max: 3.60ms
approx. 95 percentile: 0.01ms
Threads fairness:
events (avg/stddev): 8192.0000/192.89
execution time (avg/stddev): 1.0028/0.00
相关推荐
更新发布
功能测试和接口测试的区别
2023/3/23 14:23:39如何写好测试用例文档
2023/3/22 16:17:39常用的选择回归测试的方式有哪些?
2022/6/14 16:14:27测试流程中需要重点把关几个过程?
2021/10/18 15:37:44性能测试的七种方法
2021/9/17 15:19:29全链路压测优化思路
2021/9/14 15:42:25性能测试流程浅谈
2021/5/28 17:25:47常见的APP性能测试指标
2021/5/8 17:01:11