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_clip_dense_ansi_no_propagate
tests/test_benchmarks.py
CodSpeed Performance Gauge
-6%
2.3 ms2.4 ms
test_width_dense_ansi_control_codes_ignore
tests/test_benchmarks.py
CodSpeed Performance Gauge
-5%
304.3 µs321.7 µs
test_clip_dense_ansi_no_propagate_control_codes_ignore
tests/test_benchmarks.py
CodSpeed Performance Gauge
-5%
2.1 ms2.2 ms
test_clip_dense_ansi_no_propagate_no_overtype
tests/test_benchmarks.py
CodSpeed Performance Gauge
-5%
2.1 ms2.2 ms
test_strip_sequences_simple
tests/test_benchmarks.py
CodSpeed Performance Gauge
-3%
25.1 µs26 µs
test_width_complex_ansi
tests/test_benchmarks.py
CodSpeed Performance Gauge
-3%
48.7 µs50.5 µs
test_strip_sequences_complex
tests/test_benchmarks.py
CodSpeed Performance Gauge
-3%
30.2 µs31.2 µs
test_clip_with_ansi_no_propagate
tests/test_benchmarks.py
CodSpeed Performance Gauge
-3%
116.7 µs120.2 µs
test_width_with_ansi_codes
tests/test_benchmarks.py
CodSpeed Performance Gauge
-2%
56.4 µs57.7 µs
test_width_complex_ansi_control_codes_ignore
tests/test_benchmarks.py
CodSpeed Performance Gauge
-2%
47.3 µs48.1 µs
test_clip_complex_sgr_no_overtype
tests/test_benchmarks.py
CodSpeed Performance Gauge
-1%
252.3 µs255.2 µs
test_wrap_complex_sgr
tests/test_benchmarks.py
CodSpeed Performance Gauge
-1%
504.1 µs509.6 µs
test_iter_sequences_plain
tests/test_benchmarks.py
CodSpeed Performance Gauge
-1%
32.9 µs33.2 µs
test_wrap_with_ansi
tests/test_benchmarks.py
CodSpeed Performance Gauge
-1%
396.2 µs399.9 µs
test_wrap_with_ansi_no_propagate
tests/test_benchmarks.py
CodSpeed Performance Gauge
-1%
314.8 µs317.4 µs
test_clip_with_ansi_no_overtype
tests/test_benchmarks.py
CodSpeed Performance Gauge
-1%
160.5 µs161.8 µs
test_iter_graphemes_reverse_short
tests/test_benchmarks.py
CodSpeed Performance Gauge
-1%
94.4 µs95 µs
test_iter_sequences_mixed
tests/test_benchmarks.py
CodSpeed Performance Gauge
-1%
51 µs51.4 µs
test_width_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
+1%
19 µs18.9 µs
test_clip_japanese
tests/test_benchmarks.py
CodSpeed Performance Gauge
-1%
112.7 µs113.5 µs

Commits

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