aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
index 30c46d0..7c349d0 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -20,6 +20,8 @@ limits=(\
)
num_workers=16
input_file=example.lst
+response_max_mib=8
+metrics_interval=10s
###
# Other options
@@ -36,6 +38,8 @@ function main() {
debug "limits=${#limits[@]} (${limits[@]})"
debug "num_workers=$num_workers"
debug "input_file=$input_file ($num_sites sites)"
+ debug "response_max_mib=$response_max_mib"
+ debug "metrics_interval=$metrics_interval"
debug "tmp_dir=$tmp_dir"
debug "out_dir=$out_dir"
debug "mullvad_wait_s=$mullvad_wait_s"
@@ -71,7 +75,8 @@ function main() {
shuf -o "$tmp_dir/input.lst" "$input_file"
stdout_file=$tmp_dir/$relay-$limit.stdout
stderr_file=$tmp_dir/$relay-$limit.stderr
- onion-grab -i "$tmp_dir/input.lst" -t "$timeout_s"s -l "$limit" -w "$num_workers" >"$stdout_file" 2>"$stderr_file"
+ onion-grab -i "$tmp_dir/input.lst" -t "$timeout_s"s -l "$limit" -w "$num_workers"\
+ -r "$response_max_mib" -m "$metrics_interval" >"$stdout_file" 2>"$stderr_file"
i=$(( $i + 1 ))
done