bombardier跨平臺 HTTP 基準(zhǔn)測試工具
bombardier 是一個 HTTP(S) 基準(zhǔn)測試工具。它是用 Go 編程語言編寫的,使用 fasthttp 代替 Go 的默認(rèn) http 庫。
如果你需要測試 HTTP/2.x 服務(wù)或想使用一個更符合 RFC 標(biāo)準(zhǔn)的 HTTP 客戶端,在 bombardier v1.1及以上版本中,你現(xiàn)在可以使用 net/http 客戶端。
在 go1.8 及更高版本上測試。
示例:
> bombardier -c 125 -n 10000000 http://localhost:8080
Bombarding http://localhost:8080 with 10000000 requests using 125 connections
10000000 / 10000000 [============================================] 100.00% 37s Done!
Statistics Avg Stdev Max
Reqs/sec 264560.00 10733.06 268434
Latency 471.00us 522.34us 51.00ms
HTTP codes:
1xx - 0, 2xx - 10000000, 3xx - 0, 4xx - 0, 5xx - 0
others - 0
Throughput: 292.92MB/s
> bombardier -c 200 -d 10s -l http://ya.ru
Bombarding http://ya.ru for 10s using 200 connections
[=========================================================================] 10s Done!
Statistics Avg Stdev Max
Reqs/sec 6607.00 524.56 7109
Latency 29.86ms 5.36ms 305.02ms
Latency Distribution
50% 28.00ms
75% 32.00ms
90% 34.00ms
99% 48.00ms
HTTP codes:
1xx - 0, 2xx - 0, 3xx - 66561, 4xx - 0, 5xx - 0
others - 5
Errors:
dialing to the given TCP address timed out - 5
Throughput: 3.06MB/s評論
圖片
表情
