repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/llmiterate/__bench__/PERF.md

Raw

llmiterate performance notes

Workflow

bun --cpu-prof --cpu-prof-md --cpu-prof-dir=__bench__/profiles --cpu-prof-name=latest.cpuprofile.md __bench__/bench.ts
bun __bench__/bench.ts

Current benchmark

BenchmarkParseNoMarkers 65536000 5 ns/op
BenchmarkParseSomeMarkers 2000 243931 ns/op
BenchmarkParseMarkdownFences 2000 317309 ns/op
BenchmarkPathFilterCompiled 2000 3479021 ns/op

Notes:

Markdown source
File outline
# llmiterate performance notes

## Workflow

```bash
bun --cpu-prof --cpu-prof-md --cpu-prof-dir=__bench__/profiles --cpu-prof-name=latest.cpuprofile.md __bench__/bench.ts
bun __bench__/bench.ts
```

## Current benchmark

```text
BenchmarkParseNoMarkers 65536000 5 ns/op
BenchmarkParseSomeMarkers 2000 243931 ns/op
BenchmarkParseMarkdownFences 2000 317309 ns/op
BenchmarkPathFilterCompiled 2000 3479021 ns/op
```

Notes:

- no-marker files short-circuit on missing `llmiterate`
- marker parsing is comment-prefix aware and language-agnostic
- path benchmark now uses non-empty include patterns; old empty-default
  benchmark was invalid
- actual latency is dominated by worker/model/tool execution, not parser CPU