From 9abd16fcbc23306e542aaa5cdc2ea8e9847dbfd7 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Fri, 8 Apr 2016 03:16:18 -0400 Subject: add ability to trigger a sync and measure reactor responsiveness this is bad news though: we're blocking the reactor with the current implementation. what's the culprit?? stay tuned... --- get_ping_rate.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 get_ping_rate.py (limited to 'get_ping_rate.py') diff --git a/get_ping_rate.py b/get_ping_rate.py new file mode 100644 index 0000000..bf11f53 --- /dev/null +++ b/get_ping_rate.py @@ -0,0 +1,7 @@ +import commands +import re + +res = commands.getoutput( + 'httperf --server localhost --port 8080 --num-calls 5 --num-conns 20 ' + '--uri /ping | grep "Connection rate"') +print re.findall('[-+]?([0-9]*\.?[0-9]+)', res)[0] -- cgit v1.2.3