Skip to content

Instantly share code, notes, and snippets.

@mengzhuo
Last active December 16, 2017 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mengzhuo/cd12170e04f2b49329dd4584933d4a2c to your computer and use it in GitHub Desktop.
Save mengzhuo/cd12170e04f2b49329dd4584933d4a2c to your computer and use it in GitHub Desktop.
scw bench go source
#!/bin/bassh
set -e
apt-get update -y -qq
apt-get install build-essential git golang -y -qq
git clone https://go.googlesource.com/go godev --depth=50
GODEV=$HOME/godev
cd $GODEV/src
GOROOT_BOOTSTRAP=$(go env GOROOT) ./make.bash
cd $GODEV/src/runtime
echo =====BENCH BASE=====
$GODEV/bin/go test -run=Memmove -short -v -bench=Memmove --count=5 -timeout=30m
echo =====BENCH BASE END=
git config user.email "tester@scw.com"
git config user.name "tester"
git pull https://go.googlesource.com/go refs/changes/75/83175/3
echo =====BENCH CHANGE===
cd $GODEV/src/runtime
$GODEV/bin/go test -run=Memmove -short -v -bench=Memmove -count=5 -timeout=30m
echo =====BENCH CHANGE END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment