Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d36ed75

Browse files
author
“phrygiangates”
committed
add some test data
1 parent fe0fe8c commit d36ed75

28 files changed

+3610
-714
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"any": "cpp",
6262
"cctype": "cpp",
6363
"clocale": "cpp",
64-
"cwctype": "cpp"
64+
"cwctype": "cpp",
65+
"hash_map": "cpp"
6566
}
6667
}

benchmarks/CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,23 @@ target_link_libraries(
296296
)
297297
set_target_properties(data_pipeline PROPERTIES COMPILE_FLAGS ${OpenMP_CXX_FLAGS})
298298

299+
## benchmark 15: data_pipeline_dev (temporary)
300+
add_executable(
301+
data_pipeline_dev
302+
${TF_BENCHMARK_DIR}/data_pipeline_dev/main.cpp
303+
${TF_BENCHMARK_DIR}/data_pipeline_dev/normal.cpp
304+
${TF_BENCHMARK_DIR}/data_pipeline_dev/efficient.cpp
305+
)
306+
target_include_directories(data_pipeline_dev PRIVATE ${PROJECT_SOURCE_DIR}/3rd-party/CLI11)
307+
target_link_libraries(
308+
data_pipeline_dev
309+
${PROJECT_NAME}
310+
${TBB_IMPORTED_TARGETS}
311+
${OpenMP_CXX_LIBRARIES}
312+
tf::default_settings
313+
)
314+
set_target_properties(data_pipeline_dev PROPERTIES COMPILE_FLAGS ${OpenMP_CXX_FLAGS})
315+
299316
###############################################################################
300317
# CUDA benchmarks
301318
###############################################################################
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <chrono>
2+
#include <string>
3+
#include <cassert>
4+
#include <thread>
5+
6+
inline void work() {
7+
// std::this_thread::sleep_for(std::chrono::microseconds(10));
8+
}
9+
10+
std::chrono::microseconds measure_time_normal(std::string, unsigned, unsigned, size_t);
11+
std::chrono::microseconds measure_time_efficient(std::string, unsigned, unsigned, size_t);
12+

0 commit comments

Comments
 (0)