Skip to content

add does_text_sizing() to bin/display-modes.py example script - #419

Closed
jquast wants to merge 1 commit into
masterfrom
jq/example-does-text-sizing
Closed

jquast wants to merge 1 commit into
masterfrom
jq/example-does-text-sizing

Conversation

@jquast

@jquast jquast commented Sep 23, 2026

Copy link
Copy Markdown
Owner

No description provided.

@codspeed

codspeed Bot commented Sep 23, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by ×4

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 19 improved benchmarks
✅ 12 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_length_emoji_vs16 672.5 µs 37.1 µs ×18
⚡ test_length_cjk 770.2 µs 60.8 µs ×13
⚡ test_truncate_emoji_zwj 966.1 µs 83.9 µs ×12
⚡ test_length_emoji_zwj 188 µs 23.3 µs ×8.1
⚡ test_center_cjk 780.1 µs 122.5 µs ×6.4
⚡ test_ljust_cjk 778.3 µs 122.6 µs ×6.3
⚡ test_rjust_cjk 777.8 µs 123 µs ×6.3
⚡ test_truncate_cjk 518.7 µs 92.6 µs ×5.6
⚡ test_center_ansi 389.2 µs 104 µs ×3.7
⚡ test_rjust_ansi 382.7 µs 103.8 µs ×3.7
⚡ test_ljust_ansi 381.1 µs 104 µs ×3.7
⚡ test_center_emoji_zwj 206 µs 64.3 µs ×3.2
⚡ test_ljust_emoji_zwj 202.8 µs 64.4 µs ×3.2
⚡ test_rjust_emoji_zwj 202.7 µs 64.4 µs ×3.1
⚡ test_center_ascii 47 µs 30.6 µs +53.19%
⚡ test_rjust_ascii 43.6 µs 30.6 µs +42.6%
⚡ test_ljust_ascii 43.6 µs 30.7 µs +42.09%
⚡ test_length_ansi 373.4 µs 265 µs +40.89%
⚡ test_length_ascii 37 µs 27 µs +37.12%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing jq/example-does-text-sizing (2c7b69c) with master (362dbe2)

Open in CodSpeed

@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.72%. Comparing base (362dbe2) to head (2c7b69c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #419   +/-   ##
=======================================
  Coverage   97.72%   97.72%           
=======================================
  Files          13       13           
  Lines        4052     4052           
  Branches      739      739           
=======================================
  Hits         3960     3960           
  Misses         71       71           
  Partials       21       21           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jquast jquast closed this Sep 23, 2026
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