A small refactoring of a metabench cmake

This commit is contained in:
Mateusz Pusz
2019-05-17 23:34:09 +02:00
parent 7bebf6e1e0
commit 28277c56ed

View File

@ -39,14 +39,14 @@ endif()
enable_testing()
add_metabench_test(metabench.std_ratio "std::ratio" ratio/std_ratio.cpp.erb "[10, 50, 100, 500, 1000]")
add_metabench_test(metabench.ratio_type_constexpr "ratio with constexpr" ratio/ratio_type_constexpr.cpp.erb "[10, 50, 100, 500, 1000]")
metabench_add_chart(metabench.ratio
add_metabench_test(metabench.data.std_ratio "std::ratio" ratio/std_ratio.cpp.erb "[10, 50, 100, 500, 1000]")
add_metabench_test(metabench.data.ratio_type_constexpr "ratio with constexpr" ratio/ratio_type_constexpr.cpp.erb "[10, 50, 100, 500, 1000]")
metabench_add_chart(metabench.chart.ratio
TITLE "Ratio calculations on n types"
SUBTITLE "(smaller is better)"
DATASETS
metabench.std_ratio
metabench.ratio_type_constexpr
metabench.data.std_ratio
metabench.data.ratio_type_constexpr
)
add_custom_target(metabench DEPENDS metabench.ratio)
add_custom_target(metabench DEPENDS metabench.chart.ratio)