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 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()
|
||||||
benchDel()
|
|
||||||
|
if *del == true {
|
||||||
|
benchDel()
|
||||||
|
}
|
||||||
|
|
||||||
benchPushList()
|
benchPushList()
|
||||||
benchRangeList10()
|
benchRangeList10()
|
||||||
benchRangeList50()
|
benchRangeList50()
|
||||||
benchRangeList100()
|
benchRangeList100()
|
||||||
benchPopList()
|
|
||||||
|
if *del == true {
|
||||||
|
benchPopList()
|
||||||
|
}
|
||||||
|
|
||||||
benchHset()
|
benchHset()
|
||||||
benchHGet()
|
benchHGet()
|
||||||
benchHRandGet()
|
benchHRandGet()
|
||||||
benchHDel()
|
|
||||||
|
if *del == true {
|
||||||
|
benchHDel()
|
||||||
|
}
|
||||||
|
|
||||||
benchZAdd()
|
benchZAdd()
|
||||||
benchZIncr()
|
benchZIncr()
|
||||||
|
@ -306,7 +316,9 @@ func main() {
|
||||||
benchZRevRangeByScore()
|
benchZRevRangeByScore()
|
||||||
}
|
}
|
||||||
|
|
||||||
benchZDel()
|
if *del == true {
|
||||||
|
benchZDel()
|
||||||
|
}
|
||||||
|
|
||||||
println("")
|
println("")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue