jquast
wcwidth
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Add fast path for ASCII printables to `width()`
#185
Merged
Comparing
hugovk:master
(
315ce5e
) with
master
(
4738d79
)
CodSpeed Performance Gauge
×2
Improvement
5
Untouched
33
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
38 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_width_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
×2
42 µs
20.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wrap_long_text
tests/test_benchmarks.py
CodSpeed Performance Gauge
+59%
4.3 ms
2.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wrap_short_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
+40%
349.9 µs
249.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wrap_with_ansi
tests/test_benchmarks.py
CodSpeed Performance Gauge
+30%
363.2 µs
278.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wrap_udhr
tests/test_benchmarks.py
CodSpeed Performance Gauge
+15%
655.5 ms
572.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_clip_with_ansi
tests/test_benchmarks.py
CodSpeed Performance Gauge
+3%
108.6 µs
105.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wcwidth_wide
tests/test_benchmarks.py
CodSpeed Performance Gauge
+1%
17.2 µs
17.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iter_graphemes_combining
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
315.6 µs
314.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iter_graphemes_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
118.6 µs
118.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iter_graphemes_emoji
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
116 µs
115.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_clip_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
24.9 µs
24.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_ljust_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
27.1 µs
27 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_center_mixed
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
43.1 µs
43.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wcwidth_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
20.9 µs
20.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wcswidth_udhr
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
25.1 µs
25.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wcswidth_long_japanese
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
278.7 µs
278.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_width_udhr
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
138.9 ms
139 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_rjust_udhr_lines
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wcswidth_emoji_sequence
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
50 µs
50.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wrap_japanese
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
5.3 ms
5.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_ljust_udhr_lines
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wcswidth_long_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
21.7 µs
21.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wcswidth_short_ascii
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
20.4 µs
20.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_center_udhr_lines
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.9 ms
1.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_wcswidth_short_mixed
tests/test_benchmarks.py
CodSpeed Performance Gauge
0%
33.8 µs
33.9 µs
1
2
Commits
Click on a commit to change the comparison range
Base
master
4738d79
×2
Add fast path for ASCII printables to width()
315ce5e
2 days ago
by hugovk
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs