Avatar for the snad-space user
snad-space
coniferest
BlogDocsChangelog

Rust reimplementation of Cython code

#125Merged
Comparing
rust
(
8a880ec
) with
master
(
c78dece
)
CodSpeed Performance Gauge
×18
Improvements
46
Untouched
5

Benchmarks

Improved

test_benchmark_score_samples[4-64-32]
tests/test_isoforest.py::test_benchmark_score_samples[4-64-32]
CodSpeed Performance Gauge
×18
5,268.4 µs292.2 µs
test_benchmark_score_samples[4-128-32]
tests/test_isoforest.py::test_benchmark_score_samples[4-128-32]
CodSpeed Performance Gauge
×6.4
2,930.5 µs456.7 µs
test_benchmark_score_samples[4-256-32]
tests/test_isoforest.py::test_benchmark_score_samples[4-256-32]
CodSpeed Performance Gauge
×4.4
3,379.9 µs771 µs
test_benchmark_score_samples[2-128-32]
tests/test_isoforest.py::test_benchmark_score_samples[2-128-32]
CodSpeed Performance Gauge
×3
1,388.7 µs456.6 µs
test_benchmark_score_samples[1-128-1]
tests/test_isoforest.py::test_benchmark_score_samples[1-128-1]
CodSpeed Performance Gauge
×2.1
264.8 µs125.4 µs
test_benchmark_score_samples[2-64-1]
tests/test_isoforest.py::test_benchmark_score_samples[2-64-1]
CodSpeed Performance Gauge
×2
223.8 µs109.7 µs
test_benchmark_score_samples[1-64-1]
tests/test_isoforest.py::test_benchmark_score_samples[1-64-1]
CodSpeed Performance Gauge
×2
223.6 µs109.8 µs
test_benchmark_score_samples[4-64-1]
tests/test_isoforest.py::test_benchmark_score_samples[4-64-1]
CodSpeed Performance Gauge
×2
222 µs109.8 µs
test_benchmark_score_samples[2-64-32]
tests/test_isoforest.py::test_benchmark_score_samples[2-64-32]
CodSpeed Performance Gauge
+91%
558.6 µs292.5 µs
test_benchmark_score_samples[4-128-1]
tests/test_isoforest.py::test_benchmark_score_samples[4-128-1]
CodSpeed Performance Gauge
+88%
240.7 µs128.1 µs
test_benchmark_score_samples[2-128-1]
tests/test_isoforest.py::test_benchmark_score_samples[2-128-1]
CodSpeed Performance Gauge
+88%
241.2 µs128.5 µs
test_benchmark_score_samples[2-256-32]
tests/test_isoforest.py::test_benchmark_score_samples[2-256-32]
CodSpeed Performance Gauge
+82%
1,398.5 µs769.3 µs
test_benchmark_score_samples[1-256-1]
tests/test_isoforest.py::test_benchmark_score_samples[1-256-1]
CodSpeed Performance Gauge
+75%
276.2 µs157.7 µs
test_benchmark_score_samples[4-256-1]
tests/test_isoforest.py::test_benchmark_score_samples[4-256-1]
CodSpeed Performance Gauge
+74%
276.3 µs158.6 µs
test_benchmark_score_samples[2-256-1]
tests/test_isoforest.py::test_benchmark_score_samples[2-256-1]
CodSpeed Performance Gauge
+74%
276.1 µs158.7 µs
test_benchmark_score_samples[4-64-1024]
tests/test_isoforest.py::test_benchmark_score_samples[4-64-1024]
CodSpeed Performance Gauge
+57%
7.5 ms4.8 ms
test_benchmark_score_sklearn[1024]
tests/test_isoforest.py::test_benchmark_score_sklearn[1024]
CodSpeed Performance Gauge
+51%
37 ms24.5 ms
test_benchmark_score_samples[1-64-32]
tests/test_isoforest.py::test_benchmark_score_samples[1-64-32]
CodSpeed Performance Gauge
+46%
428.6 µs292.9 µs
test_benchmark_feature_signature[2]
tests/test_isoforest.py::test_benchmark_feature_signature[2]
CodSpeed Performance Gauge
+37%
563.4 µs412.4 µs
test_benchmark_feature_signature[128]
tests/test_isoforest.py::test_benchmark_feature_signature[128]
CodSpeed Performance Gauge
+36%
555.7 µs409.8 µs
test_benchmark_score_samples[1-128-32]
tests/test_isoforest.py::test_benchmark_score_samples[1-128-32]
CodSpeed Performance Gauge
+35%
614.1 µs456 µs
test_benchmark_score_samples[4-128-1024]
tests/test_isoforest.py::test_benchmark_score_samples[4-128-1024]
CodSpeed Performance Gauge
+32%
11 ms8.3 ms
test_benchmark_score_samples[4-256-1024]
tests/test_isoforest.py::test_benchmark_score_samples[4-256-1024]
CodSpeed Performance Gauge
+31%
19.7 ms15 ms
test_benchmark_fit_known
tests/test_aadforest.py::test_benchmark_fit_known
CodSpeed Performance Gauge
+30%
266.8 ms205.7 ms
test_benchmark_score_samples[1-256-32]
tests/test_isoforest.py::test_benchmark_score_samples[1-256-32]
CodSpeed Performance Gauge
+27%
978.7 µs771.5 µs
test_benchmark_score_samples[2-64-1024]
tests/test_isoforest.py::test_benchmark_score_samples[2-64-1024]
CodSpeed Performance Gauge
+25%
6 ms4.8 ms
test_benchmark_score_samples[2-256-1024]
tests/test_isoforest.py::test_benchmark_score_samples[2-256-1024]
CodSpeed Performance Gauge
+23%
18.5 ms15 ms
test_benchmark_score[1024]
tests/test_isoforest.py::test_benchmark_score[1024]
CodSpeed Performance Gauge
+22%
8.5 ms7 ms
test_benchmark_score_samples[2-128-1024]
tests/test_isoforest.py::test_benchmark_score_samples[2-128-1024]
CodSpeed Performance Gauge
+22%
10.1 ms8.3 ms
test_benchmark_score[1048576]
tests/test_isoforest.py::test_benchmark_score[1048576]
CodSpeed Performance Gauge
+21%
8.4 s6.9 s
test_benchmark_score_samples[1-256-1024]
tests/test_isoforest.py::test_benchmark_score_samples[1-256-1024]
CodSpeed Performance Gauge
+20%
18 ms15 ms
test_benchmark_score_samples[1-256-1048576]
tests/test_isoforest.py::test_benchmark_score_samples[1-256-1048576]
CodSpeed Performance Gauge
+19%
17.9 s15 s
test_benchmark_score_samples[1-128-1024]
tests/test_isoforest.py::test_benchmark_score_samples[1-128-1024]
CodSpeed Performance Gauge
+18%
9.8 ms8.3 ms
test_benchmark_score_samples[1-64-1024]
tests/test_isoforest.py::test_benchmark_score_samples[1-64-1024]
CodSpeed Performance Gauge
+18%
5.6 ms4.8 ms
test_benchmark_score_samples[1-128-1048576]
tests/test_isoforest.py::test_benchmark_score_samples[1-128-1048576]
CodSpeed Performance Gauge
+17%
9.7 s8.3 s
test_benchmark_fit_sklearn[1024]
tests/test_isoforest.py::test_benchmark_fit_sklearn[1024]
CodSpeed Performance Gauge
+17%
5.3 s4.5 s
test_benchmark_fit_sklearn[128]
tests/test_isoforest.py::test_benchmark_fit_sklearn[128]
CodSpeed Performance Gauge
+17%
668.1 ms569.2 ms
test_benchmark_score_samples[1-64-1048576]
tests/test_isoforest.py::test_benchmark_score_samples[1-64-1048576]
CodSpeed Performance Gauge
+16%
5.5 s4.7 s
test_benchmark_loss_gradient[1024-1024]
tests/test_aadforest.py::test_benchmark_loss_gradient[1024-1024]
CodSpeed Performance Gauge
+14%
4.4 ms3.9 ms
test_benchmark_loss_gradient[1024-65536]
tests/test_aadforest.py::test_benchmark_loss_gradient[1024-65536]
CodSpeed Performance Gauge
+14%
4.4 ms3.9 ms
test_benchmark_score_samples[4-256-1048576]
tests/test_isoforest.py::test_benchmark_score_samples[4-256-1048576]
CodSpeed Performance Gauge
+12%
17.9 s16 s
test_benchmark_score_samples[2-256-1048576]
tests/test_isoforest.py::test_benchmark_score_samples[2-256-1048576]
CodSpeed Performance Gauge
+12%
17.9 s16 s
test_benchmark_score_samples[4-128-1048576]
tests/test_isoforest.py::test_benchmark_score_samples[4-128-1048576]
CodSpeed Performance Gauge
+11%
9.7 s8.8 s
test_benchmark_score_samples[2-128-1048576]
tests/test_isoforest.py::test_benchmark_score_samples[2-128-1048576]
CodSpeed Performance Gauge
+11%
9.7 s8.8 s
test_benchmark_score_samples[2-64-1048576]
tests/test_isoforest.py::test_benchmark_score_samples[2-64-1048576]
CodSpeed Performance Gauge
+10%
5.5 s5 s
test_benchmark_score_samples[4-64-1048576]
tests/test_isoforest.py::test_benchmark_score_samples[4-64-1048576]
CodSpeed Performance Gauge
+10%
5.5 s5 s

Passed

test_benchmark_fit[1024]
tests/test_isoforest.py::test_benchmark_fit[1024]
CodSpeed Performance Gauge
+9%
4 s3.7 s
test_benchmark_fit[128]
tests/test_isoforest.py::test_benchmark_fit[128]
CodSpeed Performance Gauge
+9%
491.1 ms452.2 ms
test_benchmark_loss_gradient[16384-1024]
tests/test_aadforest.py::test_benchmark_loss_gradient[16384-1024]
CodSpeed Performance Gauge
+7%
125.9 ms117.8 ms
test_benchmark_loss_gradient[16384-65536]
tests/test_aadforest.py::test_benchmark_loss_gradient[16384-65536]
CodSpeed Performance Gauge
+7%
126.9 ms118.8 ms
test_benchmark_score_sklearn[1048576]
tests/test_isoforest.py::test_benchmark_score_sklearn[1048576]
CodSpeed Performance Gauge
-4%
18.3 s19.1 s

Commits

Click on a commit to change the comparison range
Base
master
c78dece
×18
Bumpy pyo3/numpy to 0.25
8a880ec
2 months ago
by hombit
© 2025 CodSpeed Technology
Home Terms Privacy Docs