brew install siege
Here is what the above code is Doing:
1. We’re using the requests library to make a GET request to the URL we’re testing.
2. We’re using the time library to time how long it takes for the request to be processed.
3. We’re printing out the time it took to process the request.
4. We’re printing out the status code of the response.