You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Max rps. If 0 no limit is applied and the DB is stressed up to maximum.
25
+
$ $ ./redisgraph-benchmark-go --help
26
+
Usage of ./redisgraph-benchmark-go:
27
+
-a string
28
+
Password for Redis Auth.
29
+
-c uint
30
+
number of clients. (default 50)
31
+
-continue-on-error
32
+
Continue benchmark in case of error replies.
33
+
-debug int
34
+
Client debug level.
35
+
-enable-exporter-rps
36
+
Push results to redistimeseries exporter in real-time. Time granularity is set via the -reporting-period parameter.
37
+
-exporter-rts-auth string
38
+
RedisTimeSeries Password for Redis Auth.
39
+
-exporter-rts-host string
40
+
RedisTimeSeries hostname. (default "127.0.0.1")
41
+
-exporter-rts-port int
42
+
RedisTimeSeries port. (default 6379)
43
+
-exporter-run-name string
44
+
Run name. (default "perf-run")
45
+
-graph-key string
46
+
graph key. (default "graph")
47
+
-h string
48
+
Server hostname. (default "127.0.0.1")
49
+
-json-out-file string
50
+
Name of json output file to output benchmark results. If not set, will not print to json. (default "benchmark-results.json")
51
+
-n uint
52
+
Total number of requests (default 1000000)
53
+
-p int
54
+
Server port. (default 6379)
55
+
-query value
56
+
Specify a RedisGraph query to send in quotes. Each command that you specify is run with its ratio. For example: -query="CREATE (n)" -query-ratio=1
57
+
-query-ratio value
58
+
The query ratio vs other queries used in the same benchmark. Each command that you specify is run with its ratio. For example: -query="CREATE (n)" -query-ratio=0.5 -query="MATCH (n) RETURN n" -query-ratio=0.5
59
+
-query-ro value
60
+
Specify a RedisGraph read-only query to send in quotes. You can run multiple commands (both read/write) on the same benchmark. Each command that you specify is run with its ratio. For example: -query="CREATE (n)" -query-ratio=0.5 -query-ro="MATCH (n) RETURN n" -query-ratio=0.5
61
+
-random-int-max int
62
+
__rand_int__ upper value limit. __rand_int__ distribution is uniform Random (default 1000000)
63
+
-random-int-min int
64
+
__rand_int__ lower value limit. __rand_int__ distribution is uniform Random (default 1)
65
+
-random-seed int
66
+
Random seed to use. (default 12345)
67
+
-reporting-period duration
68
+
Period to report stats. (default 10s)
69
+
-rps int
70
+
Max rps. If 0 no limit is applied and the DB is stressed up to maximum.
log.Fatalf("When specifiying -query-rate parameter, you need to have the same number of -query and -query-rate parameters. Number of time -query ( %d ) != Number of times -query-params ( %d )", len(benchmarkQueries), len(benchmarkQueryRates))
log.Fatalf("When specifiying -query-rate parameter, you need to have the same number of -query/-query-ro and -query-rate parameters. Number of time -query ( %d ) != Number of times -query-params ( %d )", len(benchmarkQueries), (len(benchmarkQueryRates) +len(benchmarkQueriesRO)))
flag.Var(&benchmarkQueries, "query", "Specify a RedisGraph query to send in quotes. Each command that you specify is run with its ratio. For example: -query=\"CREATE (n)\" -query-ratio=2")
32
-
flag.Var(&benchmarkQueryRates, "query-ratio", "The query ratio vs other queries used in the same benchmark. Each command that you specify is run with its ratio. For example: -query=\"CREATE (n)\" -query-ratio=10 -query=\"MATCH (n) RETURN n\" -query-ratio=1")
31
+
flag.Var(&benchmarkQueries, "query", "Specify a RedisGraph query to send in quotes. Each command that you specify is run with its ratio. For example: -query=\"CREATE (n)\" -query-ratio=1")
32
+
flag.Var(&benchmarkQueriesRO, "query-ro", "Specify a RedisGraph read-only query to send in quotes. You can run multiple commands (both read/write) on the same benchmark. Each command that you specify is run with its ratio. For example: -query=\"CREATE (n)\" -query-ratio=0.5 -query-ro=\"MATCH (n) RETURN n\" -query-ratio=0.5")
33
+
flag.Var(&benchmarkQueryRates, "query-ratio", "The query ratio vs other queries used in the same benchmark. Each command that you specify is run with its ratio. For example: -query=\"CREATE (n)\" -query-ratio=0.5 -query=\"MATCH (n) RETURN n\" -query-ratio=0.5")
33
34
jsonOutputFile:=flag.String("json-out-file", "benchmark-results.json", "Name of json output file to output benchmark results. If not set, will not print to json.")
34
35
cliUpdateTick:=flag.Duration("reporting-period", time.Second*10, "Period to report stats.")
35
36
// data sink
@@ -98,9 +99,20 @@ func main() {
98
99
} else {
99
100
log.Printf("Running in loop until you hit Ctrl+C\n")
0 commit comments