aboutsummaryrefslogtreecommitdiff
path: root/benches/scripts/http/latency.sh
diff options
context:
space:
mode:
Diffstat (limited to 'benches/scripts/http/latency.sh')
-rw-r--r--benches/scripts/http/latency.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/benches/scripts/http/latency.sh b/benches/scripts/http/latency.sh
new file mode 100644
index 0000000..d7e43c3
--- /dev/null
+++ b/benches/scripts/http/latency.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+RATE="1 1000 2000 3000 4000"
+DURATION="60s"
+
+RATHOLE="http://127.0.0.1:5202"
+FRP="http://127.0.0.1:5203"
+
+echo warming up frp
+echo GET $FRP | vegeta attack -duration 10s > /dev/null
+for rate in $RATE; do
+ name="frp-${rate}qps-$DURATION.bin"
+ echo $name
+ echo GET $FRP | vegeta attack -rate $rate -duration $DURATION > $name
+ vegeta report $name
+done
+
+echo warming up rathole
+echo GET $RATHOLE | vegeta attack -duration 10s > /dev/null
+for rate in $RATE; do
+ name="rathole-${rate}qps-$DURATION.bin"
+ echo $name
+ echo GET $RATHOLE | vegeta attack -rate $rate -duration $DURATION > $name
+ vegeta report $name
+done