aboutsummaryrefslogtreecommitdiff
path: root/benches/scripts/http/latency.sh
diff options
context:
space:
mode:
authorGravatar Yujia Qiao <rapiz3142@gmail.com> 2021-12-28 20:04:54 +0800
committerGravatar Yujia Qiao <rapiz3142@gmail.com> 2022-01-02 12:05:21 +0800
commit4a1da9be7fdff51ecc8b24e7c5331883d895937f (patch)
tree8bda34d9ddf021b61f4597a960efca8f1409bde6 /benches/scripts/http/latency.sh
parent1180c7e538564efd69742f22e77453a1b74a5ed2 (diff)
downloadrathole-4a1da9be7fdff51ecc8b24e7c5331883d895937f.tar.gz
rathole-4a1da9be7fdff51ecc8b24e7c5331883d895937f.tar.zst
rathole-4a1da9be7fdff51ecc8b24e7c5331883d895937f.zip
docs: update benchmark and add about memory usage
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