jiridanek commented on pull request #211:
URL: https://github.com/apache/qpid-proton/pull/211#issuecomment-620584826
I am adding the ability to run the tests with previous versions of Proton,
and being able to use the benchmark code with separately compiled proton
installation. Currently I am aiming at Proton 0.19.0+.
It is helpful to compile Proton with
{{`-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE -DENABLE_WARNING_ERROR=OFF`}} for
this, if you use new compiler (warnings) or if you have openssl and cyrus in
nonstandard location (rpath).
My CMakeLists.txt for this usecase looks like this
```
cmake_minimum_required(VERSION 3.0)
project(benchmarks)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE
find_package(Proton 0.18 REQUIRED COMPONENTS Core Proactor)
find_package(ProtonCpp 0.19 REQUIRED)
include_directories(${Proton_Core_INCLUDE_DIRS})
# link everything everywhere
link_libraries(${Proton_LIBRARIES})
link_libraries(${ProtonCpp_LIBRARIES})
# workaround, proton cpp .so does not set rpath for $ORIGIN, so these
wouldn't be found otherwise
link_libraries(${Proton_Core_LIBRARIES})
link_libraries(${Proton_Proactor_LIBRARIES})
# in-tree benchmarks link these libs, create dummy empty ones
add_library(qpid-proton OBJECT IMPORTED)
add_library(qpid-proton-cpp OBJECT IMPORTED)
add_subdirectory(../c/benchmarks cbenchbin)
add_subdirectory(../cpp/benchmarks cppbenchbin)
```
With this, I can have historical charts (raw version, simply drawn in online
spreadsheet). Also, I have set fixed CPU clock to 1.9 GHz, so that results are
stable, but generally less than half of what can be achieved on maxed-out clock
speeds. I am still not very confident about intel pstate cpu freq settings. I
think what I got there now works ok...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]