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 --- Makefile | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f9da7d2..53228a5 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,18 @@ # Actual soledad sync soledad-sync-server: - twistd -n web --port 8080 --class=server_with_soledad_syncer.resource + twistd -n web --port 8080 --class=scripts.server_with_soledad_syncer.resource soledad-sync-server-lineprof: - kernprof -l server_with_soledad_syncer.py + kernprof -l ./scripts/server_with_soledad_syncer.py soledad-sync-server-debug: #twistd --profile=stats_obj --profiler=cProfile -n web --port 8080 --class=server_with_soledad_syncer.resource - python -m cProfile -o sync.cprofile server_with_soledad_syncer.py + python -m cProfile -o sync.cprofile ./scripts/server_with_soledad_syncer.py view-lineprofile: - python -m line_profiler server_with_soledad_syncer.py.lprof + python -m line_profiler ./scripts/server_with_soledad_syncer.py.lprof view-profile: @@ -21,9 +21,14 @@ view-profile: measure-ping: httperf --server localhost --port 8080 --num-calls 5 --num-conns 20 --uri /ping +trigger-create-docs: + curl localhost:8080/create-docs + trigger-sync: #time curl localhost:8080/start-sync curl localhost:8080/start-sync + +trigger-stop: curl localhost:8080/stop measure-series: @@ -31,9 +36,16 @@ measure-series: # TODO rm series.log, name it with a timestamp # TODO measure, first of all, the number of seconds from the beginning!!! (right now it's biased) # TODO add cpu/ram usage (ping command COULD RETURN THAT!) - rm -f /tmp/soledadsync/* + #rm -f /tmp/soledadsync/* rm -f ./out/series.log - python measure-perf-series.py + ./scripts/measure_perf_series.py + +graph-image: + gnuplot -e 'call "./scripts/sync_stats.gnuplot" "./out/series.log" "./out/sync-stats.png"' + +graph-view: + gnuplot -e 'call "./scripts/sync_stats.gnuplot" "./out/series.log" ""' -graph-series: - data=./out/series.log ./graphit +kill: + killall -9 twistd + killall -9 python -- cgit v1.2.3