summaryrefslogtreecommitdiff
path: root/measure-perf-series.py
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2016-05-02 20:25:45 -0300
committerdrebs <drebs@riseup.net>2016-05-02 20:44:20 -0300
commit31b527a9acc8607e5e03927b3b646b7c832e7058 (patch)
tree0198120076f62027bbbaf70eed6358df012d4cde /measure-perf-series.py
parent9c1dc66c057dee764e80af875cb60a75e8e3aca4 (diff)
refactor and make complete test run with script
Diffstat (limited to 'measure-perf-series.py')
-rw-r--r--measure-perf-series.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/measure-perf-series.py b/measure-perf-series.py
deleted file mode 100644
index e87fcac..0000000
--- a/measure-perf-series.py
+++ /dev/null
@@ -1,20 +0,0 @@
-import commands
-import datetime
-
-# How many points to measure. Make sure that you leave the baseline
-# running for a significative amount before triggering the sync, it's possible
-# you have significant variability in there.
-POINTS = 200
-
-commands.getoutput('echo time req/s cpu mem phase > ./out/series.log')
-start = datetime.datetime.now()
-
-for i in range(POINTS):
- value = commands.getoutput('python get_ping_rate.py')
- print "Step", i, "...", value
- stats = commands.getoutput('python get_client_cpu_mem.py')
- cpu, mem, phase = stats.split()
- now = datetime.datetime.now()
- secs = (now - start).total_seconds()
- commands.getoutput(
- 'echo %s\t%s\t%s\t%s\t%s >> series.log' % (secs, value, cpu, mem, phase))