Use all available CPUs

This commit is contained in:
Tomás Senart
2013-08-14 18:24:20 +02:00
parent c8261d7cdd
commit 06a27404fa

View File

@@ -8,9 +8,14 @@ import (
"math/rand" "math/rand"
"net/http" "net/http"
"os" "os"
"runtime"
"time" "time"
) )
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
func main() { func main() {
var ( var (
// Flags // Flags