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

flame-runner.ts

12 lines369 Bytes

1import { profileFlameWorkload } from '../flame-control.ts'
2import type { ServerMemoryWorkloadGroup } from './benchmark.ts'
3​
4export async function runServerFlameBenchmark(
5 workloadGroup: ServerMemoryWorkloadGroup,
6) {
7 await workloadGroup.sanity()
8​
9 for (const workload of workloadGroup.workloads) {
10 await profileFlameWorkload(workload.run, workload.name)
11 }