commit | 5e07dd38678eb8ca7fb3157a882c28d0d12fa8f0 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Tue May 12 15:37:37 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Tue May 12 15:37:37 2015 +0900 |
tree | ccec9f6000d90dd03052c1129c1a4423f5896841 | |
parent | bb9a8715bdfa36e762836cf6b17c3cd06cab5cb1 [diff] [blame] |
Set GOMAXPROCS appropriately
diff --git a/main.go b/main.go index d8a9592..5eabbb2 100644 --- a/main.go +++ b/main.go
@@ -189,6 +189,7 @@ } func main() { + runtime.GOMAXPROCS(runtime.NumCPU()) parseFlags() if cpuprofile != "" { f, err := os.Create(cpuprofile)