diff options
author | drebs <drebs@riseup.net> | 2017-11-02 09:28:56 -0200 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2017-11-02 09:28:56 -0200 |
commit | b36ebc87f449af5ad7a677350a3ccfc7d26cfb1e (patch) | |
tree | 6dd6e7a15ace7f7e15815546f43d333f74101050 /client-responsiveness/Makefile | |
parent | 01e2a72ce30f0fbb4a027d3246a8ba16e00ae197 (diff) |
move client responsiveness tests to a subfolder
Diffstat (limited to 'client-responsiveness/Makefile')
-rw-r--r-- | client-responsiveness/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/client-responsiveness/Makefile b/client-responsiveness/Makefile new file mode 100644 index 0000000..53228a5 --- /dev/null +++ b/client-responsiveness/Makefile @@ -0,0 +1,51 @@ +# Actual soledad sync + +soledad-sync-server: + twistd -n web --port 8080 --class=scripts.server_with_soledad_syncer.resource + +soledad-sync-server-lineprof: + 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 ./scripts/server_with_soledad_syncer.py + +view-lineprofile: + python -m line_profiler ./scripts/server_with_soledad_syncer.py.lprof + + +view-profile: + cprofilev -f sync.cprofile + +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: + # TODO make sure we have restarted the server, send SIGNUP ? + # 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 ./out/series.log + ./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" ""' + +kill: + killall -9 twistd + killall -9 python |