add latency test
This commit is contained in:
parent
2a172bea6a
commit
d38cdb9b8c
1 changed files with 13 additions and 0 deletions
13
test_latency.py
Normal file
13
test_latency.py
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
|
before = time.time()
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
if 'HTTP/1.1 ' in line:
|
||||||
|
diff = time.time() - before
|
||||||
|
print 'headline %dms' % (diff * 1000)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue