Skip to content

Commit fbd86a5

Browse files
committed
chore: reduce performance test scale
1 parent e64f7ab commit fbd86a5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/tests/src/performance.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function PerformanceTests(database: Database) {
7272
},
7373
})
7474

75-
await database.upsert('perf', new Array(2000).fill(0).map((_, i) => ({ text: 'hello', number: i })))
75+
await database.upsert('perf', new Array(1000).fill(0).map((_, i) => ({ text: 'hello', number: i })))
7676

7777
await setup(database, 'perfNested', new Array(500).fill(0).map((_, i) => ({
7878
id: i + 1,
@@ -89,8 +89,8 @@ function PerformanceTests(database: Database) {
8989

9090
it('bulk get flat rows', async (ctx) => {
9191
const rows = await benchmark(ctx.task.name, 10, () => database.get('perf', {}))
92-
expect(rows).to.have.length(2000)
93-
expect(rows[1999]).to.include({ text: 'hello', number: 1999 })
92+
expect(rows).to.have.length(1000)
93+
expect(rows[999]).to.include({ text: 'hello', number: 999 })
9494
})
9595

9696
it('bulk get nested rows', async (ctx) => {

0 commit comments

Comments
 (0)