Browse Source

Merge pull request #1692 from methane/gogc

Go: Increase GOGC
Hamilton Turner 10 years ago
parent
commit
34ed6afaed

+ 2 - 1
frameworks/Go/beego/setup.sh

@@ -2,6 +2,7 @@
 # Set the root of our go installation
 # Set the root of our go installation
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
 
 
@@ -12,4 +13,4 @@ export PATH="$GOROOT/bin:$PATH"
 go get github.com/astaxie/beego
 go get github.com/astaxie/beego
 go get github.com/go-sql-driver/mysql
 go get github.com/go-sql-driver/mysql
 
 
-go run src/hello/hello.go &
+go run src/hello/hello.go &

+ 2 - 1
frameworks/Go/falcore/setup.sh

@@ -2,6 +2,7 @@
 # Set the root of our go installation
 # Set the root of our go installation
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/framework_benchmarks/falcore.go
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/framework_benchmarks/falcore.go
 
 
@@ -9,4 +10,4 @@ sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/framework_benchmarks/falco
 export PATH="$GOROOT/bin:$PATH"
 export PATH="$GOROOT/bin:$PATH"
 
 
 go get ./...
 go get ./...
-go run src/framework_benchmarks/falcore.go &
+go run src/framework_benchmarks/falcore.go &

+ 2 - 1
frameworks/Go/gin/setup.sh

@@ -2,6 +2,7 @@
 # Set the root of our go installation
 # Set the root of our go installation
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 # Where to find the go executable
 # Where to find the go executable
 export PATH="$GOROOT/bin:$PATH"
 export PATH="$GOROOT/bin:$PATH"
@@ -9,4 +10,4 @@ export PATH="$GOROOT/bin:$PATH"
 go get github.com/gin-gonic/gin
 go get github.com/gin-gonic/gin
 go get github.com/go-sql-driver/mysql
 go get github.com/go-sql-driver/mysql
 
 
-go run hello.go &
+go run hello.go &

+ 2 - 1
frameworks/Go/go-mongodb/setup.sh

@@ -3,10 +3,11 @@
 # Set the root of our go installation
 # Set the root of our go installation
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 # Where to find the go executable
 # Where to find the go executable
 export PATH="$GOROOT/bin:$PATH"
 export PATH="$GOROOT/bin:$PATH"
 
 
 go get ./...
 go get ./...
 
 
-go run src/hello/hello.go &
+go run src/hello/hello.go &

+ 2 - 1
frameworks/Go/go/setup.sh

@@ -2,6 +2,7 @@
 # Set the root of our go installation
 # Set the root of our go installation
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
 
 
@@ -10,4 +11,4 @@ export PATH="$GOROOT/bin:$PATH"
 
 
 go get ./...
 go get ./...
 
 
-go run src/hello/hello.go &
+go run src/hello/hello.go &

+ 1 - 0
frameworks/Go/go/setup_prefork.sh

@@ -3,6 +3,7 @@
 # Set the root of our go installation
 # Set the root of our go installation
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
 
 

+ 1 - 1
frameworks/Go/goji/setup.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
 
 
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
-
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 # Where to find the go executable
 # Where to find the go executable
 export PATH="$GOROOT/bin:$PATH"
 export PATH="$GOROOT/bin:$PATH"

+ 2 - 1
frameworks/Go/revel-jet/setup.sh

@@ -2,6 +2,7 @@
 # Set the root of our go installation
 # Set the root of our go installation
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/benchmark/conf/app.conf
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/benchmark/conf/app.conf
 
 
@@ -10,4 +11,4 @@ export PATH="$GOROOT/bin:$PATH"
 
 
 go get -u github.com/robfig/revel/revel github.com/eaigner/jet
 go get -u github.com/robfig/revel/revel github.com/eaigner/jet
 go build -o bin/revel github.com/robfig/revel/revel
 go build -o bin/revel github.com/robfig/revel/revel
-bin/revel run benchmark prod &
+bin/revel run benchmark prod &

+ 2 - 1
frameworks/Go/revel-qbs/setup.sh

@@ -2,6 +2,7 @@
 # Set the root of our go installation
 # Set the root of our go installation
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/benchmark/conf/app.conf
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/benchmark/conf/app.conf
 
 
@@ -10,4 +11,4 @@ export PATH="$GOROOT/bin:$PATH"
 
 
 go get -u github.com/robfig/revel/revel github.com/coocood/qbs
 go get -u github.com/robfig/revel/revel github.com/coocood/qbs
 go build -o bin/revel github.com/robfig/revel/revel
 go build -o bin/revel github.com/robfig/revel/revel
-bin/revel run benchmark prod &
+bin/revel run benchmark prod &

+ 2 - 1
frameworks/Go/revel/setup.sh

@@ -2,6 +2,7 @@
 # Set the root of our go installation
 # Set the root of our go installation
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/benchmark/conf/app.conf
 sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/benchmark/conf/app.conf
 
 
@@ -10,4 +11,4 @@ export PATH="$GOROOT/bin:$PATH"
 
 
 go get -u github.com/robfig/revel/revel
 go get -u github.com/robfig/revel/revel
 go build -o bin/revel github.com/robfig/revel/revel
 go build -o bin/revel github.com/robfig/revel/revel
-bin/revel run benchmark prod &
+bin/revel run benchmark prod &

+ 2 - 1
frameworks/Go/webgo/setup.sh

@@ -2,10 +2,11 @@
 # Set the root of our go installation
 # Set the root of our go installation
 export GOROOT=${IROOT}/go
 export GOROOT=${IROOT}/go
 export GOPATH=${TROOT}
 export GOPATH=${TROOT}
+export GOGC=800
 
 
 # Where to find the go executable
 # Where to find the go executable
 export PATH="$GOROOT/bin:$PATH"
 export PATH="$GOROOT/bin:$PATH"
 
 
 go get github.com/hoisie/web
 go get github.com/hoisie/web
 
 
-go run src/hello/hello.go &
+go run src/hello/hello.go &