mirror of https://github.com/ledisdb/ledisdb.git
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 reverse = flag.Bool("rev", false, "enable zset rev benchmark")
|
||||
var round = flag.Int("r", 1, "benchmark round number")
|
||||
var del = flag.Bool("del", true, "enable del benchmark")
|
||||
|
||||
var wg sync.WaitGroup
|
||||
|
||||
|
@ -281,18 +282,27 @@ func main() {
|
|||
benchSet()
|
||||
benchGet()
|
||||
benchRandGet()
|
||||
|
||||
if *del == true {
|
||||
benchDel()
|
||||
}
|
||||
|
||||
benchPushList()
|
||||
benchRangeList10()
|
||||
benchRangeList50()
|
||||
benchRangeList100()
|
||||
|
||||
if *del == true {
|
||||
benchPopList()
|
||||
}
|
||||
|
||||
benchHset()
|
||||
benchHGet()
|
||||
benchHRandGet()
|
||||
|
||||
if *del == true {
|
||||
benchHDel()
|
||||
}
|
||||
|
||||
benchZAdd()
|
||||
benchZIncr()
|
||||
|
@ -306,7 +316,9 @@ func main() {
|
|||
benchZRevRangeByScore()
|
||||
}
|
||||
|
||||
if *del == true {
|
||||
benchZDel()
|
||||
}
|
||||
|
||||
println("")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue