v2.8.1 修复测试日志重复:并发数表头只在切换并发档时打印一次;日志条数计数修正;轮询加防重叠锁

This commit is contained in:
2026-09-15 13:28:37 +08:00
parent ccfd7eb689
commit 9e457cd22e
2 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -86,6 +86,7 @@ class TestRunner(threading.Thread):
self.log("INFO", "校准完成: %.3f tok/字符(%.2f 字符/token" % (ratio, 1.0 / ratio))
run_seq = 0
last_conc = None # 只在实际切换并发档时打印一次表头,避免同一并发数重复刷屏
for L in lengths:
if self.should_stop():
raise StopRequested()
@@ -94,7 +95,9 @@ class TestRunner(threading.Thread):
for C in concurrency_levels:
if self.should_stop():
raise StopRequested()
self.log("INFO", "══ 并发数 %d(同时 %d 个流)══" % (C, C))
if C != last_conc:
self.log("INFO", "══ 并发数 %d(同时 %d 个流)══" % (C, C))
last_conc = C
if warmup:
self._warmup(base_prompt, C)
for i in range(1, n + 1):