arriven / db1000n

MIT License
1.18k stars 208 forks source link

Add `-less-stats` cmd param to group targets by protocols #552

Closed roman-kruglov closed 2 years ago

roman-kruglov commented 2 years ago

Description

Adds a cmd line parameter -less-stats to group all target stats by protocols. Currently the list of stats could be very long and it's not always convenient to observe.

Maybe "fewer" would be more grammatical, but I guess "less" is kinda more conventional for text and more widespread (think of less utility).

Type of change

How Has This Been Tested?

Running in a terminal and observing the output.

Test Configuration

Logs

After the change with -less-stats supplied:

 --- Traffic stats ---
 | Target | Requests attempted | Requests sent | Responses received | Data sent |
 |   http |               8707 |          2491 |               2491 |   0.41 MB |
 |  https |               8225 |          1051 |               1051 |   0.17 MB |
 |    tcp |              37952 |         37944 |                  0 |   0.36 MB |
 |    --- |                --- |           --- |                --- |       --- |
 |  Total |              54884 |         41486 |               3542 |   0.94 MB |