Skip to content

Commit 08fb221

Browse files
Merge remote-tracking branch 'origin/main' into extend.zset.2
2 parents 5c0cba7 + a0a7e90 commit 08fb221

5 files changed

+38
-41
lines changed

redis_benchmarks_specification/__cli__/stats.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
108108
benchmark_config = {}
109109
requires_override = False
110110
test_result = True
111+
tested_groups_match_origin = True
112+
111113
with open(test_file, "r") as stream:
112114

113115
try:
@@ -291,7 +293,7 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
291293
)
292294

293295
if tested_groups != origin_tested_groups:
294-
requires_override = True
296+
tested_groups_match_origin = False
295297
benchmark_config["tested-groups"] = tested_groups
296298
logging.warn(
297299
"there is a difference between specified test-groups in the yaml (name={}) and the ones we've detected {}!={}".format(
@@ -312,7 +314,15 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
312314
test_result = False
313315
overall_result &= test_result
314316

315-
if requires_override and override_enabled:
317+
if not tested_groups_match_origin:
318+
if len(tested_groups) > 0:
319+
overall_result = False
320+
else:
321+
logging.warn(
322+
"difference between specified and detected test-groups was ignored since command info is not available in this benchmark version"
323+
)
324+
325+
if (requires_override or not tested_groups_match_origin) and override_enabled:
316326
logging.info(
317327
"Saving a new version of the file {} with the overrided data".format(
318328
test_file
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
version: 0.4
22
name: memtier_benchmark-10Mkeys-string-get-10B-pipeline-100-nokeyprefix
3-
description: Runs memtier_benchmark, for a keyspace length of 10M keys with a data size of 10 Bytes for each key.
3+
description: memtier_benchmark, 10M keys, string GET, 10B value size, pipeline=100, no key prefix
44
dbconfig:
55
configuration-parameters:
66
save: '""'
77
check:
88
keyspacelen: 10000000
9-
preload_tool:
10-
run_image: redislabs/memtier_benchmark:edge
11-
tool: memtier_benchmark
12-
arguments: '--key-maximum 10000000 -n allkeys --key-prefix "" --data-size 10 --ratio 1:0 --key-pattern P:P -c 50 -t 2 --hide-histogram --key-minimum 1'
139
resources:
1410
requests:
15-
memory: 1g
11+
memory: 10g
12+
tested-groups:
13+
- string
1614
tested-commands:
1715
- get
1816
redis-topologies:
1917
- oss-standalone
20-
build-variants:
21-
- gcc:8.5.0-amd64-debian-buster-default
22-
- dockerhub
18+
- oss-cluster-3-primaries
2319
clientconfig:
2420
run_image: redislabs/memtier_benchmark:edge
2521
tool: memtier_benchmark
26-
arguments: '--key-maximum 10000000 --key-minimum 1 --pipeline 100 --key-prefix "" --distinct-client-seed --data-size 10 --ratio 0:1 --key-pattern R:R -c 10 -t 10 --hide-histogram --test-time 120'
22+
arguments: '"--data-size" "10" --command "GET __key__" --command-key-pattern="R" --key-prefix="" -c 50 -t 2 --pipeline 100 --hide-histogram --test-time 180'
2723
resources:
2824
requests:
29-
cpus: '10'
25+
cpus: '3'
3026
memory: 2g
3127

32-
tested-groups:
33-
- string
34-
priority: 1
28+
priority: 33
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
version: 0.4
22
name: memtier_benchmark-1Mkeys-load-string-with-10B-values-pipeline-100-nokeyprefix
3-
description: Runs memtier_benchmark, for a keyspace length of 1M keys loading STRINGs in which the value has a data size of 10 Bytes.
3+
description: memtier_benchmark, 1M keys, string SET, 10B value size, pipeline=100, no key prefix
44
dbconfig:
55
configuration-parameters:
66
save: '""'
77
check:
8-
keyspacelen: 0
8+
keyspacelen: 1000000
99
resources:
1010
requests:
1111
memory: 1g
12+
tested-groups:
13+
- string
1214
tested-commands:
1315
- set
1416
redis-topologies:
1517
- oss-standalone
16-
build-variants:
17-
- gcc:8.5.0-amd64-debian-buster-default
18-
- dockerhub
18+
- oss-cluster-3-primaries
1919
clientconfig:
2020
run_image: redislabs/memtier_benchmark:edge
2121
tool: memtier_benchmark
22-
arguments: '"--pipeline" "100" "--data-size" "10" --distinct-client-seed --key-prefix "" --ratio 1:0 --key-pattern P:P --key-minimum=1 --key-maximum 1000000 --test-time 120 -c 10 -t 10 --hide-histogram'
22+
arguments: '"--data-size" "10" --command "SET __key__ __data__" --command-key-pattern="R" --key-prefix="" -c 50 -t 2 --pipeline 100 --hide-histogram --test-time 180'
2323
resources:
2424
requests:
25-
cpus: '10'
25+
cpus: '3'
2626
memory: 2g
2727

28-
tested-groups:
29-
- string
30-
priority: 17
28+
priority: 33
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
version: 0.4
22
name: memtier_benchmark-1Mkeys-string-get-10B-pipeline-100-nokeyprefix
3-
description: Runs memtier_benchmark, for a keyspace length of 1M keys with a data size of 10 Bytes for each key.
3+
description: memtier_benchmark, 1M keys, string GET, 10B value size, pipeline=100, no key prefix
44
dbconfig:
55
configuration-parameters:
66
save: '""'
77
check:
88
keyspacelen: 1000000
9-
preload_tool:
10-
run_image: redislabs/memtier_benchmark:edge
11-
tool: memtier_benchmark
12-
arguments: '--key-maximum 1000000 -n allkeys --key-prefix "" --data-size 10 --ratio 1:0 --key-pattern P:P -c 50 -t 2 --hide-histogram --key-minimum 1'
139
resources:
1410
requests:
1511
memory: 1g
12+
tested-groups:
13+
- string
1614
tested-commands:
1715
- get
1816
redis-topologies:
1917
- oss-standalone
20-
build-variants:
21-
- gcc:8.5.0-amd64-debian-buster-default
22-
- dockerhub
18+
- oss-cluster-3-primaries
2319
clientconfig:
2420
run_image: redislabs/memtier_benchmark:edge
2521
tool: memtier_benchmark
26-
arguments: '--key-maximum 1000000 --key-minimum 1 --pipeline 100 --key-prefix "" --distinct-client-seed --data-size 10 --ratio 0:1 --key-pattern R:R -c 10 -t 10 --hide-histogram --test-time 120'
22+
arguments: '"--data-size" "10" --command "GET __key__" --command-key-pattern="R" --key-prefix="" -c 50 -t 2 --pipeline 100 --hide-histogram --test-time 180'
2723
resources:
2824
requests:
29-
cpus: '10'
25+
cpus: '3'
3026
memory: 2g
3127

32-
tested-groups:
33-
- string
34-
priority: 1
28+
priority: 33

redis_benchmarks_specification/test-suites/vector_db_benchmark_test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ dbconfig:
1010
requests:
1111
memory: 1g
1212
tested-groups:
13-
- redisearch
14-
tested-commands:
1513
- search
14+
tested-commands:
15+
- hset
16+
- ft.search
1617
redis-topologies:
1718
- oss-standalone-with-redisearch
1819
build-variants:

0 commit comments

Comments
 (0)