Print CPU and GOMAXPROCS when running integration tests
Hopefully make it easier to reproduce the test env locally.pull/2375/head
parent
4cc106887c
commit
6590653528
|
@ -12,6 +12,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"testing"
|
||||
|
@ -21,6 +22,10 @@ import (
|
|||
main "github.com/influxdb/influxdb/cmd/influxd"
|
||||
)
|
||||
|
||||
func init() {
|
||||
fmt.Printf("System Info: CPU=%d GOMAXPROCS=%d\n", runtime.NumCPU(), runtime.GOMAXPROCS(0))
|
||||
}
|
||||
|
||||
const (
|
||||
// Use a prime batch size, so that internal batching code, which most likely
|
||||
// uses nice round batches, has to deal with leftover.
|
||||
|
|
Loading…
Reference in New Issue