Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake/modules/AddRootBench.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# function RB_ADD_GBENCHMARK(<benchmark> source1 source2... LIBRARIES libs)
#----------------------------------------------------------------------------
function(RB_ADD_GBENCHMARK benchmark)
cmake_parse_arguments(ARG "" "" "LIBRARIES" ${ARGN})
cmake_parse_arguments(ARG "" "" "LABEL;LIBRARIES" ${ARGN})
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${GBENCHMARK_INCLUDE_DIR})
set(source_files ${ARG_UNPARSED_ARGUMENTS})
add_executable(${benchmark} ${source_files})
Expand All @@ -19,7 +19,7 @@ function(RB_ADD_GBENCHMARK benchmark)
# WORKING_DIR ${CMAKE_CURRENT_BINARY_DIR}
# LABELS "benchmark")
add_test(NAME rootbench-${benchmark} COMMAND ${benchmark} --benchmark_out_format=csv --benchmark_out=rootbench-${benchmark}.csv --benchmark_color=false)
set_tests_properties(rootbench-${benchmark} PROPERTIES TIMEOUT 300 RUN_SERIAL TRUE)
set_tests_properties(rootbench-${benchmark} PROPERTIES TIMEOUT 300 LABELS "${ARG_LABEL}" RUN_SERIAL TRUE)
endfunction(RB_ADD_GBENCHMARK)

#----------------------------------------------------------------------------
Expand Down
6 changes: 4 additions & 2 deletions root/interpreter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
RB_ADD_GBENCHMARK(InterpreterBenchmarks
RunInterpreter.cxx)
RunInterpreter.cxx
LABEL short)

RB_ADD_GBENCHMARK(InterpreterBenchmarksNoPCH
RunInterpreterNoPCH.cxx)
RunInterpreterNoPCH.cxx
LABEL short)
1 change: 1 addition & 0 deletions root/io/io/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RB_ADD_GBENCHMARK(IOBenchmarks
TBufferMergerBenchmarks.cxx
LABEL short
LIBRARIES Core RIO Tree TreePlayer)
1 change: 1 addition & 0 deletions root/math/genvector/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RB_ADD_GBENCHMARK(GenVectorBenchmarks
Cartesian3DBenchmarks.cxx
LABEL long
LIBRARIES GenVector MathCore)
1 change: 1 addition & 0 deletions root/roofit/roofit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RB_ADD_GBENCHMARK(RoofitBenchmarks
RooFitBinnedBenchmarks.cxx
LABEL short
LIBRARIES Core Hist MathCore RIO RooFit RooStats RooFitCore HistFactory)