Skip to content

Feature: add take for primitive and bool vectors#5540

Merged
connortsui20 merged 9 commits into
developfrom
ct/take-pvector
Dec 9, 2025
Merged

Feature: add take for primitive and bool vectors#5540
connortsui20 merged 9 commits into
developfrom
ct/take-pvector

better benchmarks

9bb56d7
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis failed Dec 9, 2025 in 0s

Performance Regression: -12.73%

Summary

⚡ 1 improvement
❌ 2 regressions
✅ 1148 untouched
🆕 48 new
⏩ 624 skipped1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
encode_varbin[(1000, 2)] 244.2 µs 220.1 µs +10.98%
take_map[(0.05, 1.0)] 3.5 ms 4 ms -11.7%
take_map[(0.1, 1.0)] 4.2 ms 4.8 ms -12.73%
🆕 dict_canonicalize_uniform[16, 10000] N/A 76.7 µs N/A
🆕 dict_canonicalize_uniform[16, 1000] N/A 29.3 µs N/A
🆕 dict_canonicalize_uniform[2048, 100000] N/A 559.3 µs N/A
🆕 dict_canonicalize_uniform[16, 100000] N/A 555.2 µs N/A
🆕 dict_canonicalize_uniform[2048, 1000] N/A 33.1 µs N/A
🆕 dict_canonicalize_uniform[2048, 10000] N/A 80.4 µs N/A
🆕 dict_canonicalize_zipfian[16, 100000] N/A 555.1 µs N/A
🆕 dict_canonicalize_uniform[256, 10000] N/A 77.2 µs N/A
🆕 dict_canonicalize_uniform[8192, 10000] N/A 94.1 µs N/A
🆕 dict_canonicalize_uniform[256, 1000] N/A 29.6 µs N/A
🆕 pvector_take_zipfian[2048, 10000] N/A 60.9 µs N/A
🆕 dict_canonicalize_uniform[8192, 1000] N/A 42.2 µs N/A
🆕 dict_canonicalize_uniform[256, 100000] N/A 555.9 µs N/A
🆕 dict_canonicalize_zipfian[2048, 10000] N/A 80.5 µs N/A
🆕 dict_canonicalize_uniform[8192, 100000] N/A 598.6 µs N/A
🆕 pvector_take_zipfian[2048, 100000] N/A 539.7 µs N/A
🆕 dict_canonicalize_zipfian[2048, 100000] N/A 559.5 µs N/A
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Footnotes

  1. 624 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.