golang use uber automaxprocs
import (
"fmt"
_ "go.uber.org/automaxprocs"
"runtime"
"testing"
)
func TestGMP(t *testing.T) {
fmt.Println(runtime.GOMAXPROCS(-1))
}
import (
"fmt"
_ "go.uber.org/automaxprocs"
"runtime"
"testing"
)
func TestGMP(t *testing.T) {
fmt.Println(runtime.GOMAXPROCS(-1))
}