Avatar for the uutils user
uutils
coreutils
BlogDocsChangelog

sort: Replace malloc and 0 fill with huge reserve & min 0 fill

#10975
Comparing
oech3:sort-malloc0
(
635e73f
) with
main
(
298e147
)
CodSpeed Performance Gauge
+65%
Improvement
22
Untouched
266
Skipped
38

Benchmarks

326 total
sort_long_line[160000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+65%
1,434.1 µs871.6 µs
sort_german_c_locale
src/uu/sort/benches/sort_locale_c_bench.rs
CodSpeed Performance Gauge
+49%
2.7 MB1.8 MB
sort_german_de_locale
src/uu/sort/benches/sort_locale_de_bench.rs
CodSpeed Performance Gauge
+49%
2.7 MB1.8 MB
sort_long_line[160000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+16%
702 KB604.4 KB
sort_ascii_c_locale
src/uu/sort/benches/sort_locale_c_bench.rs
CodSpeed Performance Gauge
+14%
18.2 ms16 ms
sort_ascii_utf8_locale
src/uu/sort/benches/sort_locale_utf8_bench.rs
CodSpeed Performance Gauge
+12%
17.6 ms15.8 ms
sort_reverse_utf8_locale
src/uu/sort/benches/sort_locale_utf8_bench.rs
CodSpeed Performance Gauge
+11%
2.6 MB2.3 MB
sort_mixed_utf8_locale
src/uu/sort/benches/sort_locale_utf8_bench.rs
CodSpeed Performance Gauge
+11%
2.6 MB2.3 MB
sort_mixed_c_locale
src/uu/sort/benches/sort_locale_c_bench.rs
CodSpeed Performance Gauge
+11%
2.6 MB2.3 MB
sort_ascii_utf8_locale
src/uu/sort/benches/sort_locale_utf8_bench.rs
CodSpeed Performance Gauge
+10%
5.1 MB4.6 MB
sort_ascii_c_locale
src/uu/sort/benches/sort_locale_c_bench.rs
CodSpeed Performance Gauge
+10%
5.1 MB4.6 MB
sort_unique_utf8_locale
src/uu/sort/benches/sort_locale_utf8_bench.rs
CodSpeed Performance Gauge
+8%
3.7 MB3.5 MB
sort_mixed_data[500000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+7%
21.9 MB20.5 MB
sort_dictionary_order[500000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+7%
22 MB20.5 MB
sort_ascii_only[500000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+6%
21.6 MB20.4 MB
sort_reverse_locale[500000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+5%
21.6 MB20.5 MB
sort_accented_data[500000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+5%
21.6 MB20.5 MB
sort_unique_locale[500000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+3%
33 MB31.9 MB
sort_numeric[500000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+3%
44.8 MB43.3 MB
sort_general_numeric[200000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+3%
23.6 MB22.8 MB
sort_unique_utf8_locale
src/uu/sort/benches/sort_locale_utf8_bench.rs
CodSpeed Performance Gauge
+3%
37.3 ms36.2 ms
sort_german_c_locale
src/uu/sort/benches/sort_locale_c_bench.rs
CodSpeed Performance Gauge
+3%
37.3 ms36.2 ms
sort_key_field[500000]
src/uu/sort/benches/sort_bench.rs
CodSpeed Performance Gauge
+3%
28.9 MB28.1 MB
sort_reverse_utf8_locale
src/uu/sort/benches/sort_locale_utf8_bench.rs
CodSpeed Performance Gauge
+3%
36.6 ms35.6 ms
sort_mixed_c_locale
src/uu/sort/benches/sort_locale_c_bench.rs
CodSpeed Performance Gauge
+3%
36.7 ms35.7 ms

Commits

Click on a commit to change the comparison range
Base
main
298e147
+64.53%
sort: Replace malloc and 0 fill with huge reserve & min 0 fill
635e73f
20 hours ago
by oech3
© 2026 CodSpeed Technology
Home Terms Privacy Docs