A benchmark between the golang net/http and fasthttp libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
440 B

#!/bin/sh
if [ $# -ne 1 ]; then
echo "Usage: $0 user@target.hostname"
exit 1
fi
set -xe
#go generate
GOOS=linux GOARCH=arm GOARM=5 go build -o golang-net-http
ssh $1 start-stop-daemon -x /usr/local/bin/golang-net-http -b -K || true
ssh $1 mkdir -p /usr/local/bin/
scp golang-net-http $1:/usr/local/bin/golang-net-http
ssh $1 start-stop-daemon -x /usr/local/bin/golang-net-http -b -S
ssh $1 pgrep golang-net-http
curl http://$1:8001/