Skip to content

Commit

Permalink
A simple load test script using curl.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Dec 14, 2012
1 parent fa17143 commit 9c448db
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions testscript/curl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

if [ $# != 3 ]; then
echo "$0 <socks addr> <N request> <url>"
exit 1
fi

socks=$1
n=$2
url=$3

for i in `seq 1 $n`; do
curl -s --socks5 $socks $url >/dev/null
if [ $(($i % 1000)) -eq 0 ]; then
echo "finished $i request"
fi
done

0 comments on commit 9c448db

Please sign in to comment.