Skip to content

feat: add benchmark for column store and optimize performance#183

Merged
zz-jason merged 1 commit intozz-jason:mainfrom
sotkvh:benchmark
Feb 9, 2026
Merged

feat: add benchmark for column store and optimize performance#183
zz-jason merged 1 commit intozz-jason:mainfrom
sotkvh:benchmark

Conversation

@sotkvh
Copy link
Contributor

@sotkvh sotkvh commented Feb 8, 2026

What's changed and how does it work?

This PR adds a table-level benchmark and improves the column-store hot path.

  • Add table_interface_benchmark to compare row-store vs column-store point lookup and full scan.
  • Refactor row encoding/decoding into shared layout-based helpers (RowEncodingLayout) and reuse them across TableCodec and ColumnBlockReader to avoid build TableDefinition in column block reader.
  • Optimize column-store build and read paths by reducing per-row allocations/copies).

@codecov
Copy link

codecov bot commented Feb 8, 2026

Codecov Report

❌ Patch coverage is 60.29106% with 191 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.55%. Comparing base (30e7b51) to head (b391a9b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/table/encoding.cpp 62.80% 75 Missing and 15 partials ⚠️
src/btree/column_store/column_block_reader.cpp 39.06% 32 Missing and 7 partials ⚠️
src/btree/column_store/column_block_builder.cpp 71.27% 17 Missing and 10 partials ⚠️
src/table/table_column_store.cpp 60.86% 8 Missing and 10 partials ⚠️
src/btree/column_store/column_leaf_ops.cpp 19.04% 15 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #183      +/-   ##
==========================================
+ Coverage   52.36%   52.55%   +0.19%     
==========================================
  Files         157      157              
  Lines       11027    11181     +154     
  Branches     4752     4785      +33     
==========================================
+ Hits         5774     5876     +102     
- Misses       4524     4582      +58     
+ Partials      729      723       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zz-jason zz-jason merged commit 5bd63fe into zz-jason:main Feb 9, 2026
22 of 24 checks passed
@sotkvh sotkvh deleted the benchmark branch February 9, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments