fix: benchmark.ts TS类型修复
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user