diff --git a/test/benchmarking/src/bench_large_io.cc b/test/benchmarking/src/bench_large_io.cc index 757ad9cd88e..61cc929662a 100644 --- a/test/benchmarking/src/bench_large_io.cc +++ b/test/benchmarking/src/bench_large_io.cc @@ -94,8 +94,8 @@ class Benchmark : public BenchmarkBase { const unsigned skip = 2; for (uint32_t i = 1; i < sparse_max_row; i += skip) { for (uint32_t j = 1; j < sparse_max_col; j += skip) { - sparse_coords_.push_back(i); - sparse_coords_.push_back(j); + d1_.push_back(i); + d2_.push_back(j); } } } @@ -135,7 +135,8 @@ class Benchmark : public BenchmarkBase { .set_data_buffer("b", data_b_) .set_data_buffer("c", data_c_) .set_offsets_buffer("c", off_c_) - .set_coordinates(sparse_coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); s_write_query.submit(); s_write_array.close(); @@ -168,14 +169,16 @@ class Benchmark : public BenchmarkBase { Query query(ctx_, array); data_a_.resize(query.est_result_size("a")); - sparse_coords_.resize(query.est_result_size("TILEDB_COORDS")); + d1_.resize(query.est_result_size("d1")); + d2_.resize(query.est_result_size("d2")); query.set_subarray(Subarray(ctx_, array).set_subarray(subarray)) .set_layout(TILEDB_ROW_MAJOR) .set_data_buffer("a", data_a_) .set_data_buffer("b", data_b_) .set_data_buffer("c", data_c_) .set_offsets_buffer("c", off_c_) - .set_coordinates(sparse_coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); query.submit(); array.close(); } @@ -195,7 +198,8 @@ class Benchmark : public BenchmarkBase { std::vector off_c_; std::vector data_c_; - std::vector sparse_coords_; + std::vector d1_; + std::vector d2_; }; int main(int argc, char** argv) { diff --git a/test/benchmarking/src/bench_sparse_read_large_tile.cc b/test/benchmarking/src/bench_sparse_read_large_tile.cc index 79332fad7b4..29f3be69175 100644 --- a/test/benchmarking/src/bench_sparse_read_large_tile.cc +++ b/test/benchmarking/src/bench_sparse_read_large_tile.cc @@ -65,12 +65,12 @@ class Benchmark : public BenchmarkBase { const unsigned skip = 2; for (uint32_t i = 1; i < max_row; i += skip) { for (uint32_t j = 1; j < max_col; j += skip) { - coords_.push_back(i); - coords_.push_back(j); + d1_.push_back(i); + d2_.push_back(j); } } - data_.resize(coords_.size() / 2); + data_.resize(d1_.size()); for (uint64_t i = 0; i < data_.size(); i++) data_[i] = i; @@ -78,7 +78,8 @@ class Benchmark : public BenchmarkBase { Query query(ctx_, array); query.set_layout(TILEDB_UNORDERED) .set_data_buffer("a", data_) - .set_coordinates(coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); query.submit(); array.close(); } @@ -103,11 +104,13 @@ class Benchmark : public BenchmarkBase { Array array(ctx_, array_uri_, TILEDB_READ); Query query(ctx_, array); data_.resize(query.est_result_size("a")); - coords_.resize(query.est_result_size("TILEDB_COORDS")); + d1_.resize(query.est_result_size("d1")); + d2_.resize(query.est_result_size("d2")); query.set_subarray(Subarray(ctx_, array).set_subarray(subarray_)) .set_layout(TILEDB_ROW_MAJOR) .set_data_buffer("a", data_) - .set_coordinates(coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); query.submit(); array.close(); } @@ -120,7 +123,7 @@ class Benchmark : public BenchmarkBase { Context ctx_; std::vector data_; - std::vector subarray_, coords_; + std::vector subarray_, d1_, d2_; }; int main(int argc, char** argv) { diff --git a/test/benchmarking/src/bench_sparse_read_small_tile.cc b/test/benchmarking/src/bench_sparse_read_small_tile.cc index ef56a14be45..fc80d414863 100644 --- a/test/benchmarking/src/bench_sparse_read_small_tile.cc +++ b/test/benchmarking/src/bench_sparse_read_small_tile.cc @@ -65,12 +65,12 @@ class Benchmark : public BenchmarkBase { const unsigned skip = 2; for (uint32_t i = 1; i < max_row; i += skip) { for (uint32_t j = 1; j < max_col; j += skip) { - coords_.push_back(i); - coords_.push_back(j); + d1_.push_back(i); + d2_.push_back(j); } } - data_.resize(coords_.size() / 2); + data_.resize(d1_.size()); for (uint64_t i = 0; i < data_.size(); i++) data_[i] = i; @@ -78,7 +78,8 @@ class Benchmark : public BenchmarkBase { Query query(ctx_, array); query.set_layout(TILEDB_UNORDERED) .set_data_buffer("a", data_) - .set_coordinates(coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); query.submit(); array.close(); } @@ -103,11 +104,13 @@ class Benchmark : public BenchmarkBase { Array array(ctx_, array_uri_, TILEDB_READ); Query query(ctx_, array); data_.resize(query.est_result_size("a")); - coords_.resize(query.est_result_size("TILEDB_COORDS")); + d1_.resize(query.est_result_size("d1")); + d2_.resize(query.est_result_size("d2")); query.set_subarray(Subarray(ctx_, array).set_subarray(subarray_)) .set_layout(TILEDB_ROW_MAJOR) .set_data_buffer("a", data_) - .set_coordinates(coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); query.submit(); array.close(); } @@ -120,7 +123,7 @@ class Benchmark : public BenchmarkBase { Context ctx_; std::vector data_; - std::vector subarray_, coords_; + std::vector subarray_, d1_, d2_; }; int main(int argc, char** argv) { diff --git a/test/benchmarking/src/bench_sparse_tile_cache.cc b/test/benchmarking/src/bench_sparse_tile_cache.cc index 73b60de147c..72cc73316ac 100644 --- a/test/benchmarking/src/bench_sparse_tile_cache.cc +++ b/test/benchmarking/src/bench_sparse_tile_cache.cc @@ -74,12 +74,12 @@ class Benchmark : public BenchmarkBase { const unsigned skip = 2; for (uint32_t i = 1; i < max_row; i += skip) { for (uint32_t j = 1; j < max_col; j += skip) { - coords_.push_back(i); - coords_.push_back(j); + d1_.push_back(i); + d2_.push_back(j); } } - data_.resize(coords_.size() / 2); + data_.resize(d1_.size()); for (uint64_t i = 0; i < data_.size(); i++) data_[i] = i; @@ -88,7 +88,8 @@ class Benchmark : public BenchmarkBase { Query write_query(*ctx_, write_array); write_query.set_layout(TILEDB_UNORDERED) .set_data_buffer("a", data_) - .set_coordinates(coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); write_query.submit(); write_array.close(); } @@ -112,11 +113,13 @@ class Benchmark : public BenchmarkBase { Array read_array(*ctx_, array_uri_, TILEDB_READ); Query read_query(*ctx_, read_array); data_.resize(read_query.est_result_size("a")); - coords_.resize(read_query.est_result_size("TILEDB_COORDS")); + d1_.resize(read_query.est_result_size("d1")); + d2_.resize(read_query.est_result_size("d2")); read_query.set_subarray(Subarray(*ctx_, read_array).set_subarray(subarray_)) .set_layout(TILEDB_ROW_MAJOR) .set_data_buffer("a", data_) - .set_coordinates(coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); read_query.submit(); read_array.close(); } @@ -130,7 +133,8 @@ class Benchmark : public BenchmarkBase { query.set_subarray(Subarray(*ctx_, array).set_subarray(subarray_)) .set_layout(TILEDB_ROW_MAJOR) .set_data_buffer("a", data_) - .set_coordinates(coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); query.submit(); array.close(); } @@ -143,7 +147,7 @@ class Benchmark : public BenchmarkBase { std::unique_ptr ctx_; std::vector data_; - std::vector subarray_, coords_; + std::vector subarray_, d1_, d2_; }; int main(int argc, char** argv) { diff --git a/test/benchmarking/src/bench_sparse_write_large_tile.cc b/test/benchmarking/src/bench_sparse_write_large_tile.cc index a54b2bd88cb..0f09856a881 100644 --- a/test/benchmarking/src/bench_sparse_write_large_tile.cc +++ b/test/benchmarking/src/bench_sparse_write_large_tile.cc @@ -73,12 +73,12 @@ class Benchmark : public BenchmarkBase { const unsigned skip = 2; for (uint32_t i = 1; i < max_row; i += skip) { for (uint32_t j = 1; j < max_col; j += skip) { - coords_.push_back(i); - coords_.push_back(j); + d1_.push_back(i); + d2_.push_back(j); } } - data_.resize(coords_.size() / 2); + data_.resize(d1_.size()); for (uint64_t i = 0; i < data_.size(); i++) data_[i] = i; } @@ -88,7 +88,8 @@ class Benchmark : public BenchmarkBase { Query query(ctx_, array); query.set_layout(TILEDB_UNORDERED) .set_data_buffer("a", data_) - .set_coordinates(coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); query.submit(); array.close(); } @@ -101,7 +102,7 @@ class Benchmark : public BenchmarkBase { Context ctx_; std::vector data_; - std::vector coords_; + std::vector d1_, d2_; }; int main(int argc, char** argv) { diff --git a/test/benchmarking/src/bench_sparse_write_small_tile.cc b/test/benchmarking/src/bench_sparse_write_small_tile.cc index 284ba05d23c..2e7feb2afe4 100644 --- a/test/benchmarking/src/bench_sparse_write_small_tile.cc +++ b/test/benchmarking/src/bench_sparse_write_small_tile.cc @@ -73,12 +73,12 @@ class Benchmark : public BenchmarkBase { const unsigned skip = 2; for (uint32_t i = 1; i < max_row; i += skip) { for (uint32_t j = 1; j < max_col; j += skip) { - coords_.push_back(i); - coords_.push_back(j); + d1_.push_back(i); + d2_.push_back(j); } } - data_.resize(coords_.size() / 2); + data_.resize(d1_.size()); for (uint64_t i = 0; i < data_.size(); i++) data_[i] = i; } @@ -88,7 +88,8 @@ class Benchmark : public BenchmarkBase { Query query(ctx_, array); query.set_layout(TILEDB_UNORDERED) .set_data_buffer("a", data_) - .set_coordinates(coords_); + .set_data_buffer("d1", d1_) + .set_data_buffer("d2", d2_); query.submit(); array.close(); } @@ -101,7 +102,7 @@ class Benchmark : public BenchmarkBase { Context ctx_; std::vector data_; - std::vector coords_; + std::vector d1_, d2_; }; int main(int argc, char** argv) {