We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51791d8 commit 211acc2Copy full SHA for 211acc2
packages/d2ts-benchmark/src/index.ts
@@ -197,6 +197,13 @@ joinSuite.add({
197
setup: () => {
198
const sqlite = new Database(':memory:')
199
const db = new BetterSQLite3Wrapper(sqlite)
200
+
201
+ // Improve the sqlite performance
202
+ db.exec(`PRAGMA journal_mode = WAL;`)
203
+ db.exec(`PRAGMA synchronous = OFF;`)
204
+ db.exec(`PRAGMA temp_store = MEMORY;`)
205
+ db.exec(`PRAGMA cache_size = -100000;`) // 100MB
206
207
const graph = new D2({ initialFrontier: v([0]) })
208
const usersStream = graph.newInput<[number, (typeof allUsers)[0]]>()
209
const postsStream = graph.newInput<[number, (typeof allPosts)[0]]>()
0 commit comments