From 9c1dc66c057dee764e80af875cb60a75e8e3aca4 Mon Sep 17 00:00:00 2001 From: drebs Date: Sun, 1 May 2016 23:02:04 -0300 Subject: dump sync stats to file --- measure-perf-series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'measure-perf-series.py') diff --git a/measure-perf-series.py b/measure-perf-series.py index 5694bc8..e87fcac 100644 --- a/measure-perf-series.py +++ b/measure-perf-series.py @@ -6,7 +6,7 @@ import datetime # you have significant variability in there. POINTS = 200 -commands.getoutput('echo time req/s cpu mem phase > series.log') +commands.getoutput('echo time req/s cpu mem phase > ./out/series.log') start = datetime.datetime.now() for i in range(POINTS): -- cgit v1.2.3 From 31b527a9acc8607e5e03927b3b646b7c832e7058 Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 2 May 2016 20:25:45 -0300 Subject: refactor and make complete test run with script --- measure-perf-series.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 measure-perf-series.py (limited to 'measure-perf-series.py') 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)) -- cgit v1.2.3