REQCLIER CLI can be used to test for responses from any website or measure the Time To First Byte of any websites.
Gopher created using Gopherkon
To run the CLI app, you can use the make all
command. This will build the CLI and execute with default parameters in the console.
- To build the CLI:
make build
( After building the go app the executable can be found inbin/main
. - To Run the CLI:
./bin/main
(See Usages Section to override defaults)
By default the Link tester CLI will make a single request to the https://linktree.melvingeorge10.workers.dev/links
URL and print the full HTTP response without any arguments.
You can also modify the CLI by attaching various arguments:
-
--url <FULL_URL_PATH>
- To modify the URL- e.g:
./bin/main --url https://www.google.com/
- e.g:
-
--profile <NUMBER_OF_REQUESTS_TO_PROFILE>
- To measure the requests- e.g:
./bin/main --url https://www.google.com/ --profile 20
- e.g:
-
--help
will get the full usages of the CLI app in the console
If you provide the --profile
, the CLI app will only show the measurements such as mean, median, slowest, fastest time in milliseconds.
- To execute the CLI in a basic way:
make basic
(Will print the full response from https://linktree.melvingeorge10.workers.dev/) - To profile google.com using the CLI, use the
make profile-google
command.
Any kind of valid PR's are welcome 😃.
See our Contributing.md