I've made some quick changes to print the results in CSV format.
I need this to investigate an issue with increasing response time and I want to know which step causes this issue.
With these changes it is possible to run httpstat in a loop and write the output to a CSV file which can than be used for analyzing.
Example
$ for i in {1..20}; do httpstat -csv https://google.com >> out.csv && sleep 2; done;
This will print lines that look like this:
2,29,224,64,0,2,32,257,321,321
The columns are in the following order (HTTPS in this case):
dns lookup
tcp connection
tls handshake
server processing
content transfer
namelookup
connect
pretransfer
starttransfer
total
I can prepare a pull request if you think this feature is useful.
The current solution is a bit quick and dirty, so I have to implement it in a proper way before.
I've made some quick changes to print the results in CSV format. I need this to investigate an issue with increasing response time and I want to know which step causes this issue.
With these changes it is possible to run httpstat in a loop and write the output to a CSV file which can than be used for analyzing.
Example
This will print lines that look like this:
The columns are in the following order (HTTPS in this case):
I can prepare a pull request if you think this feature is useful. The current solution is a bit quick and dirty, so I have to implement it in a proper way before.