This is a simple CLI tool built to solve the Systems Engineering Assignment from Cloudflare.
- Ensure you have the Go compiler installed.
- Run in terminal
go install github.com/khrees2412/linkcli
./linkcli get --url=<the URL or Site Link> --profile=<the number of times to evaluate the link
& e.g./linkcli get --url=https://google.com --profile=6
e.g ./linkcli get --url=https://google.com,https://github.com,https://slack.com --profile=3
All values for fastest, slowest, mean and median are in seconds.
{
"fastest": "<This is the record in seconds of the fastest request amount the number of requests you profiled>",
"slowest": "<This is the record in seconds of the slowest request amount the number of requests you profiled>",
"mean": "<This is the mean of all the requests you profiled>",
"median": "<This is the median of all the requests you profiled>",
"percentageSuccessful": "<This is the percentage of requests that succeeded>",
"errorCodes": "[<This is a list containing all error codes returned>]",
"bytesOfSmallest": "<This is the size of the smallest response>",
"bytesOfLargest": "<This is the size of the largest response>"
}
Simply create an issue, make a PR and link the issue. I'll review and merge. Thank you!
Don't forget to leave a star