tcping

安装: pip install tcping

➜  ~ tcping api.github.com
Connected to api.github.com[:80]: seq=1 time=236.44 ms
Connected to api.github.com[:80]: seq=2 time=237.99 ms
Connected to api.github.com[:80]: seq=3 time=248.88 ms
Connected to api.github.com[:80]: seq=4 time=233.51 ms
Connected to api.github.com[:80]: seq=5 time=249.23 ms
Connected to api.github.com[:80]: seq=6 time=249.77 ms
Connected to api.github.com[:80]: seq=7 time=235.82 ms
Connected to api.github.com[:80]: seq=8 time=242.30 ms
Connected to api.github.com[:80]: seq=9 time=248.26 ms
Connected to api.github.com[:80]: seq=10 time=251.77 ms

httpstat

安装: pip install httpstat

➜  ~ httpstat sina.com
Connected to 66.102.251.33:80 from 10.10.38.44:57668

HTTP/1.1 200 OK
Date: Wed, 06 Mar 2019 08:27:17 GMT
Content-Type: text/html
Content-Length: 23568
Last-Modified: Wed, 06 Mar 2019 08:25:56 GMT
Connection: keep-alive
ETag: "5c7f8414-5c10"
Expires: Wed, 06 Mar 2019 08:32:17 GMT
Cache-Control: max-age=300
Accept-Ranges: bytes
Set-Cookie: TS0106d18b=0103cff18c8ee7bb820d514fbf85681a3bd12485f543188dc430703de04a9830c396d9d9a0628bdd4ee85da8521d653dfbe365c207; Path=/

Body stored in: /var/folders/vy/b4fqx7zx5z33kr6r6fkczj4m0000gn/T/tmp66CvSx

  DNS Lookup   TCP Connection   Server Processing   Content Transfer
[    32ms    |      171ms     |       176ms       |       449ms      ]
             |                |                   |                  |
    namelookup:32ms           |                   |                  |
                        connect:203ms             |                  |
                                      starttransfer:380ms            |
                                                                 total:829ms

➜  ~