Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
GET /index.html HTTP/1.1\r\n
Host: localhost:3001\r\n
\r\n
GET /index.html HTTP/1.1\r\n
Host: localhost:3001\r\n
Connection: keep-alive\r\n
\r\n
% ./bin/go-meter -t 7 -c 21 -d 30s -u http://localhost:3001/index.html -m "POST" -s ./bin/source.data
Running test threads: 7, connections: 21 in 30s POST http://localhost:3001/index.html
Stats: Min Avg Max
Latency 0 0 9ms
779994 requests in 30.001s, net: in 95MB, out 496MB
HTTP Codes:
200 100.00%
Latency:
0 100.00%
Requests: 25998.93/sec
Net In: 25MBit/sec
Net Out: 132MBit/sec
Transfer: 20MB/sec
export GOMAXPROCS=4
$GOPATH/bin/go-meter -c 64 -d 10s -t 4 -u http://localhost:8081/
Running test threads: 4, connections: 64 in 10s GET http://localhost:8081/
Stats: Min Avg Max
Latency 0 0 9ms
520921 requests in 10s, net: in 49MB, out 33MB
HTTP Codes:
200 100.00%
Latency:
0 100.00%
Requests: 52092.10/sec
Net In: 39MBit/sec
Net Out: 27MBit/sec
Transfer: 8.2MB/sec
./wrk -t 4 -d 10 -c 64 -H "Connection: Keep-Alive" http://localhost:8081/
Running 10s test @ http://localhost:8081/
4 threads and 64 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 631.48us 1.04ms 16.68ms 99.02%
Req/Sec 28.75k 7.13k 64.44k 76.09%
1083840 requests in 10.00s, 109.56MB read
Requests/sec: 108401.72
Transfer/sec: 10.96MB
Нагрузочный тест на Go, версия 2