summaryrefslogtreecommitdiff
path: root/get_ping_rate.py
diff options
context:
space:
mode:
Diffstat (limited to 'get_ping_rate.py')
-rw-r--r--get_ping_rate.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/get_ping_rate.py b/get_ping_rate.py
index bf11f53..442f4dc 100644
--- a/get_ping_rate.py
+++ b/get_ping_rate.py
@@ -1,7 +1,12 @@
import commands
import re
+# ORIGINAL, STANDARD MEASURE (TOTALLY RANDOM)
+#res = commands.getoutput(
+ #'httperf --server localhost --port 8080 --num-calls 5 --num-conns 20 '
+ #'--uri /ping | grep "Connection rate"')
+
res = commands.getoutput(
- 'httperf --server localhost --port 8080 --num-calls 5 --num-conns 20 '
+ 'httperf --server localhost --port 8080 --num-calls 5 --num-conns 10 '
'--uri /ping | grep "Connection rate"')
print re.findall('[-+]?([0-9]*\.?[0-9]+)', res)[0]