Skip to content

Commit c354a5d

Browse files
committed
Add XREADGROUP benchmark with NOACK option
- Add new test suite memtier_benchmark-stream-10M-entries-xreadgroup-count-100-noack.yml - Tests XREADGROUP performance with NOACK flag to skip message acknowledgment tracking - Uses same 10M stream entries setup as existing XREADGROUP test for comparison - Fix YAML formatting inconsistencies across other stream benchmark files (indentation and quote styles)
1 parent 8dfc6bf commit c354a5d

File tree

3 files changed

+48
-10
lines changed

3 files changed

+48
-10
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: 0.4
2+
name: memtier_benchmark-stream-10M-entries-xreadgroup-count-100-noack
3+
description: "Runs memtier_benchmark, pre-loading Redis with 10M stream entries using XADD, creating a consumer group, then testing XREADGROUP performance with COUNT 100 and NOACK enabled."
4+
dbconfig:
5+
configuration-parameters:
6+
save: '""'
7+
check:
8+
keyspacelen: 1
9+
preload_tool:
10+
run_image: redislabs/memtier_benchmark:edge
11+
tool: memtier_benchmark
12+
arguments: '"--data-size" "100" --command "XADD stream-key * field __data__" --command-key-pattern="P" -n 50000 -c 50 -t 4 --hide-histogram'
13+
init_commands:
14+
- XGROUP CREATE stream-key test-group 0 MKSTREAM
15+
resources:
16+
requests:
17+
memory: 4g
18+
dataset_name: 1k-stream-entries-with-consumer-group
19+
dataset_description: This dataset contains 1 stream key with 10M entries, each with a field containing 100 bytes of data, and a consumer group named 'test-group'.
20+
tested-commands:
21+
- xreadgroup
22+
redis-topologies:
23+
- oss-standalone
24+
build-variants:
25+
- gcc:15.2.0-amd64-debian-bookworm-default
26+
- gcc:15.2.0-arm64-debian-bookworm-default
27+
- dockerhub
28+
clientconfig:
29+
run_image: redislabs/memtier_benchmark:edge
30+
tool: memtier_benchmark
31+
arguments: --command="XREADGROUP GROUP test-group consumer1 COUNT 100 NOACK STREAMS stream-key >" --hide-histogram -n 1000 -c 25 -t 4
32+
resources:
33+
requests:
34+
cpus: "4"
35+
memory: 2g
36+
tested-groups:
37+
- stream
38+
priority: 94
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 0.4
22
name: memtier_benchmark-stream-10M-entries-xreadgroup-count-100
3-
description: 'Runs memtier_benchmark, pre-loading Redis with 10M stream entries using XADD, creating a consumer group, then testing XREADGROUP performance with COUNT 100.'
3+
description: "Runs memtier_benchmark, pre-loading Redis with 10M stream entries using XADD, creating a consumer group, then testing XREADGROUP performance with COUNT 100."
44
dbconfig:
55
configuration-parameters:
66
save: '""'
@@ -11,28 +11,28 @@ dbconfig:
1111
tool: memtier_benchmark
1212
arguments: '"--data-size" "100" --command "XADD stream-key * field __data__" --command-key-pattern="P" -n 50000 -c 50 -t 4 --hide-histogram'
1313
init_commands:
14-
- XGROUP CREATE stream-key test-group 0 MKSTREAM
14+
- XGROUP CREATE stream-key test-group 0 MKSTREAM
1515
resources:
1616
requests:
1717
memory: 4g
1818
dataset_name: 1k-stream-entries-with-consumer-group
1919
dataset_description: This dataset contains 1 stream key with 10M entries, each with a field containing 100 bytes of data, and a consumer group named 'test-group'.
2020
tested-commands:
21-
- xreadgroup
21+
- xreadgroup
2222
redis-topologies:
23-
- oss-standalone
23+
- oss-standalone
2424
build-variants:
25-
- gcc:15.2.0-amd64-debian-bookworm-default
26-
- gcc:15.2.0-arm64-debian-bookworm-default
27-
- dockerhub
25+
- gcc:15.2.0-amd64-debian-bookworm-default
26+
- gcc:15.2.0-arm64-debian-bookworm-default
27+
- dockerhub
2828
clientconfig:
2929
run_image: redislabs/memtier_benchmark:edge
3030
tool: memtier_benchmark
3131
arguments: --command="XREADGROUP GROUP test-group consumer1 COUNT 100 STREAMS stream-key >" --hide-histogram -n 1000 -c 25 -t 4
3232
resources:
3333
requests:
34-
cpus: '4'
34+
cpus: "4"
3535
memory: 2g
3636
tested-groups:
37-
- stream
37+
- stream
3838
priority: 94

redis_benchmarks_specification/test-suites/memtier_benchmark-stream-concurrent-xadd-xreadgroup-70-30.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 0.4
22
name: memtier_benchmark-stream-concurrent-xadd-xreadgroup-70-30
33
description:
4-
Starting with a pre-loaded stream of 500K entries, the benchmark tests concurrent stream operations with a consumer group for distributed processing.
4+
Starting with a pre-loaded stream of 500K entries, the benchmark tests concurrent stream operations with a consumer group for distributed processing.
55
70% of commands produce messages with XADD, while 30% consume with XREADGROUP COUNT 10.
66
500K initial entries plus 200K * 70% minus 200K * 10 * (15% + 15%) ≈ 40K left in the stream at the end.
77
dbconfig:

0 commit comments

Comments
 (0)