diff --git a/.gitignore b/.gitignore index 58bd488..ee55028 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ db.json +sj.mcquay.me +tags diff --git a/stress.py b/stress.py new file mode 100644 index 0000000..15356b2 --- /dev/null +++ b/stress.py @@ -0,0 +1,18 @@ +import random +import requests +import time + +start = time.time() +count = 0 +while True: + try: + r = requests.get("http://localhost:8000/hell/from/python/{}".format( + random.randint(0,2000))) + count += 1 + except KeyboardInterrupt: + break + +end = time.time() +print count, end - start +print count / (end - start) +