Commit f4300efd authored by Anders Wallin's avatar Anders Wallin

py-script initial commit

parent a6ab7ff8
# script for stress-testing mux
import requests
import time
state = 0
count = 0
t0 = time.time()
while True:
r = requests.get('http://192.168.0.66/sp8t:A:STATE:%d' % state)
state = state + 1
if state == 9:
state = 0
count = count +1
#if count == 100:
# break
print count
time.sleep(1)
t1 = time.time()
dt = t1-t0
print dt/count
# time.sleep(1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment