我需要捕获围攻基准工具的最终统计数据。我试过的是
siege -c2 -t10s http://127.0.0.1:3000/ > siege.log 2>&1
但是 siege.log 有很多HTTP/1.1 200 0.00 secs: 16 bytes ==> GET /
优点。
我想要的只是最终统计数据,如下所示
Lifting the server siege...
Transactions: 496 hits
Availability: 100.00 %
Elapsed time: 0.97 secs
Data transferred: 0.01 MB
Response time: 0.00 secs
Transaction rate: 511.34 trans/sec
Throughput: 0.01 MB/sec
Concurrency: 1.82
Successful transactions: 496
Failed transactions: 0
Longest transaction: 0.04
Shortest transaction: 0.00
请建议。提前致谢