pola-rs
polars
BlogDocsChangelog

perf(python): Use PyO3 to convert between Python and Rust datetimes

#20660Merged
Comparing
bschoenmaeckers:datetime-convert
(
0a3fa09
) with
main
(
a0d96f2
)
CodSpeed Performance Gauge
-1%
Untouched
41
Ignored
1

Benchmarks

Passed

test_non_strict_inequalities
py-polars/tests/benchmark/test_join_where.py
CodSpeed Performance Gauge
+7%
188.3 ms175.3 ms
test_groupby_h2oai_q3
py-polars/tests/benchmark/test_group_by.py
CodSpeed Performance Gauge
+5%
2.2 ms2.1 ms
test_groupby_h2oai_q10
py-polars/tests/benchmark/test_group_by.py
CodSpeed Performance Gauge
+3%
6 ms5.8 ms
test_groupby_h2oai_q8
py-polars/tests/benchmark/test_group_by.py
CodSpeed Performance Gauge
+3%
2.6 ms2.5 ms
test_pdsh_q16
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
+3%
12.3 ms11.9 ms
test_groupby_h2oai_q6
py-polars/tests/benchmark/test_group_by.py
CodSpeed Performance Gauge
+2%
9.7 ms9.4 ms
test_pdsh_q6
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
+2%
4.9 ms4.8 ms
test_pdsh_q3
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
+1%
9.5 ms9.4 ms
test_pdsh_q13
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
+1%
22.2 ms22 ms
test_pdsh_q8
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
+1%
8.2 ms8.2 ms
test_groupby_h2oai_q7
py-polars/tests/benchmark/test_group_by.py
CodSpeed Performance Gauge
+1%
1.9 ms1.9 ms
test_pdsh_q14
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
+1%
4.1 ms4 ms
test_pdsh_q7
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
0%
10.3 ms10.2 ms
test_groupby_h2oai_q4
py-polars/tests/benchmark/test_group_by.py
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_pdsh_q19
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
0%
9.8 ms9.8 ms
test_pdsh_q4
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
0%
7.1 ms7.1 ms
test_to_numpy_series_chunked
py-polars/tests/benchmark/interop/test_numpy.py
CodSpeed Performance Gauge
0%
274.1 µs274.6 µs
test_to_numpy_series_with_nulls
py-polars/tests/benchmark/interop/test_numpy.py
CodSpeed Performance Gauge
0%
327.3 µs328.1 µs
test_groupby_h2oai_q9
py-polars/tests/benchmark/test_group_by.py
CodSpeed Performance Gauge
0%
20.1 ms20.2 ms
test_pdsh_q5
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
0%
6.7 ms6.8 ms
test_pdsh_q9
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
0%
28.1 ms28.2 ms
test_pdsh_q21
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-1%
142.3 ms143.1 ms
test_to_numpy_series_zero_copy
py-polars/tests/benchmark/interop/test_numpy.py
CodSpeed Performance Gauge
-1%
128.4 µs129.2 µs
test_write_read_scan_large_csv
py-polars/tests/benchmark/test_io.py
CodSpeed Performance Gauge
-1%
37 ms37.3 ms
test_datetime_range_fast_slow_paths
py-polars/tests/unit/functions/range/test_datetime_range.py
CodSpeed Performance Gauge
-1%
288.3 ms290.3 ms
test_groupby_h2oai_q2
py-polars/tests/benchmark/test_group_by.py
CodSpeed Performance Gauge
-1%
3.8 ms3.9 ms
test_pdsh_q1
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-1%
25.7 ms26 ms
test_pdsh_q17
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-1%
7.4 ms7.5 ms
test_pdsh_q10
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-1%
9.5 ms9.6 ms
test_groupby_h2oai_q5
py-polars/tests/benchmark/test_group_by.py
CodSpeed Performance Gauge
-2%
1.8 ms1.8 ms
test_pdsh_q12
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-2%
8.8 ms9 ms
test_single_inequality
py-polars/tests/benchmark/test_join_where.py
CodSpeed Performance Gauge
-2%
76.8 ms78.1 ms
test_pdsh_q22
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-2%
13.6 ms13.8 ms
test_pdsh_q20
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-2%
8.5 ms8.7 ms
test_pdsh_q18
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-3%
11.8 ms12.2 ms
test_groupby_h2oai_q1
py-polars/tests/benchmark/test_group_by.py
CodSpeed Performance Gauge
-3%
1.9 ms2 ms
test_filter1
py-polars/tests/benchmark/test_filter.py
CodSpeed Performance Gauge
-4%
734.9 µs767.8 µs
test_pdsh_q11
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-5%
3.4 ms3.6 ms
test_pdsh_q2
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-7%
4.4 ms4.8 ms
test_strict_inequalities
py-polars/tests/benchmark/test_join_where.py
CodSpeed Performance Gauge
-8%
169.6 ms183.8 ms
test_pdsh_q15
py-polars/tests/benchmark/test_pdsh.py
CodSpeed Performance Gauge
-10%
3.5 ms3.9 ms

Ignored

test_filter2
py-polars/tests/benchmark/test_filter.py
Ignored
CodSpeed Performance Gauge
+2%
1.1 ms1 ms

Commits

Click on a commit to change the comparison range
Base
main
a0d96f2
-0.72%
use rust to convert to/from python datetimes
0a3fa09
1 year ago
by bschoenmaeckers
© 2026 CodSpeed Technology
Home Terms Privacy Docs