bugfix benchmark

This commit is contained in:
siddontang 2014-08-27 15:56:40 +08:00
parent a3b1e451bb
commit 14537d98c3
1 changed files with 4 additions and 4 deletions

View File

@ -53,8 +53,8 @@ func bench(cmd string, f func()) {
} }
func benchSet() { func benchSet() {
n := rand.Int()
f := func() { f := func() {
n := rand.Int()
waitBench("set", n, n) waitBench("set", n, n)
} }
@ -62,8 +62,8 @@ func benchSet() {
} }
func benchGet() { func benchGet() {
n := rand.Int()
f := func() { f := func() {
n := rand.Int()
waitBench("get", n) waitBench("get", n)
} }
@ -71,8 +71,8 @@ func benchGet() {
} }
func benchIncr() { func benchIncr() {
n := rand.Int()
f := func() { f := func() {
n := rand.Int()
waitBench("incr", n) waitBench("incr", n)
} }
@ -80,8 +80,8 @@ func benchIncr() {
} }
func benchPushList() { func benchPushList() {
n := rand.Int()
f := func() { f := func() {
n := rand.Int()
waitBench("rpush", "mytestlist", n) waitBench("rpush", "mytestlist", n)
} }