Created
December 3, 2017 05:01
-
-
Save vubon/8b2d9aed827b658a542a8b5cebcdf377 to your computer and use it in GitHub Desktop.
Checking Rest API Response Time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This script will check server response time in seconds. | |
| """ | |
| import requests | |
| while True: | |
| a = requests.get("your api url").elapsed.total_seconds() | |
| print(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment