Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
[DNM] some optimizations to shuffle's split function (#839)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuan Zhou <yuan.zhou@intel.com>
  • Loading branch information
FelixYBW and zhouyuan committed Apr 30, 2022
1 parent 891a403 commit 8aad39a
Show file tree
Hide file tree
Showing 7 changed files with 513 additions and 244 deletions.
3 changes: 3 additions & 0 deletions native-sql-engine/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
cmake_minimum_required(VERSION 3.16)
project(spark_columnar_plugin)

#add_compile_options(-g)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(root_directory ${PROJECT_BINARY_DIR})
add_subdirectory(src)
8 changes: 7 additions & 1 deletion native-sql-engine/cpp/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ endif()

if(BENCHMARKS)
find_package(GTest)
find_package(benchmark REQUIRED)
add_definitions(-DBENCHMARK_FILE_PATH="file://${CMAKE_CURRENT_SOURCE_DIR}/benchmarks/source_files/")
macro(package_add_benchmark TESTNAME)
add_executable(${TESTNAME} ${ARGN})
Expand All @@ -451,7 +452,12 @@ macro(package_add_benchmark TESTNAME)
)
set_target_properties(${TESTNAME} PROPERTIES FOLDER tests)
endmacro()
include(GoogleTest)
macro(package_add_gbenchmark TESTNAME)
add_executable(${TESTNAME} ${ARGN})
target_link_libraries(${TESTNAME} benchmark::benchmark spark_columnar_jni parquet ${CMAKE_THREAD_LIBS_INIT})
target_include_directories(${TESTNAME} PUBLIC ${source_root_directory})
set_target_properties(${TESTNAME} PROPERTIES FOLDER tests)
endmacro()
ENABLE_TESTING()
add_custom_target(benchmark ${CMAKE_CTEST_COMMAND} -R BenchmarkArrowCompute --output-on-failure)
add_subdirectory(benchmarks)
Expand Down
2 changes: 1 addition & 1 deletion native-sql-engine/cpp/src/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ package_add_benchmark(BenchmarkArrowComputeWSCG arrow_compute_benchmark_wscg.cc)
package_add_benchmark(BenchmarkArrowComputeSort arrow_compute_benchmark_sort.cc)
package_add_benchmark(BenchmarkArrowComputeHashAggregate arrow_compute_benchmark_hash_aggregate.cc)
#package_add_benchmark(BenchmarkArrowComputeBigScale arrow_compute_benchmark_big_scale.cc)
package_add_benchmark(BenchmarkShuffleSplit shuffle_split_benchmark.cc)
package_add_gbenchmark(BenchmarkShuffleSplit shuffle_split_benchmark.cc)
package_add_benchmark(BenchmarkColumnarToRow columnar_to_row_converter_benchmark.cc)

0 comments on commit 8aad39a

Please sign in to comment.