diff options
author | Zach Koopmans <zkoopmans@google.com> | 2020-12-09 11:55:06 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2020-12-09 15:56:08 -0800 |
commit | 992769c7748d886e7ee1580f0c6cfdfa7ce0eb75 (patch) | |
tree | d8cc08dbd93588c7badde91ca1d9dea4ea9edfd7 /test/benchmarks/tools/redis.go | |
parent | 45619ded38b9c9f24b2b7ade812fd903e09ac1b9 (diff) |
Add tensorflow, ffmpeg, and redis jobs.
PiperOrigin-RevId: 346603153
Diffstat (limited to 'test/benchmarks/tools/redis.go')
-rw-r--r-- | test/benchmarks/tools/redis.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/benchmarks/tools/redis.go b/test/benchmarks/tools/redis.go index e35886437..a42e3456e 100644 --- a/test/benchmarks/tools/redis.go +++ b/test/benchmarks/tools/redis.go @@ -29,17 +29,17 @@ type Redis struct { } // MakeCmd returns a redis-benchmark client command. -func (r *Redis) MakeCmd(ip net.IP, port int) []string { +func (r *Redis) MakeCmd(ip net.IP, port, requests int) []string { // There is no -t PING_BULK for redis-benchmark, so adjust the command in that case. // Note that "ping" will run both PING_INLINE and PING_BULK. if r.Operation == "PING_BULK" { return strings.Split( - fmt.Sprintf("redis-benchmark --csv -t ping -h %s -p %d", ip, port), " ") + fmt.Sprintf("redis-benchmark --csv -t ping -h %s -p %d -n %d", ip, port, requests), " ") } // runs redis-benchmark -t operation for 100K requests against server. return strings.Split( - fmt.Sprintf("redis-benchmark --csv -t %s -h %s -p %d", r.Operation, ip, port), " ") + fmt.Sprintf("redis-benchmark --csv -t %s -h %s -p %d -n %d", r.Operation, ip, port, requests), " ") } // Report parses output from redis-benchmark client and reports metrics. |