Files
swift-mirror/benchmark/scripts/CMakeLists.txt
Michael Gottesman 30dd85d386 [benchmark] Add a new utility script called Benchmark_QuickCheck.
This benchmark script is similar to the guard malloc/runtime runner, but it only
runs the tests. The intention is that one can use this to quickly in a
multithreaded way verify that all benchmarks run successfully. In contrast, the
normal driver will run only single threaded since it is meant to test
performance, so is not able to take advantage of all cores on a system.

I wrote this quickly to verify some benchmark tests still worked. No point in
not sharing with everyone else.
2018-03-17 11:39:52 -07:00

45 lines
1.7 KiB
CMake

set(PATH_TO_DRIVER_LIBRARY "${CMAKE_CURRENT_SOURCE_DIR}/perf_test_driver")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Benchmark_GuardMalloc.in
${CMAKE_CURRENT_BINARY_DIR}/Benchmark_GuardMalloc
@ONLY)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Benchmark_RuntimeLeaksRunner.in
${CMAKE_CURRENT_BINARY_DIR}/Benchmark_RuntimeLeaksRunner
@ONLY)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Benchmark_QuickCheck.in
${CMAKE_CURRENT_BINARY_DIR}/Benchmark_QuickCheck
@ONLY)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Benchmark_DTrace.in
${CMAKE_CURRENT_BINARY_DIR}/Benchmark_DTrace
@ONLY)
set(PATH_TO_DRIVER_LIBRARY)
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/Benchmark_GuardMalloc
DESTINATION "${swift-bin-dir}"
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ
GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/Benchmark_RuntimeLeaksRunner
DESTINATION "${swift-bin-dir}"
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ
GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/Benchmark_QuickCheck
DESTINATION "${swift-bin-dir}"
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ
GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/Benchmark_DTrace
DESTINATION "${swift-bin-dir}"
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ
GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/Benchmark_Driver
DESTINATION "${swift-bin-dir}"
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ
GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)