Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "redis-benchmarks-specification"
version = "0.2.25"
version = "0.2.26"
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."
authors = ["filipecosta90 <filipecosta.90@gmail.com>","Redis Performance Group <performance@redis.com>"]
readme = "Readme.md"
Expand Down
8 changes: 7 additions & 1 deletion redis_benchmarks_specification/__runner__/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3283,7 +3283,13 @@ def used_memory_check(
):
used_memory = 0
for conn in redis_conns:
used_memory = used_memory + conn.info("memory")["used_memory"]
info_mem = conn.info("memory")
if "used_memory" in info_mem:
used_memory = used_memory + info_mem["used_memory"]
else:
logging.warning(
"used_memory not present in Redis memory info. Cannot enforce memory checks."
)
used_memory_gb = int(math.ceil(float(used_memory) / 1024.0 / 1024.0 / 1024.0))
logging.info("Benchmark used memory at {}: {}g".format(stage, used_memory_gb))
if used_memory > benchmark_required_memory:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ dbconfig:
-- Use the same pairs for all keys
for k = 1, 10000 do
local key = tostring(k)
local args = {'ZADD', key}
local args = {key}
for i = 1, #score_member_pairs do
table.insert(args, score_member_pairs[i])
end
redis.call(unpack(args))
redis.call('ZADD', unpack(args))
end

return 'OK'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 0.4
name: memtier_benchmark-playbook-leaderboard-top-100
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%.
with encoding:listpack with 100 elements.
with encoding:skiplist with 100 elements.

dbconfig:
configuration-parameters:
Expand Down Expand Up @@ -34,11 +34,11 @@ dbconfig:
-- Use the same pairs for all keys
for k = 1, 10000 do
local key = tostring(k)
local args = {'ZADD', key}
local args = {key}
for i = 1, #score_member_pairs do
table.insert(args, score_member_pairs[i])
end
redis.call(unpack(args))
redis.call('ZADD', unpack(args))
end

return 'OK'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 0.4
name: memtier_benchmark-playbook-leaderboard-top-1000
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%.
with encoding:listpack with 1000 elements.
with encoding:skiplist with 1000 elements.

dbconfig:
configuration-parameters:
Expand Down Expand Up @@ -34,11 +34,11 @@ dbconfig:
-- Use the same pairs for all keys
for k = 1, 10000 do
local key = tostring(k)
local args = {'ZADD', key}
local args = {key}
for i = 1, #score_member_pairs do
table.insert(args, score_member_pairs[i])
end
redis.call(unpack(args))
redis.call('ZADD', unpack(args))
end

return 'OK'
Expand Down
Loading