Skip to content

Commit 1bfa241

Browse files
authored
GH-35636: [C++] Extract two expensive test suites from compute-vector-test (#36401)
### Rationale for this change `arrow-compute-vector-test` is too big and takes a long time to run because of that. ### What changes are included in this PR? Extracting two tests. Timings on my machine (Debug builds with ASAN). ``` debug/arrow-compute-vector-test > /dev/null 11.54s user 0.47s system 99% cpu 12.023 total debug/arrow-compute-vector-sort-test > /dev/null 13.30s user 0.26s system 99% cpu 13.579 total debug/arrow-compute-vector-selection-test > /dev/null 6.97s user 0.22s system 99% cpu 7.207 total ``` ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * Closes: #35636 Authored-by: Felipe Oliveira Carvalho <felipekde@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
1 parent f951f0c commit 1bfa241

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cpp/src/arrow/compute/kernels/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ add_arrow_compute_test(vector_test
7373
vector_hash_test.cc
7474
vector_nested_test.cc
7575
vector_replace_test.cc
76-
vector_selection_test.cc
77-
vector_sort_test.cc
7876
vector_run_end_encode_test.cc
7977
select_k_test.cc
8078
test_util.cc)
8179

80+
add_arrow_compute_test(vector_sort_test SOURCES vector_sort_test.cc test_util.cc)
81+
82+
add_arrow_compute_test(vector_selection_test SOURCES vector_selection_test.cc
83+
test_util.cc)
84+
8285
add_arrow_benchmark(vector_hash_benchmark PREFIX "arrow-compute")
8386
add_arrow_benchmark(vector_sort_benchmark PREFIX "arrow-compute")
8487
add_arrow_benchmark(vector_partition_benchmark PREFIX "arrow-compute")

0 commit comments

Comments
 (0)