htflood's syntax is heavily inspired from httpie, with some additions to specify count, concurrency and distribution parameters.
htflood -count 128 -concurrency 32 http://google.com
By default htflood will output request data in json-row format. You can however pipe this output into htflood stats
,
which will aggregate the data and output statistics:
htflood -count 128 -concurrency 32 http://google.com | htflood stats
htflood bot -api-key=bigsecret -port=3210
htflood -bots http://localhost:3210,http://localhost:3211 -api-key=bigsecret -count 128 -concurrency 32 http://google.com
When the -bots
flag is used, htflood will split the work among the bots, instead of making the requests iself. This allows for a much larger concurrent number of requests.