Skip to content

Commit 591150d

Browse files
committed
📘 chore: use JSON.stringify over custom regex
1 parent 1144b98 commit 591150d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

example/stress/instance.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ const memory = process.memoryUsage().heapTotal / 1024 / 1024
99
const t1 = performance.now()
1010

1111
for (let i = 0; i < total; i++) {
12-
const plugin = new Elysia()
12+
const plugin = new Elysia({
13+
cookie: {
14+
domain: 'saltyaom.com',
15+
priority: 'high',
16+
secrets: 'a',
17+
sign: 'a'
18+
}
19+
})
1320

1421
for (let j = 0; j < sub; j++) plugin.get(`/${i * sub + j}`, () => 'hi')
1522

0 commit comments

Comments
 (0)