From: Michael Vrable Date: Tue, 2 Feb 2010 22:23:18 +0000 (-0800) Subject: Add microbenchmarks to build system. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=e25b03d1a46fc2b528484adfda2f80b6807e5363;p=bluesky.git Add microbenchmarks to build system. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4729a67..f7c573d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,3 +10,4 @@ set(LIBS3_BUILD_DIR "${CMAKE_SOURCE_DIR}/libs3-1.4/build") add_definitions(-D_FILE_OFFSET_BITS=64) add_subdirectory(bluesky) add_subdirectory(nfs3) +add_subdirectory(microbench) diff --git a/microbench/CMakeLists.txt b/microbench/CMakeLists.txt new file mode 100644 index 0000000..80119f5 --- /dev/null +++ b/microbench/CMakeLists.txt @@ -0,0 +1,7 @@ +add_executable(bench bench.c) +target_link_libraries(bench pthread rt) + +add_executable(readbench readbench.c) +target_link_libraries(readbench pthread rt) + +set(CMAKE_C_FLAGS "-Wall -std=gnu99 ${CMAKE_C_FLAGS}")