如下图所示,是性能测试反馈结果的一个截图。
问题:
1、有没有类似的这种接口性能测试工具,可以测出哪个API接口中的哪个方法执行时间太长,超时时间,超时方法,超时线程这些元素都可以展现出来的?
2、或者有没有集成在项目中的性能测试工具?可以更好的多自己的API接口进行性能测试 压力测试,这样对于系统中一些方法采用同步或异步可以提供设计的参考?
使用Apache中的ab的测试内容,但是好像用起来不是很方便,有没有集成了IDE的工具呢?
D:\alibaba\tools\apache-2.2.15\bin>ab -n 100 -c 10 http://idcm.alitest.com/tboss
/web/workorder/asset/upDownList.htm
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking idcm.alitest.com (be patient).....done
Server Software:
Server Hostname: idcm.alitest.com
Server Port: 80
Document Path: /tboss/web/workorder/asset/upDownList.htm
Document Length: 0 bytes
Concurrency Level: 10
Time taken for tests: 0.064 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Non-2xx responses: 100
Total transferred: 30700 bytes
HTML transferred: 0 bytes
Requests per second: 1562.35 [#/sec] (mean)
Time per request: 6.401 [ms] (mean)
Time per request: 0.640 [ms] (mean, across all concurrent requests)
Transfer rate: 468.40 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 1
Processing: 0 4 11.3 1 51
Waiting: 0 4 11.2 1 51
Total: 0 4 11.3 1 51
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 1
80% 1
90% 20
95% 40
98% 44
99% 51
100% 51 (longest request)
D:\alibaba\tools\apache-2.2.15\bin>
谢谢各位~~
AB はストレス テストに使用できます