Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

speed.flame.ts

18 lines318 Bytes

1import { window } from '../jsdom.ts'
2import { setup } from './setup.ts'
3​
4const DURATION_MS = 10_000
5​
6const test = setup()
7​
8try {
9 await test.before()
10​
11 const startedAt = performance.now()
12 while (performance.now() - startedAt < DURATION_MS) {
13 await test.tick()
14 }
15} finally {
16 test.after()
17 window.close()