From ce02cbefa0a47dfc53a649bb54b4d3fddef8df10 Mon Sep 17 00:00:00 2001 From: thzxx Date: Mon, 27 Jul 2026 22:01:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20benchmark.ts=20TS=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/engine/aria/benchmark.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/aria/benchmark.ts b/src/engine/aria/benchmark.ts index 58cf8fe..a50827d 100644 --- a/src/engine/aria/benchmark.ts +++ b/src/engine/aria/benchmark.ts @@ -21,7 +21,7 @@ function createTestSchema() { }); } -async function timeIt(name: string, fn: () => Promise): Promise { +async function timeIt(_name: string, fn: () => Promise): Promise { const start = performance.now(); await fn(); return performance.now() - start; @@ -37,7 +37,7 @@ export async function runBenchmarks(): Promise { await engine.createTable(createTestSchema()); // Insert - const rows = []; + const rows: Record[] = []; for (let i = 0; i < size; i++) { rows.push({ id: `${i}`, name: `User${i}`, value: i * 10 }); }