mirror of
https://github.com/golang/go
synced 2024-10-04 20:11:22 -06:00
6e8875551a
I have included a few important microbenchmarks, but the overall intent is to have mostly end-to-end benchmarks timing real world operations. The jsondata.go file is a summary of agl's activity in various open source repositories. It gets used as test data for many of the benchmarks. Everything links into one binary (even the test data) so that it is easy to run the benchmarks on many computers: there is just one file to copy around. R=golang-dev, r, bradfitz, adg, r CC=golang-dev https://golang.org/cl/5484071
32 lines
858 B
Bash
Executable File
32 lines
858 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2009 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
set -e
|
|
|
|
if [ ! -f env.bash ]; then
|
|
echo 'clean.bash must be run from $GOROOT/src' 1>&2
|
|
exit 1
|
|
fi
|
|
. ./env.bash
|
|
if [ ! -f Make.inc ] ; then
|
|
GOROOT_FINAL=${GOROOT_FINAL:-$GOROOT}
|
|
sed 's!@@GOROOT@@!'"$GOROOT_FINAL"'!' Make.inc.in >Make.inc
|
|
fi
|
|
|
|
if [ "$1" != "--nopkg" ]; then
|
|
rm -rf "$GOROOT"/pkg/${GOOS}_$GOARCH
|
|
fi
|
|
rm -f "$GOROOT"/lib/*.a
|
|
for i in lib9 libbio libmach cmd pkg \
|
|
../misc/cgo/gmp ../misc/cgo/stdio \
|
|
../misc/cgo/life ../misc/cgo/test \
|
|
../misc/dashboard/builder ../misc/goplay\
|
|
../doc/codelab/wiki\
|
|
../test/bench/shootout ../test/bench/garbage ../test/bench/go1
|
|
do
|
|
# Do not use gomake here. It may not be available.
|
|
$MAKE -C "$GOROOT/src/$i" clean
|
|
done
|