Skip to content

Benchmark text wrapping workflows - #19

Open
joshka wants to merge 1 commit into
mainfrom
joshka/benchmark-textwrap-workflows
Open

Benchmark text wrapping workflows#19
joshka wants to merge 1 commit into
mainfrom
joshka/benchmark-textwrap-workflows

Conversation

@joshka

@joshka joshka commented Jul 23, 2026

Copy link
Copy Markdown
Member

Summary

  • compare native Paragraph wrapping with ParagraphCompat, first-fit, and optimal-fit
  • cover counting, fresh rendering, repeated frames, resizing, caching, and scrolled viewports
  • add deterministic mixed-text fixtures plus opt-in stress and allocation diagnostics
  • check in benchmark documentation, a report generator, and an initial measured baseline

The compatibility preflight verifies that native Paragraph and ParagraphCompat produce matching
line counts and rendered buffers. Their timing delta therefore captures the cost of full owned
materialization rather than different wrapping semantics.

Validation

  • cargo bench -p ratatui-textwrap --bench textwrap-workflows -- --test
  • cargo bench -p ratatui-textwrap --bench textwrap-stress -- --test
  • complete core Criterion measurement
  • complete allocation diagnostic
  • cargo test --workspace --all-features
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo fmt --all -- --check
  • markdownlint-cli2 'crates/ratatui-textwrap/**/*.md'

After rebasing onto current main, the focused ratatui-textwrap tests, Clippy, formatting, and
Markdown checks were rerun successfully.

Compare native Paragraph wrapping with materialized algorithms across
counting, rendering, caching, resizing, and scrolling workloads.
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.

1 participant