Commit b7b1408
authored
feat(vortex-bench): support vortex native geo types into SpatialBench, and wire into benchmark orchestrator (#8623)
## Summary
<!--
Why are you proposing this change, and what is its impact?
Is it part of a long term effort, or a bigger change?
If this PR is related to a tracked effort or an open issue, please link
to the relevant issue.
-->
Wires vortex geo native format into SpatialBench, and wire into the
`vx-bench` / `bench-orchestrator` pipeline so it can be run end-to-end
like the other benchmarks.
Running command:
```
vx-bench run spatialbench -e duckdb -f parquet,vortex,vortex-native --opt scale-factor=1.0 --queries 1,2,3,4,5,6,7,8,9
```
## Limitation
<!--
No need to duplicate information from the previous section, but if
you're touching many
parts of the code base, its worth explicitly noting the important
changes or how they are tested.
-->
- DuckDB-only as before. For now SpatialBench queries use
DuckDB-specific ST_* spatial SQL that DataFusion has no functions for
yet. There is a a single ad-hoc entry in `BENCHMARK_ENGINES = {
SPATIALBENCH: {DUCKDB} }`.
- Queries 10, 11, 12 is timeout simply because DuckDB poorly support on
Spatial index.
## Performance
SF=1.0
```
┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓
┃ Query ┃ duckdb:parquet (base) ┃ duckdb:vortex ┃ duckdb:vortex-native ┃
┡━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩
│ 1 │ 40.8ms │ 13.8ms (0.34x) │ 23.2ms (0.57x) │
│ 2 │ 181.2ms │ 26.3ms (0.14x) │ 35.3ms (0.20x) │
│ 3 │ 57.8ms │ 19.8ms (0.34x) │ 30.9ms (0.53x) │
│ 4 │ 331.9ms │ 61.8ms (0.19x) │ 111.0ms (0.33x) │
│ 5 │ 356.1ms │ 294.3ms (0.83x) │ 299.3ms (0.84x) │
│ 6 │ 441.9ms │ 86.3ms (0.20x) │ 135.1ms (0.31x) │
│ 7 │ 157.2ms │ 73.7ms (0.47x) │ 93.1ms (0.59x) │
│ 8 │ 197.8ms │ 78.1ms (0.39x) │ 91.9ms (0.46x) │
│ 9 │ 20.3ms │ 18.6ms (0.91x) │ 20.7ms (1.02x) │
└───────┴───────────────────────┴─────────────────┴──────────────────────┘
```
SF=3
```
┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓
┃ Query ┃ duckdb:parquet (base) ┃ duckdb:vortex ┃ duckdb:vortex-native ┃
┡━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩
│ 1 │ 51.5ms │ 26.6ms (0.52x) │ 61.6ms (1.20x) │
│ 2 │ 127.6ms │ 56.2ms (0.44x) │ 93.1ms (0.73x) │
│ 3 │ 69.1ms │ 46.3ms (0.67x) │ 80.0ms (1.16x) │
│ 4 │ 543.4ms │ 64.5ms (0.12x) │ 119.6ms (0.22x) │
│ 5 │ 980.6ms │ 881.6ms (0.90x) │ 894.4ms (0.91x) │
│ 6 │ 660.9ms │ 133.8ms (0.20x) │ 233.2ms (0.35x) │
│ 7 │ 255.7ms │ 240.6ms (0.94x) │ 264.9ms (1.04x) │
│ 8 │ 267.6ms │ 247.4ms (0.92x) │ 299.7ms (1.12x) │
│ 9 │ 30.1ms │ 28.8ms (0.96x) │ 30.6ms (1.02x) │
└───────┴───────────────────────┴─────────────────┴──────────────────────┘
```
SF=10
```
┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓
┃ Query ┃ duckdb:parquet (base) ┃ duckdb:vortex ┃ duckdb:vortex-native ┃
┡━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩
│ 1 │ 160.4ms │ 128.5ms (0.80x) │ 214.8ms (1.34x) │
│ 2 │ 254.3ms │ 239.8ms (0.94x) │ 325.9ms (1.28x) │
│ 3 │ 231.0ms │ 198.7ms (0.86x) │ 284.4ms (1.23x) │
│ 4 │ 188.0ms │ 124.2ms (0.66x) │ 147.9ms (0.79x) │
│ 5 │ 3.14s │ 3.05s (0.97x) │ 2.92s (0.93x) │
│ 6 │ 480.5ms │ 361.7ms (0.75x) │ 467.7ms (0.97x) │
│ 7 │ 992.8ms │ 1.02s (1.02x) │ 915.2ms (0.92x) │
│ 8 │ 1.07s │ 961.8ms (0.90x) │ 1.02s (0.95x) │
│ 9 │ 34.2ms │ 34.1ms (1.00x) │ 43.5ms (1.27x) │
└───────┴───────────────────────┴─────────────────┴──────────────────────┘
```
<!--
Are there any user-facing changes that might require documentation
updates
Is any public API changed?
-->
Takeaways: for now we do not have only pushdown to execute predicate in
vortex kernel, so geo native types pay the tax of converting to
geo-binary (talk to duckdb) but no gains, so in SF=10 vortex-native is
less efficient compared with vortex-wkb.
---------
Signed-off-by: Nemo Yu <zyu379@wisc.edu>1 parent 574326f commit b7b1408
18 files changed
Lines changed: 400 additions & 32 deletions
File tree
- bench-orchestrator
- bench_orchestrator
- tests
- benchmarks
- datafusion-bench/src
- duckdb-bench/src
- vortex-bench
- src
- spatialbench
- datagen
- vortex-duckdb/src
- convert
- exporter
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
| |||
55 | 72 | | |
56 | 73 | | |
57 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
58 | 92 | | |
59 | 93 | | |
60 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
50 | 59 | | |
51 | 60 | | |
52 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
| |||
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
| 194 | + | |
188 | 195 | | |
189 | 196 | | |
190 | 197 | | |
| |||
197 | 204 | | |
198 | 205 | | |
199 | 206 | | |
| 207 | + | |
200 | 208 | | |
201 | 209 | | |
202 | 210 | | |
| |||
0 commit comments