BlogDocs

feat: Speed up starts_with for small prefixes(#19904)

Merged
Comparing
stijnherfst:starts-with
(
023ea87
) with
main
(
132c64d
)
+2%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
41
NEW
0
DROPPED
0
IGNORED
1

Benchmarks

Passed

test_groupby_h2oai_q1
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q1
+16%
2.3 ms
2 ms
test_groupby_h2oai_q5
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q5
+13%
2.1 ms
1.9 ms
test_single_inequality
py-polars/tests/benchmark/test_join_where.py::test_single_inequality
+9%
78.7 ms
72.2 ms
test_pdsh_q11
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q11
+8%
4.3 ms
4 ms
test_groupby_h2oai_q10
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q10
+6%
6.4 ms
6 ms
test_groupby_h2oai_q7
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q7
+5%
2.1 ms
2 ms
test_pdsh_q3
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q3
+5%
8.1 ms
7.7 ms
test_pdsh_q10
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q10
+5%
8.7 ms
8.3 ms
test_pdsh_q6
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q6
+4%
3.8 ms
3.7 ms
test_pdsh_q5
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q5
+3%
6.3 ms
6.1 ms
test_pdsh_q13
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q13
+3%
10.8 ms
10.5 ms
test_pdsh_q8
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q8
+2%
7.5 ms
7.4 ms
test_groupby_h2oai_q3
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q3
+2%
2.4 ms
2.3 ms
test_groupby_h2oai_q6
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q6
+2%
12.7 ms
12.5 ms
test_groupby_h2oai_q8
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q8
+2%
3 ms
2.9 ms
test_pdsh_q17
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q17
+2%
7.5 ms
7.3 ms
test_to_numpy_series_zero_copy
py-polars/tests/benchmark/interop/test_numpy.py::test_to_numpy_series_zero_copy
+2%
125.4 µs
123.5 µs
test_pdsh_q2
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q2
+1%
4.2 ms
4.2 ms
test_pdsh_q16
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q16
+1%
8.1 ms
8 ms
test_pdsh_q21
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q21
+1%
219.7 ms
217.4 ms
test_pdsh_q9
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q9
+1%
27.6 ms
27.3 ms
test_groupby_h2oai_q9
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q9
+1%
28.2 ms
28 ms
test_to_numpy_series_chunked
py-polars/tests/benchmark/interop/test_numpy.py::test_to_numpy_series_chunked
+1%
272.9 µs
270.9 µs
test_to_numpy_series_with_nulls
py-polars/tests/benchmark/interop/test_numpy.py::test_to_numpy_series_with_nulls
+1%
325.6 µs
323.9 µs
test_pdsh_q22
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q22
0%
15.8 ms
15.8 ms
test_strict_inequalities
py-polars/tests/benchmark/test_join_where.py::test_strict_inequalities
0%
170.8 ms
170.2 ms
test_pdsh_q1
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q1
0%
24.8 ms
24.8 ms
test_non_strict_inequalities
py-polars/tests/benchmark/test_join_where.py::test_non_strict_inequalities
0%
175.8 ms
175.8 ms
test_write_read_scan_large_csv
py-polars/tests/benchmark/test_io.py::test_write_read_scan_large_csv
0%
39.7 ms
39.7 ms
test_datetime_range_fast_slow_paths
py-polars/tests/unit/functions/range/test_datetime_range.py::test_datetime_range_fast_slow_paths
0%
396.6 ms
396.9 ms
test_pdsh_q12
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q12
0%
8 ms
8 ms
test_pdsh_q19
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q19
-1%
8.8 ms
8.9 ms
test_groupby_h2oai_q2
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q2
-1%
4.4 ms
4.4 ms
test_pdsh_q18
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q18
-1%
13.3 ms
13.4 ms
test_pdsh_q4
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q4
-1%
6.2 ms
6.3 ms
test_filter1
py-polars/tests/benchmark/test_filter.py::test_filter1
-2%
760.7 µs
776.6 µs
test_pdsh_q20
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q20
-2%
7.4 ms
7.6 ms
test_pdsh_q7
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q7
-3%
10.4 ms
10.7 ms
test_pdsh_q14
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q14
-3%
3.3 ms
3.4 ms
test_groupby_h2oai_q4
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q4
-4%
1.9 ms
2 ms
test_pdsh_q15
py-polars/tests/benchmark/test_pdsh.py::test_pdsh_q15
-11%
3 ms
3.4 ms

Ignored

test_filter2Ignored
py-polars/tests/benchmark/test_filter.py::test_filter2
-3%
1.1 ms
1.1 ms

Commits

Click on a commit to change the comparison range
base
main
132c64d
0%
Remove unsafe block
c9caae2
3 days ago
by stijnherfst
0%
Fix fmt
642b93a
2 days ago
by stijnherfst
-1%
Lint
c9a4f79
2 days ago
by stijnherfst
0%
Specializations
ad22190
2 days ago
by stijnherfst
+2%
Remove unsafe
023ea87
1 day ago
by stijnherfst
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.