Skip to content

Implement compare/between for bitpacked arrays - improve performance by up to 2X#7279

Closed
AdamGS wants to merge 14 commits into
developfrom
adamg/bitpack-compare
Closed

Implement compare/between for bitpacked arrays - improve performance by up to 2X#7279
AdamGS wants to merge 14 commits into
developfrom
adamg/bitpack-compare

lets try this one maybe?

7a3b856
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis failed May 19, 2026 in 0s

2 benchmarks regressed

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚡ 27 improved benchmarks
❌ 2 regressed benchmarks
✅ 1208 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation chunked_varbinview_opt_canonical_into[(1000, 10)] 187.5 µs 224.9 µs -16.66%
Simulation new_alp_prim_test_between[f64, 2048] 70.6 µs 55.1 µs +28.16%
Simulation new_alp_prim_test_between[f64, 32768] 250.4 µs 117.9 µs ×2.1
Simulation new_bp_prim_test_between[i16, 16384] 82.2 µs 65 µs +26.35%
Simulation new_bp_prim_test_between[i16, 32768] 120.3 µs 93.2 µs +29.02%
Simulation new_bp_prim_test_between[i32, 2048] 53.4 µs 43.5 µs +22.93%
Simulation new_alp_prim_test_between[f32, 2048] 62.1 µs 51.5 µs +20.54%
Simulation new_bp_prim_test_between[i16, 2048] 48.8 µs 40.3 µs +21.24%
Simulation new_bp_prim_test_between[i32, 32768] 155.9 µs 98.7 µs +58.06%
Simulation new_alp_prim_test_between[f32, 32768] 153.3 µs 112 µs +36.87%
Simulation baseline_eq[4, 65536] 237.9 µs 179.9 µs +32.21%
Simulation fast_eq_out_of_range[4, 65536] 246 µs 85.4 µs ×2.9
Simulation baseline_lt[4, 65536] 251.9 µs 200.7 µs +25.52%
Simulation baseline_eq[16, 65536] 259.4 µs 202.3 µs +28.2%
Simulation new_bp_prim_test_between[i32, 16384] 101.2 µs 69.5 µs +45.55%
Simulation new_alp_prim_test_between[f32, 16384] 103.9 µs 79.6 µs +30.56%
Simulation new_alp_prim_test_between[f64, 16384] 146.9 µs 84.8 µs +73.13%
Simulation fast_lt_out_of_range[16, 1024] 67.9 µs 25.1 µs ×2.7
Simulation fast_lt_out_of_range[16, 65536] 306.3 µs 144.9 µs ×2.1
Simulation fast_lt_out_of_range[4, 1024] 87.5 µs 31.1 µs ×2.8
... ... ... ... ... ...

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

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing adamg/bitpack-compare (7a3b856) with develop (2fa51e2)

Open in CodSpeed