BlogDocs

perf(python): Improve `Series.to_numpy` performance for chunked Series that would otherwise be zero-copy(#16301)

Merged
Merging
to-np-copy-chunk
into
main
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
34
NEW
3
DROPPED
0
IGNORED
1

Benchmarks

Passing

test_to_numpy_series_chunked
py-polars/tests/benchmark/interop/test_numpy.py::test_to_numpy_series_chunked
N/A
N/A
777.4 µs
test_to_numpy_series_with_nulls
py-polars/tests/benchmark/interop/test_numpy.py::test_to_numpy_series_with_nulls
N/A
N/A
970.5 µs
test_to_numpy_series_zero_copy
py-polars/tests/benchmark/interop/test_numpy.py::test_to_numpy_series_zero_copy
N/A
N/A
303.5 µs
test_filter1
py-polars/tests/benchmark/test_filter.py::test_filter1
+2%
693.7 µs
681.7 µs
test_groupby_h2oai_q1
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q1
+2%
1.9 ms
1.9 ms
test_groupby_h2oai_q10
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q10
+1%
6.2 ms
6.2 ms
test_groupby_h2oai_q2
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q2
+1%
4 ms
4 ms
test_groupby_h2oai_q3
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q3
+2%
2 ms
2 ms
test_groupby_h2oai_q4
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q4
0%
1.7 ms
1.7 ms
test_groupby_h2oai_q5
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q5
-2%
1.6 ms
1.7 ms
test_groupby_h2oai_q6
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q6
+3%
9.8 ms
9.5 ms
test_groupby_h2oai_q7
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q7
-3%
1.9 ms
2 ms
test_groupby_h2oai_q8
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q8
-2%
2.3 ms
2.3 ms
test_groupby_h2oai_q9
py-polars/tests/benchmark/test_group_by.py::test_groupby_h2oai_q9
+1%
19.4 ms
19.2 ms
test_write_read_scan_large_csv
py-polars/tests/benchmark/test_io.py::test_write_read_scan_large_csv
0%
33 ms
33 ms
test_tpch_q1
py-polars/tests/benchmark/test_tpch.py::test_tpch_q1
+1%
15.4 ms
15.2 ms
test_tpch_q10
py-polars/tests/benchmark/test_tpch.py::test_tpch_q10
+3%
5.6 ms
5.5 ms
test_tpch_q11
py-polars/tests/benchmark/test_tpch.py::test_tpch_q11
-2%
3.1 ms
3.2 ms
test_tpch_q12
py-polars/tests/benchmark/test_tpch.py::test_tpch_q12
+1%
5.3 ms
5.2 ms
test_tpch_q13
py-polars/tests/benchmark/test_tpch.py::test_tpch_q13
0%
8.1 ms
8.1 ms
test_tpch_q14
py-polars/tests/benchmark/test_tpch.py::test_tpch_q14
0%
1.8 ms
1.8 ms
test_tpch_q15
py-polars/tests/benchmark/test_tpch.py::test_tpch_q15
-2%
2 ms
2 ms
test_tpch_q16
py-polars/tests/benchmark/test_tpch.py::test_tpch_q16
-2%
5.2 ms
5.3 ms
test_tpch_q17
py-polars/tests/benchmark/test_tpch.py::test_tpch_q17
0%
5.8 ms
5.8 ms
test_tpch_q18
py-polars/tests/benchmark/test_tpch.py::test_tpch_q18
+4%
10.4 ms
10 ms
test_tpch_q19
py-polars/tests/benchmark/test_tpch.py::test_tpch_q19
-1%
6.7 ms
6.8 ms
test_tpch_q2
py-polars/tests/benchmark/test_tpch.py::test_tpch_q2
-6%
3.1 ms
3.3 ms
test_tpch_q20
py-polars/tests/benchmark/test_tpch.py::test_tpch_q20
+1%
5.8 ms
5.7 ms
test_tpch_q21
py-polars/tests/benchmark/test_tpch.py::test_tpch_q21
+1%
144.3 ms
143.4 ms
test_tpch_q22
py-polars/tests/benchmark/test_tpch.py::test_tpch_q22
+5%
5 ms
4.8 ms
test_tpch_q3
py-polars/tests/benchmark/test_tpch.py::test_tpch_q3
+1%
5 ms
5 ms
test_tpch_q4
py-polars/tests/benchmark/test_tpch.py::test_tpch_q4
+6%
4.2 ms
3.9 ms
test_tpch_q5
py-polars/tests/benchmark/test_tpch.py::test_tpch_q5
-3%
3.9 ms
4.1 ms
test_tpch_q6
py-polars/tests/benchmark/test_tpch.py::test_tpch_q6
+4%
1.7 ms
1.7 ms
test_tpch_q7
py-polars/tests/benchmark/test_tpch.py::test_tpch_q7
-1%
7.2 ms
7.3 ms
test_tpch_q8
py-polars/tests/benchmark/test_tpch.py::test_tpch_q8
-2%
4.8 ms
4.9 ms
test_tpch_q9
py-polars/tests/benchmark/test_tpch.py::test_tpch_q9
0%
24.7 ms
24.7 ms

Ignored

test_filter2Ignored
py-polars/tests/benchmark/test_filter.py::test_filter2
+1%
987.3 µs
981.8 µs

Commits

Click on a commit to change the comparison range
base
main
e214e93
+1%
Typing
c55234a
a month ago by stinodego
0%
Return writable flag
319d255
a month ago by stinodego
ResourcesHomePricingDocsBlogGitHub
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.