fix: resolve ruff lint errors in benchmark suite

Remove unused imports (shutil, string, datetime, os, yaml, time,
SCALE_CONFIGS) and unused variable assignments in timing-only calls.
This commit is contained in:
Igor Lins e Silva
2026-04-08 05:10:26 -03:00
parent e8017ca2ec
commit 7e4db33061
10 changed files with 7 additions and 19 deletions
+2 -3
View File
@@ -5,7 +5,6 @@ Tests MemoryStack.wake_up(), Layer1.generate(), and Layer2/L3
at scale. Layer1 has the same unbounded col.get() as tool_status.
"""
import os
import time
import pytest
@@ -168,7 +167,7 @@ class TestLayer2Retrieval:
latencies = []
for _ in range(10):
start = time.perf_counter()
text = layer.retrieve(wing=wing, n_results=10)
layer.retrieve(wing=wing, n_results=10)
elapsed_ms = (time.perf_counter() - start) * 1000
latencies.append(elapsed_ms)
@@ -198,7 +197,7 @@ class TestLayer3Search:
latencies = []
for q in queries:
start = time.perf_counter()
text = stack.search(q, n_results=5)
stack.search(q, n_results=5)
elapsed_ms = (time.perf_counter() - start) * 1000
latencies.append(elapsed_ms)