Skip to content

feat: use cardinality estimator for distinct count stats

7fa9309
Select commit
Loading
Failed to load commit list.
Draft

Use approximate cardinality to decide whether to use dict compression #7759

feat: use cardinality estimator for distinct count stats
7fa9309
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis failed May 2, 2026 in 0s

Performance Regression: -24.9%

⚠️ 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.

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 3 improved benchmarks
❌ 4 regressed benchmarks
✅ 1162 untouched benchmarks
⏩ 138 skipped benchmarks1

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

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation varbinview_zip_fragmented_mask 6.5 ms 7.3 ms -10.29%
Simulation decode_primitives[u8, (1000, 2)] 15.8 µs 17.6 µs -10.29%
Simulation encode_varbinview[(1000, 2)] 243.8 µs 168.1 µs +45.05%
Simulation encode_varbin[(10000, 512)] 1,029.1 µs 934.6 µs +10.11%
Simulation varbinview_zip_block_mask 2.9 ms 3.7 ms -21.65%
Simulation new_bp_prim_test_between[i64, 32768] 177.3 µs 236.1 µs -24.9%
Simulation dict_compress_string 8.2 ms 7.4 ms +10.54%

Comparing rk/cardinality-estimator (7fa9309) with develop (5e5572b)

Open in CodSpeed

Footnotes

  1. 138 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.