Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/arzzen/curltime
- Owner: arzzen
- License: mit
- Created: 2016-03-11T14:45:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T03:48:56.000Z (8 months ago)
- Last Synced: 2024-08-21T21:27:53.528Z (2 months ago)
- Topics: bash, curl, curltime, measure, pagespeed, shell, speedtest, statistics, time
- Language: Shell
- Size: 6.84 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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 |
+-----------------------------------------------------------------------------------+