From 14537d98c33385bc8e234aa4651ccf451186cbf6 Mon Sep 17 00:00:00 2001 From: siddontang Date: Wed, 27 Aug 2014 15:56:40 +0800 Subject: [PATCH] bugfix benchmark --- cmd/ledis-benchmark/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/ledis-benchmark/main.go b/cmd/ledis-benchmark/main.go index 680f7af..e7347cb 100644 --- a/cmd/ledis-benchmark/main.go +++ b/cmd/ledis-benchmark/main.go @@ -53,8 +53,8 @@ func bench(cmd string, f func()) { } func benchSet() { - n := rand.Int() f := func() { + n := rand.Int() waitBench("set", n, n) } @@ -62,8 +62,8 @@ func benchSet() { } func benchGet() { - n := rand.Int() f := func() { + n := rand.Int() waitBench("get", n) } @@ -71,8 +71,8 @@ func benchGet() { } func benchIncr() { - n := rand.Int() f := func() { + n := rand.Int() waitBench("incr", n) } @@ -80,8 +80,8 @@ func benchIncr() { } func benchPushList() { - n := rand.Int() f := func() { + n := rand.Int() waitBench("rpush", "mytestlist", n) }