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

benchmark.ts

13 lines376 Bytes

1export interface ServerMemoryWorkload {
2 name: string
3 /**
4 * Must be an `async` function: CodSpeed's Vitest 5 provider awaits only
5 * `AsyncFunction`s and otherwise measures just the synchronous part.
6 */
7 run: () => Promise<void> | void
8}
9​
10export interface ServerMemoryWorkloadGroup {
11 sanity: () => Promise<void> | void
12 workloads: Array<ServerMemoryWorkload>