Avatar for the jquast user
jquast
wcwidth
BlogDocsChangelog

Improve width() and clip() with kitty Text Sizing Protocol

#213Merged
Comparing
jq/text-sizing-protocol
(
1511cc5
) with
master
(
e5a5f66
)
CodSpeed Performance Gauge
-1%
Untouched
86
New
2

Benchmarks

88 total
test_clip_osc66
tests/test_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A195.6 µs
test_width_osc66
tests/test_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A96.4 µs
test_width_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
+1%
19 µs18.9 µs
test_wrap_long_text
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
3.1 ms3.1 ms
test_wcswidth_short_mixed
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
32.6 µs32.5 µs
test_clip_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
24.7 µs24.6 µs
test_ljust_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
26.7 µs26.7 µs
test_ljust_ascii_control_codes_ignore
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
25 µs25 µs
test_wrap_with_ansi_control_codes_ignore
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
5.7 ms5.7 ms
test_width_brahmic_bengali
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
2.2 ms2.2 ms
test_width_ri_flags_unpaired
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
88.3 ms88.3 ms
test_width_ri_flags_paired
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
372.8 ms372.8 ms
test_wcswidth_ri_flags_paired
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
372.7 ms372.6 ms
test_wcwidth_combining
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
14.1 µs14.1 µs
test_wcswidth_ri_flags_unpaired
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
88.2 ms88.2 ms
test_wcswidth_long_japanese
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
275.3 µs275.3 µs
test_wcswidth_brahmic_bengali
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
2.1 ms2.1 ms
test_wcswidth_composed
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_clip_long_ascii_fastpath
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
150 µs150.1 µs
test_width_udhr
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
538 ms538.2 ms
test_wcswidth_decomposed
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
2.5 ms2.5 ms
test_propagate_sgr_no_sequences
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
31.8 µs31.8 µs
test_clip_long_ascii_control_codes_ignore
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
153.2 µs153.3 µs
test_wcswidth_brahmic_devanagari
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_width_composed
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
2 ms2 ms

Commits

Click on a commit to change the comparison range
Base
master
e5a5f66
-0.73%
Add kitty text sizing protocol (OSC 66) support
e46cab2
11 days ago
by jquast
-0.17%
lint and remove other vestigial pypy from ci
6988406
11 days ago
by jquast
0%
try this coverage frozen
f48ebad
11 days ago
by jquast
0%
oh fix this
ce67724
11 days ago
by jquast
+0.22%
nit ..note
8a8f993
11 days ago
by jquast
-0.03%
small docfix
1511cc5
11 days ago
by jquast
© 2026 CodSpeed Technology
Home Terms Privacy Docs