44 "flag"
55 "fmt"
66 hdrhistogram "github.com/HdrHistogram/hdrhistogram-go"
7- "github.com/mediocregopher/radix/v3"
8- "github.com/redislabs/redisgraph-go"
7+ "github.com/RedisGraph/redisgraph-go"
98 "golang.org/x/time/rate"
109 "log"
1110 "math"
@@ -62,7 +61,7 @@ func sendCmdLogic(rg redisgraph.Graph, query string, continueOnError bool, debug
6261 log .Fatalf ("Received an error with the following query(s): %v, error: %v" , query , err )
6362 }
6463 } else {
65- err = graphRunTimeLatencies .RecordValue (int64 (queryResult .RunTime () * 1000 ))
64+ err = graphRunTimeLatencies .RecordValue (int64 (queryResult .InternalExecutionTime () * 1000.0 ))
6665 if err != nil {
6766 log .Fatalf ("Received an error while recording RedisGraph RunTime latencies: %v" , err )
6867 }
@@ -92,7 +91,7 @@ func main() {
9291 host := flag .String ("h" , "127.0.0.1" , "Server hostname." )
9392 port := flag .Int ("p" , 6379 , "Server port." )
9493 rps := flag .Int64 ("rps" , 0 , "Max rps. If 0 no limit is applied and the DB is stressed up to maximum." )
95- password := flag .String ("a" , "" , "Password for Redis Auth." )
94+ // password := flag.String("a", "", "Password for Redis Auth.")
9695 clients := flag .Uint64 ("c" , 50 , "number of clients." )
9796 numberRequests := flag .Uint64 ("n" , 1000000 , "Total number of requests" )
9897 debug := flag .Int ("debug" , 0 , "Client debug level." )
@@ -119,10 +118,6 @@ func main() {
119118 client_update_tick := 1
120119 latencies = hdrhistogram .New (1 , 90000000 , 3 )
121120 graphRunTimeLatencies = hdrhistogram .New (1 , 90000000 , 3 )
122- opts := make ([]radix.DialOpt , 0 )
123- if * password != "" {
124- opts = append (opts , radix .DialAuthPass (* password ))
125- }
126121 connectionStr := fmt .Sprintf ("%s:%d" , * host , * port )
127122 stopChan := make (chan struct {})
128123 // a WaitGroup for the goroutines to tell us they've stopped
0 commit comments