Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Switch from go1.5 to go1.6 - #1969

Merged
msmith-techempower merged 2 commits into
TechEmpower:masterfrom
valyala:go1.6
Mar 17, 2016
Merged

msmith-techempower merged 2 commits into
TechEmpower:masterfrom
valyala:go1.6

Conversation

@valyala

@valyala valyala commented Mar 15, 2016

Copy link
Copy Markdown
Contributor

Go 1.6 is out a month ago, so it would be great to run Go tests with it.

@kostya-sh

Copy link
Copy Markdown
Contributor

A while ago I ran go TFB benchmarks using Go 1.5 and 1.6. One thing that I found is that the garbage collector in 1.6 is more accurate at keeping heap size based on GOGC value. GC in 1.5 generally tends to overcommit memory. As result the application compiled with 1.6 uses less memory but performs worse in throughput based benchmark like TFB.

I suggest to raise GOGC to 1000 (from 800) to account for the more accurate GC algorithm in 1.6:

echo "export GOGC=1000" >> $IROOT/go.installed

@methane

methane commented Mar 15, 2016

Copy link
Copy Markdown
Contributor

+1 for @kostya-sh

@valyala

valyala commented Mar 15, 2016

Copy link
Copy Markdown
Contributor Author

@kostya-sh , done.

@valyala

valyala commented Mar 16, 2016

Copy link
Copy Markdown
Contributor Author

It looks like Go/revel* failed to build with go 1.6, since it depends on deprecated code from code.google.com, which has been disabled in January 2016:

package code.google.com/p/go.net/websocket: unable to detect version control system for code.google.com/ path

@msmith-techempower , let's leave revel tests broken until @robfig removes deprecated code.google.com dependency from github.com/robfig/revel/.

@methane

methane commented Mar 16, 2016

Copy link
Copy Markdown
Contributor

@valyala I've noticed it and fixed in #1964. Please ignore it.

@methane

methane commented Mar 16, 2016

Copy link
Copy Markdown
Contributor

Uh...
I haven't noticed about revel-jet and revel-qbs.
I'll fix it.

@msmith-techempower

Copy link
Copy Markdown
Member

I am content with this and Travis tests mostly pass; LGTM!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants