Skip to content

Commit 0bc3a2d

Browse files
Fixed mem check on client runner. (#317)
* Fixed description of leaderboard top100/1000 * Fixed mem check on client runner.
1 parent c543d36 commit 0bc3a2d

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redis-benchmarks-specification"
3-
version = "0.2.25"
3+
version = "0.2.26"
44
description = "The Redis benchmarks specification describes the cross-language/tools requirements and expectations to foster performance and observability standards around redis related technologies. Members from both industry and academia, including organizations and individuals are encouraged to contribute."
55
authors = ["filipecosta90 <[email protected]>","Redis Performance Group <[email protected]>"]
66
readme = "Readme.md"

redis_benchmarks_specification/__runner__/runner.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3283,7 +3283,13 @@ def used_memory_check(
32833283
):
32843284
used_memory = 0
32853285
for conn in redis_conns:
3286-
used_memory = used_memory + conn.info("memory")["used_memory"]
3286+
info_mem = conn.info("memory")
3287+
if "used_memory" in info_mem:
3288+
used_memory = used_memory + info_mem["used_memory"]
3289+
else:
3290+
logging.warning(
3291+
"used_memory not present in Redis memory info. Cannot enforce memory checks."
3292+
)
32873293
used_memory_gb = int(math.ceil(float(used_memory) / 1024.0 / 1024.0 / 1024.0))
32883294
logging.info("Benchmark used memory at {}: {}g".format(stage, used_memory_gb))
32893295
if used_memory > benchmark_required_memory:

redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-leaderboard-top-10.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ dbconfig:
3434
-- Use the same pairs for all keys
3535
for k = 1, 10000 do
3636
local key = tostring(k)
37-
local args = {'ZADD', key}
37+
local args = {key}
3838
for i = 1, #score_member_pairs do
3939
table.insert(args, score_member_pairs[i])
4040
end
41-
redis.call(unpack(args))
41+
redis.call('ZADD', unpack(args))
4242
end
4343
4444
return 'OK'

redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-leaderboard-top-100.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 0.4
22
name: memtier_benchmark-playbook-leaderboard-top-100
33
description: Runs memtier_benchmark, for a keyspace length of 10K keys loading/querying ZSETs. Esports/live events with constant score changes, occasional bursts of reads. writes ≈ 60, reads ≈ 40%.
4-
with encoding:listpack with 100 elements.
4+
with encoding:skiplist with 100 elements.
55

66
dbconfig:
77
configuration-parameters:
@@ -34,11 +34,11 @@ dbconfig:
3434
-- Use the same pairs for all keys
3535
for k = 1, 10000 do
3636
local key = tostring(k)
37-
local args = {'ZADD', key}
37+
local args = {key}
3838
for i = 1, #score_member_pairs do
3939
table.insert(args, score_member_pairs[i])
4040
end
41-
redis.call(unpack(args))
41+
redis.call('ZADD', unpack(args))
4242
end
4343
4444
return 'OK'

redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-leaderboard-top-1000.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 0.4
22
name: memtier_benchmark-playbook-leaderboard-top-1000
33
description: Runs memtier_benchmark, for a keyspace length of 10K keys loading/querying ZSETs. Esports/live events with constant score changes, occasional bursts of reads. writes ≈ 60, reads ≈ 40%.
4-
with encoding:listpack with 1000 elements.
4+
with encoding:skiplist with 1000 elements.
55

66
dbconfig:
77
configuration-parameters:
@@ -34,11 +34,11 @@ dbconfig:
3434
-- Use the same pairs for all keys
3535
for k = 1, 10000 do
3636
local key = tostring(k)
37-
local args = {'ZADD', key}
37+
local args = {key}
3838
for i = 1, #score_member_pairs do
3939
table.insert(args, score_member_pairs[i])
4040
end
41-
redis.call(unpack(args))
41+
redis.call('ZADD', unpack(args))
4242
end
4343
4444
return 'OK'

0 commit comments

Comments
 (0)