forked from mirror/ledisdb
benchmark add del flag
This commit is contained in:
parent
fefc39c429
commit
805de7239b
|
@ -17,6 +17,7 @@ var number = flag.Int("n", 1000, "request number")
|
||||||
var clients = flag.Int("c", 50, "number of clients")
|
var clients = flag.Int("c", 50, "number of clients")
|
||||||
var reverse = flag.Bool("rev", false, "enable zset rev benchmark")
|
var reverse = flag.Bool("rev", false, "enable zset rev benchmark")
|
||||||
var round = flag.Int("r", 1, "benchmark round number")
|
var round = flag.Int("r", 1, "benchmark round number")
|
||||||
|
var del = flag.Bool("del", true, "enable del benchmark")
|
||||||
|
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
|
|
||||||
|
@ -281,18 +282,27 @@ func main() {
|
||||||
benchSet()
|
benchSet()
|
||||||
benchGet()
|
benchGet()
|
||||||
benchRandGet()
|
benchRandGet()
|
||||||
|
|
||||||
|
if *del == true {
|
||||||
benchDel()
|
benchDel()
|
||||||
|
}
|
||||||
|
|
||||||
benchPushList()
|
benchPushList()
|
||||||
benchRangeList10()
|
benchRangeList10()
|
||||||
benchRangeList50()
|
benchRangeList50()
|
||||||
benchRangeList100()
|
benchRangeList100()
|
||||||
|
|
||||||
|
if *del == true {
|
||||||
benchPopList()
|
benchPopList()
|
||||||
|
}
|
||||||
|
|
||||||
benchHset()
|
benchHset()
|
||||||
benchHGet()
|
benchHGet()
|
||||||
benchHRandGet()
|
benchHRandGet()
|
||||||
|
|
||||||
|
if *del == true {
|
||||||
benchHDel()
|
benchHDel()
|
||||||
|
}
|
||||||
|
|
||||||
benchZAdd()
|
benchZAdd()
|
||||||
benchZIncr()
|
benchZIncr()
|
||||||
|
@ -306,7 +316,9 @@ func main() {
|
||||||
benchZRevRangeByScore()
|
benchZRevRangeByScore()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *del == true {
|
||||||
benchZDel()
|
benchZDel()
|
||||||
|
}
|
||||||
|
|
||||||
println("")
|
println("")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue