rebas-数据源工具应用程序接口示例:
- 使用
http(uri,选项)
连接HTTP接口示例:
npm run example AB http ab -c 10 -n 100 http://127.0.0.1:8082/http
...
Requests per second: 44.35 [#/sec] (mean)
Time per request: 225.502 [ms] (mean)
Time per request: 22.550 [ms] (mean, across all concurrent requests)
- http/管道接口示例:
ab -c 10 -n 100 http://127.0.0.1:8082/http/pipe
...
Requests per second: 53.39 [#/sec] (mean)
性能分析:
-
并发数:10
-
请求数:100
-
每秒请求数:约44.35(普通接口),53.39(管道接口)
-
平均每个请求耗时:225.502毫秒(普通接口),整体请求平均耗时22.550毫秒。
暂无评论