warp-pipe/perf/README.md
2026-01-29 17:47:31 -07:00

39 lines
985 B
Markdown

# Performance tests
Milestone 0 perf test instructions are tracked in docs/milestone-0.md.
## Build
```
cmake -S . -B build
cmake --build build
```
## Run
Create/destroy microbenchmark (milestone 0/2):
```
./build/warppipe_perf --mode create-destroy --count 200 --type sink
./build/warppipe_perf --mode create-destroy --count 100 --type both
```
Registry snapshot + add/remove events (milestone 1):
```
./build/warppipe_perf --mode registry --count 1000 --events 100
```
Link creation + removal (milestone 3):
```
./build/warppipe_perf --mode links --links 200
./build/warppipe_perf --mode links --links 200 --batch 50
```
Optional format and loopback:
```
./build/warppipe_perf --mode create-destroy --count 200 --type sink --rate 48000 --channels 2
./build/warppipe_perf --mode create-destroy --count 200 --type sink --target "some-node-name"
```
Planned coverage:
- Microbenchmark: connect -> create N -> destroy N
- Target: subsecond for N=200 on warm PipeWire connection