The test.json
file only contains {"msg": "ping"}
.
Tested with
- Python v3.9.1
- macOS 11.6.4 (16-inch 2019 MacBook Pro)
- CPU 2.6 GHz
- flask
❯ echo "POST http://localhost:8000/inference" | ./vegeta attack -duration=5s -rate=0 -max-workers=100 -body test.json | tee results.bin | ./
vegeta report
Requests [total, rate, throughput] 3122, 624.16, 610.59
Duration [total, attack, wait] 5.113s, 5.002s, 111.206ms
Latencies [min, mean, 50, 90, 95, 99, max] 10.151ms, 161.981ms, 150.001ms, 198.953ms, 315.383ms, 383.486ms, 439.8ms
Bytes In [total, mean] 81172, 26.00
Bytes Out [total, mean] 81172, 26.00
Success [ratio] 100.00%
Status Codes [code:count] 200:3122
Error Set:
❯ echo "POST http://localhost:8000/inference" | ./vegeta attack -duration=5s -rate=0 -max-workers=100 -body test.json | tee results.bin | ./
vegeta report
Requests [total, rate, throughput] 37156, 7431.25, 7413.06
Duration [total, attack, wait] 5.012s, 5s, 12.268ms
Latencies [min, mean, 50, 90, 95, 99, max] 11.292ms, 13.468ms, 13.1ms, 13.838ms, 14.313ms, 24.981ms, 43.191ms
Bytes In [total, mean] 705964, 19.00
Bytes Out [total, mean] 966056, 26.00
Success [ratio] 100.00%
Status Codes [code:count] 200:37156
Error Set: