Skip to content

Performance improvements: 1.07x - 8.4x#315

Merged
hugovk merged 10 commits into
python-humanize:mainfrom
hugovk:perf
May 16, 2026
Merged

Performance improvements: 1.07x - 8.4x#315
hugovk merged 10 commits into
python-humanize:mainfrom
hugovk:perf

Add perflint to Ruff

64cefb4
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded May 16, 2026 in 0s

Performance Gate Passed

⚠️ 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

⚡ 5 improved benchmarks
✅ 10 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
test_scientific 71.1 µs 50.5 µs +40.73%
test_apnumber 88.9 µs 43.2 µs ×2.1
test_ordinal 94 µs 51.1 µs +83.87%
test_intcomma 94.2 µs 55.1 µs +70.92%
test_natural_list 34.4 µs 27.5 µs +25.32%

Tip

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


Comparing hugovk:perf (64cefb4) with main (e7c04f4)

Open in CodSpeed