feat(vortex-bench): infra of SpatialBench on DuckDB #8543
Open
HarukiMoriarty wants to merge 2 commits into
Open
feat(vortex-bench): infra of SpatialBench on DuckDB #8543HarukiMoriarty wants to merge 2 commits into
HarukiMoriarty wants to merge 2 commits into
Conversation
Signed-off-by: Nemo Yu <zyu379@wisc.edu>
Merging this PR will not alter performance
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | chunked_varbinview_canonical_into[(1000, 10)] |
154.6 µs | 190.9 µs | -19.02% |
| ❌ | Simulation | bitwise_not_vortex_buffer_mut[128] |
215.3 ns | 244.4 ns | -11.93% |
| ❌ | Simulation | rebuild_naive |
99.8 µs | 111 µs | -10.09% |
| ⚡ | Simulation | chunked_bool_canonical_into[(1000, 10)] |
26.4 µs | 16.1 µs | +63.33% |
| ⚡ | Simulation | chunked_varbinview_canonical_into[(100, 100)] |
260.4 µs | 223.7 µs | +16.42% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing nemo/spatialbench-duckdb (4216cd0) with develop (e6d0e08)
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a SpatialBench benchmark that runs on DuckDB across three storage lanes, Vortex native geometry, Vortex WKB, and GeoParquet. Spatial filters (
ST_Distance,ST_Point,ST_X,ST_Y) lower into the Vortex scan and compute over columnarPointcoordinates instead of materializing WKB each row.Benchmark results
Local, warm, median of 5 (ms).
Q0 — radius filter (
ST_Distance ≤ 50 km, ranked by distance)Q7 — building join (pickups within 500 m of each building)
Takeaways
ST_Distancefilter runs inside the scan over columnar f64 coordinates instead of materializing WKB per row.