redis-benchmarks-specification 0.1.276__py3-none-any.whl → 0.1.279__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of redis-benchmarks-specification might be problematic. Click here for more details.

@@ -192,9 +192,10 @@ def save_profile_with_metadata(
192
192
  f"# profile from redis sha = {redis_metadata['redis_git_sha1']} "
193
193
  f"and pid {redis_metadata['process_id']} for duration of {duration}s. "
194
194
  f"collection in date {timestamp}\n"
195
- f"# redis_version: {redis_metadata['redis_version']}\n"
196
- f"# redis_git_dirty: {redis_metadata['redis_git_dirty']}\n"
197
- f"# tcp_port: {redis_metadata['tcp_port']}\n"
195
+ f"# benchmark_name={benchmark_name}\n"
196
+ f"# redis_git_sha1={redis_metadata['redis_git_sha1']}\n"
197
+ f"# redis_version={redis_metadata['redis_version']}\n"
198
+ f"# redis_git_dirty={redis_metadata['redis_git_dirty']}\n"
198
199
  )
199
200
 
200
201
  # Write file with metadata and profile content
@@ -349,8 +349,6 @@ def run_multiple_clients(
349
349
  )
350
350
 
351
351
  # Start container (detached)
352
- import os
353
-
354
352
  # Set working directory based on tool
355
353
  working_dir = benchmark_tool_workdir
356
354
  if "vector-db-benchmark" in client_tool:
@@ -483,8 +481,6 @@ def run_multiple_clients(
483
481
 
484
482
  if successful_results:
485
483
  # Try to read and aggregate JSON output files
486
- import json
487
- import os
488
484
 
489
485
  aggregated_json = {}
490
486
  memtier_json = None
@@ -1206,7 +1202,9 @@ def process_self_contained_coordinator_stream(
1206
1202
  else:
1207
1203
  for conn in redis_conns:
1208
1204
  maxmemory = maxmemory + get_maxmemory(conn)
1209
- if benchmark_required_memory > maxmemory:
1205
+
1206
+ # Only perform memory check if we have valid maxmemory information
1207
+ if maxmemory > 0 and benchmark_required_memory > maxmemory:
1210
1208
  logging.warning(
1211
1209
  "Skipping test {} given maxmemory of server is bellow the benchmark required memory: {} < {}".format(
1212
1210
  test_name, maxmemory, benchmark_required_memory
@@ -1218,6 +1216,12 @@ def process_self_contained_coordinator_stream(
1218
1216
  benchmark_tool_global=benchmark_tool_global,
1219
1217
  )
1220
1218
  continue
1219
+ elif maxmemory == 0 and benchmark_required_memory > 0:
1220
+ logging.warning(
1221
+ "Cannot enforce memory checks for test {} - maxmemory information unavailable. Proceeding with test.".format(
1222
+ test_name
1223
+ )
1224
+ )
1221
1225
 
1222
1226
  reset_commandstats(redis_conns)
1223
1227
 
@@ -1647,8 +1651,6 @@ def process_self_contained_coordinator_stream(
1647
1651
  )
1648
1652
 
1649
1653
  # Use explicit container management for single client
1650
- import os
1651
-
1652
1654
  # Set working directory based on tool
1653
1655
  working_dir = benchmark_tool_workdir
1654
1656
  if "vector-db-benchmark" in benchmark_tool:
@@ -1821,7 +1823,6 @@ def process_self_contained_coordinator_stream(
1821
1823
  )
1822
1824
  elif "vector-db-benchmark" in benchmark_tool:
1823
1825
  # For vector-db-benchmark, look for summary JSON file
1824
- import os
1825
1826
  summary_files = [f for f in os.listdir(temporary_dir_client) if f.endswith("-summary.json")]
1826
1827
  if summary_files:
1827
1828
  full_result_path = os.path.join(temporary_dir_client, summary_files[0])
@@ -1973,9 +1974,16 @@ def process_self_contained_coordinator_stream(
1973
1974
 
1974
1975
 
1975
1976
  def get_maxmemory(r):
1976
- maxmemory = int(r.info("memory")["maxmemory"])
1977
+ memory_info = r.info("memory")
1978
+
1979
+ # Check if maxmemory key exists in Redis memory info
1980
+ if "maxmemory" not in memory_info:
1981
+ logging.warning("maxmemory not present in Redis memory info. Cannot enforce memory checks.")
1982
+ return 0
1983
+
1984
+ maxmemory = int(memory_info["maxmemory"])
1977
1985
  if maxmemory == 0:
1978
- total_system_memory = int(r.info("memory")["total_system_memory"])
1986
+ total_system_memory = int(memory_info["total_system_memory"])
1979
1987
  logging.info(" Using total system memory as max {}".format(total_system_memory))
1980
1988
  maxmemory = total_system_memory
1981
1989
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: redis-benchmarks-specification
3
- Version: 0.1.276
3
+ Version: 0.1.279
4
4
  Summary: 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.
5
5
  Author: filipecosta90
6
6
  Author-email: filipecosta.90@gmail.com
@@ -24,8 +24,8 @@ redis_benchmarks_specification/__compare__/compare.py,sha256=O6ZuB6Ln5xkTX5jRaiz
24
24
  redis_benchmarks_specification/__init__.py,sha256=YQIEx2sLPPA0JR9OuCuMNMNtm-f_gqDKgzvNJnkGNKY,491
25
25
  redis_benchmarks_specification/__runner__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
26
26
  redis_benchmarks_specification/__runner__/args.py,sha256=7XNxIsVfn7woNwRkYJhrENj-n9lvks3BJ56BOj-hJeU,9255
27
- redis_benchmarks_specification/__runner__/remote_profiling.py,sha256=338UHq6gDH4dy6q8nj2ewipaHVj5fPmsNiHbFfaELfk,11378
28
- redis_benchmarks_specification/__runner__/runner.py,sha256=9vBMoP8eeC82Nt77xTrp0fXo_nX3RZ-3lqXq0baQNKA,98020
27
+ redis_benchmarks_specification/__runner__/remote_profiling.py,sha256=R4KNm44EGeqdqEkZmxjeKg5qpYVeOC54RyyVDeZijQE,11438
28
+ redis_benchmarks_specification/__runner__/runner.py,sha256=nn-F6dvKnBEOUkQoBCDHnABwAw-s4uGi32g7TujEwoI,98581
29
29
  redis_benchmarks_specification/__self_contained_coordinator__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
30
30
  redis_benchmarks_specification/__self_contained_coordinator__/args.py,sha256=uxBjdQ78klvsVi6lOfGYQVaWIxc8OI-DwYKY16SgvCY,5952
31
31
  redis_benchmarks_specification/__self_contained_coordinator__/artifacts.py,sha256=OVHqJzDgeSSRfUSiKp1ZTAVv14PvSbk-5yJsAAoUfpw,936
@@ -273,8 +273,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-pubsub-publi
273
273
  redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-server-time-pipeline-10.yml,sha256=rJuWWXubUeRKQ2GSfHlbPMLeOyM9Eu_MzvN2vgKcAhA,672
274
274
  redis_benchmarks_specification/test-suites/template.txt,sha256=d_edIE7Sxa5X7I2yG-Io0bPdbDIHR0oWFoCA3XUt_EU,435
275
275
  redis_benchmarks_specification/vector-search-test-suites/vector_db_benchmark_test.yml,sha256=uhaSP6YUVmPvZU-qMtPPGdvNEUgUBqOfveUbeJ9WsbI,972
276
- redis_benchmarks_specification-0.1.276.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
277
- redis_benchmarks_specification-0.1.276.dist-info/METADATA,sha256=TsbxAWvoffmwCpFBv2vgbmG8kkf4aAlsYKH9kVCOMeY,22726
278
- redis_benchmarks_specification-0.1.276.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
279
- redis_benchmarks_specification-0.1.276.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
280
- redis_benchmarks_specification-0.1.276.dist-info/RECORD,,
276
+ redis_benchmarks_specification-0.1.279.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
277
+ redis_benchmarks_specification-0.1.279.dist-info/METADATA,sha256=L4-eWOkA3EDpxwXdqLiuahxFbe2sqi-oo7GoSmPdhq4,22726
278
+ redis_benchmarks_specification-0.1.279.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
279
+ redis_benchmarks_specification-0.1.279.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
280
+ redis_benchmarks_specification-0.1.279.dist-info/RECORD,,