benchmark add GOMAXPROCS

This commit is contained in:
siddontang 2014-10-24 20:32:49 +08:00
parent 80b4bf8f6a
commit bae4ed58e4
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import (
"fmt"
"github.com/siddontang/ledisdb/client/go/ledis"
"math/rand"
"runtime"
"sync"
"sync/atomic"
"time"
@ -246,6 +247,8 @@ func benchZRevRangeByRank() {
}
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
flag.Parse()
if *number <= 0 {