Skip to content

Conversation

@simonklee
Copy link
Contributor

Add a benchmark for measureForDimensions().

This function creates a fresh arena and performs a full rope walk on every call.

The benchmark has two scenarios:

  • static: repeated calls on unchanged content (measures cache-miss penalty)
  • streaming: calls interleaved with token appends (simulates LLM output)

This adds a baseline for measuring future fixes like result caching, arena reuse.

Refs: anomalyco/opencode#6172

Add a benchmark for measureForDimensions().

This function creates a fresh arena and performs a full rope walk on
every call.

The benchmark has two scenarios:

- static: repeated calls on unchanged content (measures cache-miss penalty)
- streaming: calls interleaved with token appends (simulates LLM output)

This adds a baseline for measuring future fixes like result caching,
arena reuse.

Refs: anomalyco/opencode#6172
@kommander
Copy link
Collaborator

Thanks, yeah that is awful.

@kommander kommander merged commit 663e000 into anomalyco:main Jan 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants