commit 0031f2b3c3fe3cb2035759942c10999d0ccb213d Author: David Fifield david@bamsoftware.com Date: Sun Oct 30 17:02:21 2011 -0700
Do a download direct not through the proxy as well, for comparison. --- experiments/throughput/throughput.sh | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/experiments/throughput/throughput.sh b/experiments/throughput/throughput.sh index 7dcbad2..304e5e5 100755 --- a/experiments/throughput/throughput.sh +++ b/experiments/throughput/throughput.sh @@ -79,14 +79,30 @@ visible_sleep 1
"$RESULTS_FILE_NAME"
+# Proxied downloads. declare -a WAIT_PIDS i=0 while [ $i -lt $NUM_CLIENTS ]; do echo "Start downloader $((i + 1))." - ./httpget.py http://localhost:2000/dump >> "$RESULTS_FILE_NAME" & + ./httpget.py -l proxy http://localhost:2000/dump >> "$RESULTS_FILE_NAME" & WAIT_PIDS+=($!) i=$((i + 1)) done for pid in "${WAIT_PIDS[@]}"; do wait "$pid" done +unset WAIT_PIDS + +# Direct downloads. +declare -a WAIT_PIDS +i=0 +while [ $i -lt $NUM_CLIENTS ]; do + echo "Start downloader $((i + 1))." + ./httpget.py -l direct http://localhost:8000/dump >> "$RESULTS_FILE_NAME" & + WAIT_PIDS+=($!) + i=$((i + 1)) +done +for pid in "${WAIT_PIDS[@]}"; do + wait "$pid" +done +unset WAIT_PIDS
tor-commits@lists.torproject.org