diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-04-08 15:48:49 -0400 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-04-08 15:48:49 -0400 |
commit | 0ea8b94f67741245d2554bb61b45b5c0ad51dc07 (patch) | |
tree | c8c29d57188ab3457b9b0f33de23657e7ffb0383 /get_ping_rate.py | |
parent | cd9005783d513f7c9900807d1700abe38b3656b6 (diff) |
finer grain in measuresx, 500K payload
Diffstat (limited to 'get_ping_rate.py')
-rw-r--r-- | get_ping_rate.py | 7 |
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] |