mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 02:17:16 +02:00
A small refactoring of a metabench cmake
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user