https://github.com/dotnetcarpenter/curltime
curltime is the codification of an excellent answer on SO: https://stackoverflow.com/a/22625150/205696
https://github.com/dotnetcarpenter/curltime
cc-by-sa-4-0 curl
Last synced: 10 months ago
JSON representation
curltime is the codification of an excellent answer on SO: https://stackoverflow.com/a/22625150/205696
- Host: GitHub
- URL: https://github.com/dotnetcarpenter/curltime
- Owner: dotnetCarpenter
- License: cc-by-sa-4.0
- Created: 2023-01-28T13:45:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T16:11:34.000Z (about 3 years ago)
- Last Synced: 2025-02-14T08:12:31.195Z (12 months ago)
- Topics: cc-by-sa-4-0, curl
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# curltime
## Example output
```
$ curltime example.com
Stats for https://example.com/
http version: 2
time_namelookup: 0.005929s
time_connect: 0.164036s
time_appconnect: 0.442980s
time_pretransfer: 0.443290s
time_redirect: 0.000000s (0 redirects)
time_starttransfer: 0.564174s
----------
time_total: 0.564367s
```
## Usage
`curltime` is the codification of an excellent answer on SO: https://stackoverflow.com/a/22625150/205696
```
Usage: ./curltime [--url http://subdomain.example.com | example.com]
curltime version 0.2.1
If --url is not used, the last argument will be prefixed with "https://"
and postfixed with "/".
The output is controlled by
./curl-format.txt
See https://everything.curl.dev/usingcurl/verbose/writeout#available-write-out-variables
for available variables.
Parameters:
-h, --help display this help and exit
-u, --url write raw URL directly to cURL
```
## Installation
```sh
git clone git@github.com:dotnetCarpenter/curltime.git
cd curltime
# for bash
echo "\nexport PATH="$PWD:\$PATH"" >> ~/.bashrc
# OR
echo "\nexport PATH="$PWD:\$PATH"" >> ~/.profile
# for zsh
echo "\nexport PATH="$PWD:\$PATH"" >> ~/.zsh
#OR
echo "\nexport PATH="$PWD:\$PATH"" >> ~/.zprofile
```
> _Personally, I always use the profile file for my custom stuff._
## CC BY-SA 4.0 License
[Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/)
Which is the same license used by [stackoverflow.com](https://stackoverflow.com/legal/terms-of-service/public#licensing).