Last active
December 16, 2017 12:46
-
-
Save mengzhuo/cd12170e04f2b49329dd4584933d4a2c to your computer and use it in GitHub Desktop.
scw bench go source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 "[email protected]" | |
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