Skip to content

Commit 020377e

Browse files
authored
added support for zrevrank, zrank, zincrby and zrem (#182)
* added support for zrevrank * added support for zrank. * added support for zincrby * added support for zrem, zincrby zrank and zrevrank * adding -c 1 and -t 1 since we are operating on a single key. more clients only create contention.
1 parent fa7bffb commit 020377e

4 files changed

+148
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 0.4
2+
name: memtier_benchmark-1key-zincrby-1M-elements-pipeline-1
3+
description: 'Runs memtier_benchmark, for a keyspace length of 1 SORTED SET key. The SORTED SET contains 1M elements and we increment the score of memebers using ZINCRBY.'
4+
dbconfig:
5+
configuration-parameters:
6+
save: '""'
7+
preload_tool:
8+
run_image: redislabs/memtier_benchmark:edge
9+
tool: memtier_benchmark
10+
arguments: --command="ZADD key1 __key__ __key__" --command-key-pattern=P --key-maximum 1000000 --key-prefix "" -n 1000000 --hide-histogram -t 1 -c 1
11+
tested-groups:
12+
- sorted-set
13+
tested-commands:
14+
- zincrby
15+
redis-topologies:
16+
- oss-standalone
17+
build-variants:
18+
- gcc:8.5.0-amd64-debian-buster-default
19+
clientconfig:
20+
run_image: redislabs/memtier_benchmark:edge
21+
tool: memtier_benchmark
22+
arguments: --command="ZINCRBY key1 1 __key__" --key-maximum 1000000 --command-key-pattern=R --key-prefix "" --hide-histogram --test-time 180 --pipeline 1 -c 1 -t 1
23+
resources:
24+
requests:
25+
cpus: '4'
26+
memory: 2g
27+
exporter:
28+
redistimeseries:
29+
break_by:
30+
- version
31+
- commit
32+
timemetric: $."ALL STATS".Runtime."Start time"
33+
metrics:
34+
- $."ALL STATS".Totals."Ops/sec"
35+
- $."ALL STATS".Totals."Latency"
36+
- $."ALL STATS".Totals."Misses/sec"
37+
- $."ALL STATS".Totals."Percentile Latencies"."p50.00"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 0.4
2+
name: memtier_benchmark-1key-zrank-1M-elements-pipeline-1
3+
description: 'Runs memtier_benchmark, for a keyspace length of 1 SORTED SET key. The SORTED SET contains 1M elements and we query it using ZRANK.'
4+
dbconfig:
5+
configuration-parameters:
6+
save: '""'
7+
preload_tool:
8+
run_image: redislabs/memtier_benchmark:edge
9+
tool: memtier_benchmark
10+
arguments: --command="ZADD key1 __key__ __key__" --command-key-pattern=P --key-maximum 1000000 --key-prefix "" -n 1000000 --hide-histogram -t 1 -c 1
11+
tested-groups:
12+
- sorted-set
13+
tested-commands:
14+
- zrank
15+
redis-topologies:
16+
- oss-standalone
17+
build-variants:
18+
- gcc:8.5.0-amd64-debian-buster-default
19+
clientconfig:
20+
run_image: redislabs/memtier_benchmark:edge
21+
tool: memtier_benchmark
22+
arguments: --command="ZRANK key1 __key__" --key-maximum 1000000 --command-key-pattern=R --key-prefix "" --hide-histogram --test-time 180 --pipeline 1 -c 1 -t 1
23+
resources:
24+
requests:
25+
cpus: '4'
26+
memory: 2g
27+
exporter:
28+
redistimeseries:
29+
break_by:
30+
- version
31+
- commit
32+
timemetric: $."ALL STATS".Runtime."Start time"
33+
metrics:
34+
- $."ALL STATS".Totals."Ops/sec"
35+
- $."ALL STATS".Totals."Latency"
36+
- $."ALL STATS".Totals."Misses/sec"
37+
- $."ALL STATS".Totals."Percentile Latencies"."p50.00"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 0.4
2+
name: memtier_benchmark-1key-zrem-5M-elements-pipeline-1
3+
description: 'Runs memtier_benchmark, for a keyspace length of 1 SORTED SET key. The SORTED SET contains 5M elements and we remove members using ZREM. Throughout the course of the benchmark,the sorted set contains fewer members as we continuously remove them. The chance that we ask for a member to be removed, which was already removed, also increases. Starting with a large number of members helps us to have suffienct number of members for the duration of the benchmark, however the preload stage takes longer to complete. NOTE: using the --randomize flag ensures that we continue to remove elements the longer we run the test. Without the flag, we stop removing elements after some time, possibly we keep generating the same random numbers. '
4+
dbconfig:
5+
configuration-parameters:
6+
save: '""'
7+
preload_tool:
8+
run_image: redislabs/memtier_benchmark:edge
9+
tool: memtier_benchmark
10+
arguments: --command="ZADD key1 __key__ __key__" --command-key-pattern=P --key-maximum 5000000 --key-prefix "" -n 5000000 --hide-histogram -t 1 -c 1
11+
tested-groups:
12+
- sorted-set
13+
tested-commands:
14+
- zrem
15+
redis-topologies:
16+
- oss-standalone
17+
build-variants:
18+
- gcc:8.5.0-amd64-debian-buster-default
19+
clientconfig:
20+
run_image: redislabs/memtier_benchmark:edge
21+
tool: memtier_benchmark
22+
arguments: --command="ZREM key1 __key__" --key-maximum 5000000 --command-key-pattern=R --key-prefix "" --hide-histogram --test-time 180 --pipeline 1 -c 1 -t 1 --randomize
23+
resources:
24+
requests:
25+
cpus: '4'
26+
memory: 2g
27+
exporter:
28+
redistimeseries:
29+
break_by:
30+
- version
31+
- commit
32+
timemetric: $."ALL STATS".Runtime."Start time"
33+
metrics:
34+
- $."ALL STATS".Totals."Ops/sec"
35+
- $."ALL STATS".Totals."Latency"
36+
- $."ALL STATS".Totals."Misses/sec"
37+
- $."ALL STATS".Totals."Percentile Latencies"."p50.00"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 0.4
2+
name: memtier_benchmark-1key-zrevrank-1M-elements-pipeline-1
3+
description: 'Runs memtier_benchmark, for a keyspace length of 1 SORTED SET key. The SORTED SET contains 1M elements and we query it using ZREVRANK.'
4+
dbconfig:
5+
configuration-parameters:
6+
save: '""'
7+
preload_tool:
8+
run_image: redislabs/memtier_benchmark:edge
9+
tool: memtier_benchmark
10+
arguments: --command="ZADD key1 __key__ __key__" --command-key-pattern=P --key-maximum 1000000 --key-prefix "" -n 1000000 --hide-histogram -t 1 -c 1
11+
tested-groups:
12+
- sorted-set
13+
tested-commands:
14+
- zrevrank
15+
redis-topologies:
16+
- oss-standalone
17+
build-variants:
18+
- gcc:8.5.0-amd64-debian-buster-default
19+
clientconfig:
20+
run_image: redislabs/memtier_benchmark:edge
21+
tool: memtier_benchmark
22+
arguments: --command="ZREVRANK key1 __key__" --key-maximum 1000000 --command-key-pattern=R --key-prefix "" --hide-histogram --test-time 180 --pipeline 1 -c 1 -t 1
23+
resources:
24+
requests:
25+
cpus: '4'
26+
memory: 2g
27+
exporter:
28+
redistimeseries:
29+
break_by:
30+
- version
31+
- commit
32+
timemetric: $."ALL STATS".Runtime."Start time"
33+
metrics:
34+
- $."ALL STATS".Totals."Ops/sec"
35+
- $."ALL STATS".Totals."Latency"
36+
- $."ALL STATS".Totals."Misses/sec"
37+
- $."ALL STATS".Totals."Percentile Latencies"."p50.00"

0 commit comments

Comments
 (0)