fix: benchmark.ts TS类型修复
CI / test (18.x) (push) Successful in 9m57s
CI / test (20.x) (push) Successful in 9m58s
CI / test (22.x) (push) Successful in 9m54s
CI / test (24.x) (push) Successful in 9m52s

This commit is contained in:
thzxx
2026-07-27 22:01:22 +08:00
parent 3d30e8174d
commit ce02cbefa0
+2 -2
View File
@@ -21,7 +21,7 @@ function createTestSchema() {
});
}
async function timeIt(name: string, fn: () => Promise<void>): Promise<number> {
async function timeIt(_name: string, fn: () => Promise<unknown>): Promise<number> {
const start = performance.now();
await fn();
return performance.now() - start;
@@ -37,7 +37,7 @@ export async function runBenchmarks(): Promise<BenchResult[]> {
await engine.createTable(createTestSchema());
// Insert
const rows = [];
const rows: Record<string, unknown>[] = [];
for (let i = 0; i < size; i++) {
rows.push({ id: `${i}`, name: `User${i}`, value: i * 10 });
}