Open History to see the last commit
1import { test } from 'vitest'
2import { setup } from './setup'
3β
4test('client-nav', async ({ bench }) => {
5 const scenario = setup()
6β
7 await bench(
8 'client-side navigation loop (react)',
9 { beforeAll: scenario.before, afterAll: scenario.after },
10 async () => {
11 for (let i = 0; i < 10; i++) {
12 await scenario.tick()
13 }
14 },
15 ).run({
16 warmupIterations: 100,
17 time: 10_000,
18 })
19})