Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arzzen/curltime

A simple command line (bash/shell) utility to measure HTTP request time with cUrl
https://github.com/arzzen/curltime

bash curl curltime measure pagespeed shell speedtest statistics time

Last synced: 20 days ago
JSON representation

A simple command line (bash/shell) utility to measure HTTP request time with cUrl

Awesome Lists containing this project

README

        

### Bash cUrl time

A command line tool to measure HTTP request time with cUrl.

Measure single HTTP request time or average time of multiple requests.

#### Usage

> ./curltime.sh [url] [attempts]

#### Example:

Command (default attempts = 1):

`$ ./curltime.sh http://www.github.com`

or with attempts

`$ ./curltime.sh http://www.github.com 5`

Output:


Url: www.github.com

+-----------------------------------------------------------------------------------+
| # | Time (seconds) |
+-----------------------------------------------------------------------------------+
| Attempt | Connect | Start transfer | Redirect | Namelookup | Pretransfer | Total |
+-----------------------------------------------------------------------------------+
| 1. | 0.061 | 0.289 | 0.000 | 0.061 | 0.061 | 0.290 |
| 2. | 0.005 | 0.232 | 0.000 | 0.004 | 0.005 | 0.232 |
| 3. | 0.005 | 0.229 | 0.000 | 0.004 | 0.005 | 0.229 |
| 4. | 0.005 | 0.235 | 0.000 | 0.004 | 0.005 | 0.236 |
| 5. | 0.005 | 0.233 | 0.000 | 0.004 | 0.005 | 0.234 |
+-----------------------------------------------------------------------------------+
| summary | 0.016 | 0.243 | - | - | - | 0.244 |
+-----------------------------------------------------------------------------------+